select

Parent Previous Next

twPan.select(message, optionsArray) : string


Displays message to User and presents a drop down box of options to choose from.


Returns chosen option/item or an empty string if Cancel is chosen.

First Item is the default.


For more options use TW.getItem  get List Choice getItem(QWidget*,QString,QString,QStringList) etc.



Example:


var answer =  twPan.select("Please Make a Choice", ["Chocolate","Soya","Cream"]);

Created with the Personal Edition of HelpNDoc: Easily create Help documents