WxGetNumberFromUser

From WxWiki
Jump to navigation Jump to search

Shows a dialog asking the user for numeric input.

The dialogs title is set to caption, it contains a (possibly) multiline message above the single line prompt and the zone for entering the number.

The number entered must be in the range min to max (both of which should be positive) and value is the initial value of it. If the user enters an invalid value, it is forced to fall into the specified range. If the user cancels the dialog, the function returns -1.

Dialog is centered on its parent unless an explicit position is given in pos.