Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar in top-level form
Message
 
À
14/02/1999 09:33:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00186512
Message ID:
00187507
Vues:
22
>>>>>In on-line documentation for VFP5 is note that toolbar can be
>>>>>attach to formset only.
>>>>
>>>>I've seen someone else state here that this documentation is wrong, a toolbar >can be attached to a form, no problem.
>>>>
>>>>HTH,
>>>>Rich.
>>>
>>>In on-line VFP5 CD documentation in Developer's Guide, Part3: Creating the Interface, Chapter 11: Designing menu and toolbars, Adding custom toolbar to form sets is next information:
>>>You can add a toolbar to a form set so that the toolbar opens along with the forms in the form set. You cannot add the toolbar directly to the form.
>>>
>>>Maros
>
>>I'm not saying you're wrong about the documentation. It says what you said it does. I said the documentation is wrong. (It happens.) Try adding a toolbar to a form.
>
>But how? First I create new class named MyToolbar from baseclass toolbar. In Form Designer I create to level-form. When I drag and drop from Form Controls toolbar to top-lever form, VFP5a show question: A FORM SET IS REQUIRED TO ADD FORM. CREATE ONE? I don't know why VFP5a tell me that I want add form when I drop toolbar object to form. But this message correspond with information in on-line help.
>
>Maros

It asks you that question because the toolbar is a type of form, and you're trying to add it to another form.

I'm now sorry I spoke up, because I understand what you're saying and it makes sense. If you read my first reply, I said "I've seen someone else here state...", I was not responding from personal knowledge of having done it. But others here have talked about it. Go to the search function and look for postings with "toolbar" in them. Maybe you'll find someone else with a more informed message than mine.

Against my better judgement, I'm going to speculate a bit more about what the other people may have said, which I've largely forgotten now because I haven't applied it in my work. Maybe they were saying you could run a toolbar from within a form programmatically. Maybe they were saying you could run code which both instantiates a form and the toolbar every time you want to run the form. Maybe they were just pointing out that you don't have to have a formset to define a toolbar, although to add a toolbar to a form in the form designer or class designer, of course you have to make the form and toolbar a formset (by answering the question yes), because they are two separate forms.

I'm sorry I tried to answer your question with incomplete knowledge of the situation. I hope you get a better answer from someone else.

Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform