Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flashing Form
Message
 
À
18/07/1998 10:13:13
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00118734
Message ID:
00119033
Vues:
26
>>>For those interested ... some time back I posted a message saying I was setting my forms' position and size in the Init or Show methods but that some ( not all ) forms were flashing before appearing in the adjusted position/size. I finally tracked this down to doing a SetFocus in the Init or Show of the errant forms. This was forcing the Activate to fire which was flashing the form before it finally displayed in its desired position/size. I removed the offending SetFocus statement(s), the problem disappeared and life is good again. :-)
>>>
>>>Bill
>>
>>Not that I want your life to return to the bad old days, but where did you put your SetFocus() command so that your form would continue to start correctly?
>
>You just caught me thinking of the same problem. I'd put it in the Activate(), but not as a constant object, rather as an object (p)reference, namely an index into form.controls, which would be set to the first control in the init() and set to the index of the active control on DeActivate(), just in case we have more forms open, and the user clicks around. So when the form is instantiated, the focus would go to the first control, but when we jump to another form and back, it's where it's been.

The problem with your solution, Dragan, is that it was the Activate code that was causing his problem in the first place. I would think he'd have to try various places - Refresh, Activate, ???

Seems to me he might have to have a form.hide(), process everything including the setfocus() and then add a form.show() to avoid the problem. Bill? What DID you do?

Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform