Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Move focus from toolbar textbox to active form control
Message
From
07/06/2005 16:36:22
 
 
To
07/06/2005 16:27:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01021089
Message ID:
01021128
Views:
19
Hi Greg,

> I believe the ActiveForm is the Toolbar.

This does not appear to be the case. ActiveForm.Name and ActiveForm.ActiveControl do not refer to the toolbar or its active control, but rather the form/control that most recently had focus. You can use ThisForm to refer to toolbar within any of its hosted control's methods.

> You would need to save a reference to the last active form (in the Deactivate Event) to a custom property.

A form doesn't appear to have a Deactivate() event when focus moves to a toolbar.

Thanks for trying! :)

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Reply
Map
View

Click here to load this message in the networking platform