Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Work around to C5 for ocx ToolBar releasing form - but w
Message
 
À
29/01/2004 11:41:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00863580
Message ID:
00871897
Vues:
12
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform