Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Flashing Form
Message
De
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:
00118969
Vues:
19
>>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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform