>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:
if wexist('Standard')
hide window 'Standard'
endif
Then, create you toobar object and Show() it.
otb = createobject("MyTB")
if !type("otb")= "O"
wait window ' No Toolbar OBJECT made'
endif
otb.dock(0)
otb.show()
HTH
Barbara