]>
git.saurik.com Git - wxWidgets.git/blob - interface/numdlg.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of global functions
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
10 Shows a dialog asking the user for numeric input. The dialogs title is set to
11 @e caption, it contains a (possibly) multiline @a message above the
12 single line @a prompt and the zone for entering the number.
13 The number entered must be in the range @e min..@a max (both of which
14 should be positive) and @a value is the initial value of it. If the user
15 enters an invalid value or cancels the dialog, the function will return -1.
16 Dialog is centered on its @a parent unless an explicit position is given in
19 long wxGetNumberFromUser(const wxString
& message
,
20 const wxString
& prompt
,
21 const wxString
& caption
,
25 wxWindow
* parent
= NULL
,
26 const wxPoint
& pos
= wxDefaultPosition
);