Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Work around to C5 for ocx ToolBar releasing form - but w
Message
 
To
29/01/2004 11:41:43
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00863580
Message ID:
00871897
Views:
11
>I have been playing around with toolbars receintly and had a few problems closing forms.
>
>Is your toolbar "docked" if so prior to releasing your form "un-dock" all toolbars.

I work with the OCX (ActiveX tool bar).

I have found that removing objects is much smoother when I add a "dummy" textbox to the contaniner object (form) and set focus to it before I remove a contained object.
oform.txtDummy.Setfocus
ofrom.RemoveObject("MyToolBar")
It seems a child is difficult to remove when they have focus at removeobject request time. Also - sometime, RemoveObject lags - if a visible property is available, I would suggest making the control invisible before it is removed simply to clear it from the GUI!

I have been consdering the VFP toolbar class - but it soes not have a "MixedState" property. Does it work with any type of VFP form?
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform