Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar customizing
Message
 
 
À
15/12/1997 15:38:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00064665
Message ID:
00066047
Vues:
31
>>>This is saved in the resource file. So, either you have RESOURCE set to OFF or your resource file is read-only.
>>>
>>>Vlad
>>>
>>>>In VFP 3, I go to View, Toolbars, New. Give my new toolbar a name and drop some buttons on it. All is well. I quit VFP and re-launch VFP. The new toolbar does not appear in the toolbars list. The new toolbar is not available either. I look in my foxuser.dbf and the name of the new toolbar is listed. What am I overlooking/doing wrong? In the same VFP session in which it was created, Activate Window ToolBarName works. In subsequent Activate produces an error -- window not defined (somewhat understandable).
>>
>>I have RESOURCE set to ON and it is not read-only. When I USE FOXUSER AGAIN and browse the table, I see the toolbar entry with the name I gave it and "TTOOLBAR" in the ID field. Subsequent VFP session yield the error "Window not defined" when I issue ACTIVATE WINDOW MYTOOLBAR
>>
>>Baffled in Dallas...
>
>I have never shown toolbars at startup the way that you are trying to do it, so I can't give any advice on that approach.
>I do have a couple of toolbars that I have shown at startup though, I just instanciate using createobject() them from their classes in the vfpstart.prg. This works fine for me. Is there a reason you don't want to use this method?

The toolbar in question is not a custom class. It is created through the VFP menu -- View, Toolbars, New, give the toolbar a Name. I then drag&drop buttons from "native" VFP toolbars (Standard, Edit, Form Designer, etc.). That menu bar is available during that VFP session. But I quit and re-launch VFP. That toolbar definition exists in FOXUSER, but I can not activate it nor is it in the toolbar list under View, Toolbars.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform