Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a VFP Form that does not activate
Message
From
09/04/2007 10:10:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/04/2007 19:12:16
Goran Zidar
National Australia Bank
Melbourne, Australia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01213323
Message ID:
01213429
Views:
20
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform