Toolbar

BlitzPlus Forums/BlitzPlus Programming/Toolbar

mag.(Posted 2003) [#1]
Why we only can place a tool bar at 0,0
I want to create a combobox on a middle of a toolbar, so I try to put like this

[toolbar1][combobox][toolbar2]

The problem is I can't put toolbar2 at 300,0

One other thing, can we create a toolbar saparator?


Binary_Moon(Posted 2003) [#2]
stick the toolbar in a panel. Then use the panel to position & clip the toolbar

One other thing, can we create a toolbar saparator?


Yup. Have a look in the code archives. there is a userlib and demo in there by Ed from Mars which does this.


CS_TBL(Posted 2003) [#3]
I'd say, create your own toolbar.

If you make a canvas of -say- 128x32 pixels, and you want 4 32x32 tollbuttons, then EventX()/32 marks the selected button. $203 can be used to draw a highlight square around the button. $206 can be used to redraw the buttons again, without the square. $201 can be used to generate a button-press.
Sofar for a copy of the usual toolbar, with this new canvastoolbar you can also check for the right mouse button, and you could even animate the buttons (when there are animations ofcourse), or you could even do a square toolbar area with 4x4 buttons in it, or just a vertical strip.
For vertical buttonchecks you need EventY() aswell ..