Bar in menus

BlitzPlus Forums/BlitzPlus Beginners Area/Bar in menus

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Easy. Just create a menu item with no text, like this:
Global menubreak = CreateMenu(parentmenu,"",number)
As a personal "rule of thumb," I assign menu "breaks" a value of zero, but you could really use any number. The beauty of this is that you can use the same global in multiple places, like this:
Global menubreak = CreateMenu(parentmenu1,"",number);create the first "menu break," and declare it as a global
;code
;code
;code
menubreak = CreateMenu(parentmenu2,"",number);now use the same variable for a different break!
That way, you save memory by using one variable for however many breaks you need in however many menus!