Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbars
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00225837
Message ID:
00225859
Vues:
14
>OK..I follow the book.
>
>I have created a toolbar class. I opened my main form,(top level),
>I attached the class which automatically created the form set.
>
>So far so good.
>
>When I run the form, the toolbar is no where to be seen.
>
>What am I doing wrong ?
>
>I even used VFP's own toolbar classes and attached those, but still no sight of them!
>
>I must be something simple...

I never had much luck adding the toolbar in the designer, I gave up long ago. The way that works is to add the toolbar at run-time in the top-level Activate (with a flag property so it won't be added more than once).

You don't need a formset for it, anyway, just do something like:
top-level Activate:

if type('this.otoolbar') != 'O'
  set classlib to myclass
  this.otoolbar = createobject('mytoolbar') && otoolbar is a custom property    set classlib to
endif

In mytoolbar Init:

this.show
this.dock(0)
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform