Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar
Message
De
14/06/1999 17:25:09
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00229728
Message ID:
00229745
Vues:
19
>>>I created a toolbar and saved it as a toolbar class. Then I put it on an existing form & it doesn't stay on the form. It's on a form under the one with all the stuff on it. The toolbar init has
>>> this.show
>>> this.dock(0)
>>>
>>>In the form activate I put code
>>> if type('this.mytoolbar') != 'O'
>>> set classlib to mytoolclass
>>> this.mytoolbar = createobject("mytoolbar")
>>> release classlib mytoolclass
>>> endif
>>>
>>>This code puts the toolbar under the VFP toolbar, not on my data-entry form. Also, because I didn't realize I had put the toolbar on the underneath form, it's there about 5 times so when it appears under the VFP toolbar, it's there 5 times. How do I remove all these toolbars? How do I get the toolbar to belong to the custom form? I can't find any info on this. Why are toolbars such a mystery?
>>>
>>>Thanks
>>
>>You may add/dock etc. toolbar to either _SCREEN or 'top-level' form.
>
>I think I'm confused about this 'top-level' form. I have only 1 form. It's not based on a form set or form class. I created the form. How do I add/dock the toolbar? This is my first attempt at toolbars & it was easy to create it but now I can't use it. How do I remove it from the form?

Top-level form is a form with Form.ShowWindow=2, then you add toolbar there in its activate event, about the same as you did.
When toolbar is added, you may remove it the same way: RemoveObject().
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform