]>
Commit | Line | Data |
---|---|---|
23324ae1 | 1 | ///////////////////////////////////////////////////////////////////////////// |
7c913512 | 2 | // Name: numdlg.h |
e54c96f1 | 3 | // Purpose: interface of global functions |
7c913512 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /** | |
10 | Shows a dialog asking the user for numeric input. The dialogs title is set to | |
4cc4bfaf FM |
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 | |
7c913512 | 15 | enters an invalid value or cancels the dialog, the function will return -1. |
4cc4bfaf | 16 | Dialog is centered on its @a parent unless an explicit position is given in |
7c913512 | 17 | @e pos. |
23324ae1 FM |
18 | */ |
19 | long wxGetNumberFromUser(const wxString& message, | |
20 | const wxString& prompt, | |
21 | const wxString& caption, | |
22 | long value, | |
23 | long min = 0, | |
24 | long max = 100, | |
4cc4bfaf | 25 | wxWindow* parent = NULL, |
23324ae1 FM |
26 | const wxPoint& pos = wxDefaultPosition); |
27 | ||
28 |