Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toolbar
Message
From
05/03/2001 22:01:11
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Toolbar
Miscellaneous
Thread ID:
00482092
Message ID:
00482092
Views:
48
Hi all,

I'm trying to set up my first toolbar, i create in my base classe a classe based in toolbar, then i create my form, drag the toolbar classe to the form, and add the following code in init form

jbtoolbar1=createobject( "ToolBar" )

set classlib to jbgci additive

jbtoolbar1.Caption ="Joao Batista - Primeira Toolbar"

jbtoolbar1.addobject ( "Button1" , "jbcommandbutton" )
jbtoolbar1.addobject ( "Sep1" , "Separator" )



jbtoolbar1.addobject ( "Button2" , "jbcommandbutton" )
jbtoolbar1.addobject ( "Sep2" , "Separator" )
jbtoolbar1.button1.caption="\"
jbtoolbar1.button1.autosize=.t.
jbtoolbar1.button2.caption="\"
jbtoolbar1.button2.autosize=.t.

jbtoolbar1.width=200

if i run the form the toolbar show's up but no buttons , no width.

thank's in advance

João Batista
Next
Reply
Map
View

Click here to load this message in the networking platform