Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to create a VFP Form that does not activate
Message
De
09/04/2007 10:10:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/04/2007 19:12:16
Goran Zidar
National Australia Bank
Melbourne, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01213323
Message ID:
01213429
Vues:
22
>Hello all
>
>Does anyone have a way to create a VFP form that does not activate; more specifically does not take focus away from the currently active form. The VFP toolbar behaves in this way but it is simply not flexible enough for my needs (eg, a toolbar cannot be placed outside the VFP screen or a top level form).
>
>Alternatively has anyone managed to create a form using CreateWindowEx() to achieve this as there is an extended style defined by WS_EX_NOACTIVATE that is supposed to make this happen but from my simple tests this still seems to remove focus from other VFP forms.
>
>Thanks in advance and I look forward to hearing from you.

Just a few WAGs - How about placing a NoDefault in the form's .Activate method?

Another possible workaround: when instantiating this form, store a reference to the currently active form, and after showing this inactive form, set focus to the stored reference.

Also try to have all controls on that form disabled (and tweak their disabled colors to look what you want them).

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
Répondre
Fil
Voir

Click here to load this message in the networking platform