General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only