FabGL
ESP32 Display Controller and Graphics Library
|
int select | ( | char const * | titleText, |
char const * | messageText, | ||
char const * | itemsText, | ||
char | separator = ';' , |
||
char const * | buttonCancelText = "Cancel" , |
||
char const * | buttonOKText = "OK" |
||
) |
Shows a dialog with a label and a list box.
titleText | Optional title of the dialog (nullptr = the dialogs hasn't a title) |
messageText | Message to show |
itemsText | String containing a separated list of items to show into the listbox |
separator | Optional items separator. Default is ';' |
buttonCancelText | Optional text for CANCEL button (nullptr = hasn't CANCEL button). Default is "Cancel". |
buttonOKText | Optional text for OK button (nullptr = hasn't OK button). Default is "OK". |
Example:
InputBox ib; ib.begin(); int s = ib.select("Download Boot Disk", "Select boot disk to download", "FreeDOS;Minix 2.0;MS-DOS 3.3"); ib.messageFmt("", nullptr, "OK", "You have selected %d", s); ib.end();
Definition at line 197 of file inputbox.cpp.