Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A common toolbar
Message
De
21/05/2003 01:31:05
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
 
À
20/05/2003 14:50:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00790687
Message ID:
00790924
Vues:
17
Use
_VFP.ActiveForm
instead

Dorin


>Hi
>
>I am new to using toolbars and here's my situation.
>I have a form which i named 'mainform'. A menu is
>started in init() of mainform. The menu has pads that,
>when pressed, will call other forms to perform different
>functions. Currently the function forms each has their
>own toolbar (each is an instance from a toolbar class
>i built) and each toolbar is working OK.
>
>What i'd like to do is, instead of each function form
>having it's own toolbar, i'd like to have a common toolbar
>appear and docked on the main form "mainform" and, when
>pressed, perform the method from the currently active function
>form. This is sort of like that in the Tastrade example. The
>difference is Tastrade is using a container while my
>toolbar will be firing from a mainform. Therefore,
>in my case, _screen.activeform.cmdSave() wouldn't be valid
>since the currently active form would be the main form and
>not a function form.
>
>I wouldn't want to eliminate the mainform since i have
>other elements (like the company logo, other comments, etc.)
>showing even without activating other function forms from
>the menu.
>
>Anyone has solutions to this? All other suggestions are
>welcome. Thanks in advance.
>Jang
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform