Code: Select all
gtk_toolbar_set_orientation_(*toolbar1,#GTK_ORIENTATION_VERTICAL)
Code: Select all
gtk_toolbar_set_show_arrow_(*toolbar1,#False)
the lib used to create a toolbar is located here: http://www.purebasic.fr/english/viewtopic.php?t=25882
The source for creating the Toolbar (part of the library):
Code: Select all
ProcedureCDLL CreateTB(tbar.l, *Hwnd.l, type.l, orientation.l); Creates a toolbar - Type can be #GTK_TOOLBAR_TEXT/#GTK_TOOLBAR_BOTH/#GTK_TOOLBAR_ICONS
; type: #GTK_TOOLBAR_TEXT to show text only and #GTK_TOOLBAR_BOTH for both, text and Icon
; #GTK_TOOLBAR_ICONS for icons only
TBSTYLE.l=type
*tooltips = gtk_tooltips_new_()
*toolbar1=CreateToolBar(tbar,*Hwnd)
gtk_widget_show_(*toolbar1);
gtk_toolbar_set_style_(*toolbar1, TBSTYLE);
If orientation=1
gtk_toolbar_set_orientation_(*toolbar1,#GTK_ORIENTATION_VERTICAL)
EndIf
If *toolbar1
ProcedureReturn *toolbar1
Else
ProcedureReturn 0
EndIf
EndProcedure
if I use
Code: Select all
gtk_widget_set_size_request_(*toolbar1,100,400)

[/Edit]