How to create good menu-system?

Blitz3D Forums/Blitz3D Programming/How to create good menu-system?

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.

Yes, I knew that it would require 2 different "main" loops.
I will probably need more than 10 different menu's, so I would use a different function for each of them, which all hold another "main" loop.
And selecting the correct menu can be done using "Select case".

But is there an easier way to create the buttons, the scrollbars, ...?
And also act on them when they are clicked?

Like in Visual Basic:
Button1_Click() ==>> for example.

Because like the way I did it, it was a bit confusing.