::wxGetTextFromUser

char * wxGetTextFromUser(char *message, char *caption = "Input text", char *default_value = "", wxFrame *parent = NULL, int x = -1, int y = -1, Bool centre = TRUE)

Pop up a dialog box with title set to caption, message message, and a default_value. The user may type in text and press OK to return this text, or press Cancel to return NULL.

If centre is TRUE, the message text (which may include new line characters) is centred; if FALSE, the message is left-justified.