Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5 - Toolbars & Toolbar Icon Problems
Message
 
À
09/11/1998 13:50:08
Bruce Gilmour
Cal-Mour Consultants
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00155593
Message ID:
00155855
Vues:
36
OK,

Here is what I did :

1) Create my toolbar class using CREATE \ CLASS \ TOOLBAR.

2) Saved MYTOOLBAR class.

3) Created a toolbar based on MYTOOLBAR class. The problem with
that is that to be able to visually create the toolbar based on
MYTOOLBAR class, I need to have a form open, and the form designer
then tells you that you need to have a formset if you want to add the
toolbar.

To get around that I temporarily make my default FORM CLASS in
TOOLS \ OPTIONS \ FORMS, the MYTOOLBAR class, and then click on
NEW \ FORM and that gives me a toolbar ON ITS OWN that I can edit
to my heart's content without needing to have it as part of a
formset.

4) The problem arises when I use the toolbar in code. Even after releasing it
through all the available methods, including CLEAR ALL, etc...,
when I try to MODIFY FORM on it to go and add code to it, say,
I get FILE IN USE error.

Now, it could be that I am doing it the wrong way as regards being able to
visually create a toolbar and design it, without having it as part
of a formset. If so, then I would love to know the way I should really do it.

Regards,
Michel.
================== Your original message follows ===================

>>Bruce,
>>
>>I can do that too. However, I have a different requirement. See below the response I gave someone else. I would be interested if when you try to do
>>the same, you too get the same FILE IN USE error.
>>
>>Michel.
>>
>Michel, I would be interested in what you are trying to chnage that you need to have it in a form. But I think the .NULL. principle applies anyway. In your Destroy or app exit set the form.name to .NULL. and see what happens.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform