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 15:12:29
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00058194
Message ID:
00058457
Views:
34
>>>>** 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.
>
>I am confused. I have created something called mytoolbar.vxc. It contains my customized classes.. When the view classes icon is clicked, the following is displayed. ADD
> STANDARD
> OLE CONTROLS
> mytoolbar
>and the standard always has a check next to it. I want mytoolbar to have the check on IT. Does this clear my sad story up?

I think you have your terminology a little turned around. What you want is your class library to be the default form controls toolbar. What Barbara was explaining how to do is instanciate, dock and show a custom toolbar. The form controls toolbar isn't a custom toolbar, it just shows buttons for each class in your library. The toolbar itself is native to VFP.

To answer your question, I don't know how to specify it, I think that this setting is supposed to be saved in the resource file and is supposed to automatically be saved. Try SET RESOURCE ON after specifying your library. HTH
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform