OWBasic Standard Library

Group GUI Home INTRO Alphabetical Index

Querying a Menu

GUI_MENU!(MENU$[], cnt%, x%, y%, x2%, lines%)

If the button from (x,y) to (x2,y+10) was touched, the function draws the strings from MENU[1] to MENU[cnt] to a list below. X2 specifies the right border of the list. X2 is a variable parameter since GUI_LIST can adjust X2 according to the string length; it is needed for GUI_QLIST .
lines specifies whether the procedure should draw lines between the strings. The lowest bit decides whether there is a line between entry 1 and 2, the next one for entry 2 and 3 and so on.


Gruoup GUI Home INTRO Alphabetical Index