QueryStringFlag
Flags used in ShowQueryString() call.
@ AcceptUnchanged
return success even when the text didn't change
@ EnableDefault
enable the 'Default' button ("\0" is returned)
@ LengthIsInChars
the length of the string is counted in characters
std::string _keyboard_opt[2]
The number of characters has to be OSK_KEYBOARD_ENTRIES.
void QueryCallbackProc(Window *, bool)
Callback procedure for the ShowQuery method.
void ShowQuery(EncodedString &&caption, EncodedString &&message, Window *w, QueryCallbackProc *callback, bool focus=false)
Show a confirmation window with standard 'yes' and 'no' buttons The window is aligned to the centre o...
void ShowQueryString(std::string_view str, StringID caption, uint max_len, Window *parent, CharSetFilter afilter, QueryStringFlags flags)
Show a query popup window with a textbox in it.
static const uint OSK_KEYBOARD_ENTRIES
The number of 'characters' on the on-screen keyboard.