Tv ListRequest

From TVPaintWiki
Revision as of 12:09, 18 June 2010 by Madsjuul (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<<<George<<<Command Reference<<<<George Commands Interface


  tv_ListRequest options

Displays a list in which the user can choose an option. The options argument is a list in the form "option1|option2|...|optionN", each option being separated from the next option by the "|" (pipe) character. This command opens a window containing a list of options and two buttons, OK and Cancel. If the user clicks on Cancel, the Result variable will contain "-1 Cancel". If he clicks on OK after choosing an option in the list, the Result variable will contain the position of the option in the list (numbering starts at 0), and the option text separated by a space.


can open sub menu ( with '/' in the name ) example: tv_ListRequest "Apples/Macs|Apples/Lisas|Oranges/IBMpcs|Oranges/Dells|Oranges/HPs"