Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Why does it not show up IN the top-level-form?
After trying what VFP help file says about using form set, I was not able to make the toolbar to act as a child of the top level form. It was stuck to the main VFP form.
But I found it could be done without a form set by adding the following to the forms Activate event:
IF TYPE("this.oToolbar") # "O" OR ISNULL(this.oToolbar)
Set Classlib To MyClass Additive
this.oToolbar = CREATEOBJECT("MyTbr")
this.oToolbar.show
ENDIF
Why does it does not work the same way when the code is added to the Init event?
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement