FabGL
ESP32 Display Controller and Graphics Library
|
InputResult messageFmt | ( | char const * | titleText, |
char const * | buttonCancelText, | ||
char const * | buttonOKText, | ||
const char * | format, | ||
... | |||
) |
Shows a dialog with a just a label. Allows printf like formatted text.
titleText | Optional title of the dialog (nullptr = the dialogs hasn't a title) |
buttonCancelText | Optional test for CANCEL button (nullptr = hasn't CANCEL button) |
buttonOKText | Optional text for OK button (nullptr = hasn't OK button) |
format | printf like format string |
... | printf like parameters |
Example:
InputBox ib; ib.begin(); for (int i = 0; i < 3; ++i) if (ib.messageFmt(nullptr, "Abort", "Continue", "Iteration number %d of 3", i) == InputResult::Cancel) break; ib.end();
Definition at line 179 of file inputbox.cpp.