Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAKING MINE DEFAULT- ps THANKS ALL TO WHO RESPOND!!!
Message
From
05/11/1997 09:52:24
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00058194
Message ID:
00058356
Views:
26
>>>I HAVE CREATED MYTOOLBAR.VCx BUT whenever I turn around, the foxpro default toolbar becomes the default. How can I make mine stick?
>>
>>Hi Tim,
>>Are you trying to win a prize for the longest thread title? If so, the caps are a good touch - they spread it out more than lower case.
>>
>>If you are trying to use a customized toolbar during development, then I would start with the VFP Standard toolbar and add/delete the buttons as you choose. Then let VFP load the standarad whenever it wants (And you can tell everyone you have "Set a new standard of VFP code" ;-)
>>
>>If you're trying to show the new TB on an app, then there are a couple of steps. First, check for the VFP and hide it if it exists:
>>
>>** Hide Standard toolbar?
>>if wexist('Standard')
>>   hide window 'Standard'
>>endif
>>
>>Then, create you toobar object and Show() it.
>>
>>otb = createobject("MyTB")
>>if !type("otb")= "O"   && Check to see if it was successful
>>    wait window ' No Toolbar OBJECT made'
>>endif
>>otb.dock(0)  && puts into docked position at top of screen
>>otb.show()   && now you can see it.
>>
>>
>>HTH
>>Barbara
>
>Actually I am trying to have mytoolbar be the default when visual foxpro starts up. I been into : tools:options:forms and tried tinkering with it that way but is that the wrong way to go about it?

Timothy- You can do what you want with Barbara's code by placing it in a vfpstart file so it runs every time you open VFP.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform