numdlg.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: numdlg.h
  3. // Purpose: interface of global functions
  4. // Author: wxWidgets team
  5. // Licence: wxWindows licence
  6. /////////////////////////////////////////////////////////////////////////////
  7. /** @addtogroup group_funcmacro_dialog */
  8. //@{
  9. /**
  10. Shows a dialog asking the user for numeric input. The dialogs title is set
  11. to @c caption, it contains a (possibly) multiline @c message above the
  12. single line @c prompt and the zone for entering the number.
  13. The number entered must be in the range @c min to @c max (both of which
  14. should be positive) and @c value is the initial value of it. If the user
  15. enters an invalid value, it is forced to fall into the specified range. If
  16. the user cancels the dialog, the function returns -1.
  17. Dialog is centered on its @c parent unless an explicit position is given
  18. in @c pos.
  19. @header{wx/numdlg.h}
  20. */
  21. long wxGetNumberFromUser(const wxString& message,
  22. const wxString& prompt,
  23. const wxString& caption,
  24. long value,
  25. long min = 0,
  26. long max = 100,
  27. wxWindow* parent = NULL,
  28. const wxPoint& pos = wxDefaultPosition);
  29. //@}