Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Focus / Activate
Message
 
 
To
22/01/2004 21:57:00
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00869739
Message ID:
00869938
Views:
28
David,

You probably need some selective nodefault and explicit dodefault or form:: calls in the Deactivate to get this to work. What is launching the other form? If you'd do it from a command button on the form itself you'd avoid the problem because the button would have focus.

>I wish to change the object focus when a form is deactivated. Setfocus() doesn't achieve this, because it refocuses the whole form.
>The reason is to avoid a grid (or more precisely an object in the grid) having focus when another form fires up. Grids having focus can cause the alias() to change unexepectedly while running code external to the form.
>
>In addition, is there any way of finding the current object of an inactive form? VFP must know this internally because it clearly "remembers" the active object when activating / deactivating forms.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform