2008-03-08 08:52:38 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-03-08 09:43:31 -05:00
|
|
|
// Name: numdlg.h
|
2008-03-10 11:24:38 -04:00
|
|
|
// Purpose: interface of global functions
|
2008-03-08 09:43:31 -05:00
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
Shows a dialog asking the user for numeric input. The dialogs title is set to
|
2008-03-09 08:33:59 -04:00
|
|
|
@e caption, it contains a (possibly) multiline @a message above the
|
|
|
|
single line @a prompt and the zone for entering the number.
|
|
|
|
The number entered must be in the range @e min..@a max (both of which
|
|
|
|
should be positive) and @a value is the initial value of it. If the user
|
2008-03-08 09:43:31 -05:00
|
|
|
enters an invalid value or cancels the dialog, the function will return -1.
|
2008-03-09 08:33:59 -04:00
|
|
|
Dialog is centered on its @a parent unless an explicit position is given in
|
2008-03-08 09:43:31 -05:00
|
|
|
@e pos.
|
2008-03-08 08:52:38 -05:00
|
|
|
*/
|
|
|
|
long wxGetNumberFromUser(const wxString& message,
|
|
|
|
const wxString& prompt,
|
|
|
|
const wxString& caption,
|
|
|
|
long value,
|
|
|
|
long min = 0,
|
|
|
|
long max = 100,
|
2008-03-09 08:33:59 -04:00
|
|
|
wxWindow* parent = NULL,
|
2008-03-08 08:52:38 -05:00
|
|
|
const wxPoint& pos = wxDefaultPosition);
|
|
|
|
|
|
|
|
|