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
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-03-18 15:30:01 -04:00
|
|
|
/** @ingroup group_funcmacro_dialog */
|
|
|
|
//@{
|
|
|
|
|
2008-03-08 09:43:31 -05:00
|
|
|
/**
|
2008-03-18 15:30:01 -04:00
|
|
|
Shows a dialog asking the user for numeric input. The dialogs title is set
|
|
|
|
to @c caption, it contains a (possibly) multiline @c message above the
|
|
|
|
single line @c prompt and the zone for entering the number.
|
|
|
|
|
|
|
|
The number entered must be in the range @c min to @c max (both of which
|
|
|
|
should be positive) and @c value is the initial value of it. If the user
|
|
|
|
enters an invalid value or cancels the dialog, the function will return
|
|
|
|
-1.
|
|
|
|
|
|
|
|
Dialog is centered on its @c parent unless an explicit position is given
|
|
|
|
in @c pos.
|
|
|
|
|
|
|
|
@header{wx/numdlg.h}
|
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);
|
|
|
|
|
2008-03-18 15:30:01 -04:00
|
|
|
//@}
|
2008-03-08 08:52:38 -05:00
|
|
|
|