Toolbar - Define size of icons 16x16, 32x32 ...
Posted: Sat Mar 18, 2006 11:57 pm
its nice to have toobar feature in pure. but is there any way to user bigger icons (like 32x32, 48x48 and so on) ???? Would be nice to have the possibility to set the icon size of the toolbar!<br><br>
Maybe the pureteam can/will add some features of the nice old ToolBarLib from danilo
Maybe the pureteam can/will add some features of the nice old ToolBarLib from danilo

Code: Select all
If OpenWindow(0, 0, 0, 150, 25, "ToolBar", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
CreateImage(0,16,16)
StartDrawing(ImageOutput(0))
Box(0,0,32,32,RGB(255,255,255))
Box(4,4,16,16,RGB(255,0,0))
StopDrawing()
CreateImage(1,32,32)
StartDrawing(ImageOutput(1))
Box(0,0,32,32,RGB(255,0,0))
Box(4,4,16,16,RGB(255,255,255))
StopDrawing()
If CreateToolBar(0, WindowID(0))
ToolBarImageButton(0,ImageID(0),#PB_ToolBar_Toggle)
ToolBarImageButton(1,ImageID(1))
EndIf
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf