Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar underneath Menu
Message
De
21/11/2002 00:59:12
Vladimir Zhuravlev
Institute of the Physics of Earth,Russia
Moscow Region, Russie
 
 
À
20/11/2002 17:42:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00724966
Message ID:
00725052
Vues:
18
>Hi All,
>
>If two separate forms happens to be using the same toolbar. How can I check to see if the toolbar exist or not before docking it underneath main menu?
>Currently, I have a main form which I set as the top level form, the rest of the forms are set to Model and in top level form. Some forms have the navigation keys toolbar and some don't. If I run forms which have the toolbar, the toolbar will appear n number of times. How can I prevent the toolbar from docking more than once and allow other forms to use the same toolbar? Thanks
You always can use type function
Like this
if type('tlb')!='O'
public tlb
tlb=createobject('tlbr')
endif
You can keep some properties in the forms to use them to throw out somebuttons from tollbar
For example in the form load
if type('tlb')='O'
tlb.setall('visible','t','btn)
endif
if not this.skipnext and type('tlb')=O'
tlb.nextbut.visible=.f.
endif
MVP-2006-2011, PHD in Math and Physics ,
host of www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform