Version: 2.9.4
Public Member Functions
wxSpinCtrlDouble Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/spinctrl.h>

Inheritance diagram for wxSpinCtrlDouble:

Detailed Description

wxSpinCtrlDouble combines wxTextCtrl and wxSpinButton in one control and displays a real number.

(wxSpinCtrl displays an integer.)

Styles

This class supports the following styles:

Events emitted by this class

The following event handler macros redirect the events to member function handlers 'func' with prototypes like:

void handlerFuncName(wxSpinDoubleEvent& event)

Event macros for events emitted by this class:

Library:  wxCore
Category:  Controls

Appearance:
wxMSW appearancewxGTK appearancewxMac appearance
wxMSW appearancewxGTK appearancewxMac appearance
参照:
wxSpinButton, wxSpinCtrl, wxControl

Public Member Functions

 wxSpinCtrlDouble ()
 Default constructor.
 wxSpinCtrlDouble (wxWindow *parent, wxWindowID id=-1, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxSP_ARROW_KEYS, double min=0, double max=100, double initial=0, double inc=1, const wxString &name=wxT("wxSpinCtrlDouble"))
 Constructor, creating and showing a spin control.
bool Create (wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &value=wxEmptyString, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxSP_ARROW_KEYS, double min=0, double max=100, double initial=0, double inc=1, const wxString &name="wxSpinCtrlDouble")
 Creation function called by the spin control constructor.
unsigned int GetDigits () const
 Gets the number of digits in the display.
double GetIncrement () const
 Gets the increment value.
double GetMax () const
 Gets maximal allowable value.
double GetMin () const
 Gets minimal allowable value.
double GetValue () const
 Gets the value of the spin control.
void SetDigits (unsigned int digits)
 Sets the number of digits in the display.
void SetIncrement (double inc)
 Sets the increment value.
void SetRange (double minVal, double maxVal)
 Sets range of allowable values.
virtual void SetValue (const wxString &text)
 Sets the value of the spin control.
void SetValue (double value)
 Sets the value of the spin control.

List of all members.


Constructor & Destructor Documentation

wxSpinCtrlDouble::wxSpinCtrlDouble ( )

Default constructor.

wxSpinCtrlDouble::wxSpinCtrlDouble ( wxWindow parent,
wxWindowID  id = -1,
const wxString value = wxEmptyString,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxSP_ARROW_KEYS,
double  min = 0,
double  max = 100,
double  initial = 0,
double  inc = 1,
const wxString name = wxT("wxSpinCtrlDouble") 
)

Constructor, creating and showing a spin control.

Parameters:
parentParent window. Must not be NULL.
valueDefault value (as text).
idWindow identifier. The value wxID_ANY indicates a default value.
posWindow position. If wxDefaultPosition is specified then a default position is chosen.
sizeWindow size. If wxDefaultSize is specified then a default size is chosen.
styleWindow style. See wxSpinButton.
minMinimal value.
maxMaximal value.
initialInitial value.
incIncrement value.
nameWindow name.
参照:
Create()

Member Function Documentation

bool wxSpinCtrlDouble::Create ( wxWindow parent,
wxWindowID  id = wxID_ANY,
const wxString value = wxEmptyString,
const wxPoint pos = wxDefaultPosition,
const wxSize size = wxDefaultSize,
long  style = wxSP_ARROW_KEYS,
double  min = 0,
double  max = 100,
double  initial = 0,
double  inc = 1,
const wxString name = "wxSpinCtrlDouble" 
)

Creation function called by the spin control constructor.

See wxSpinCtrlDouble() for details.

unsigned int wxSpinCtrlDouble::GetDigits ( ) const

Gets the number of digits in the display.

double wxSpinCtrlDouble::GetIncrement ( ) const

Gets the increment value.

double wxSpinCtrlDouble::GetMax ( ) const

Gets maximal allowable value.

double wxSpinCtrlDouble::GetMin ( ) const

Gets minimal allowable value.

double wxSpinCtrlDouble::GetValue ( ) const

Gets the value of the spin control.

void wxSpinCtrlDouble::SetDigits ( unsigned int  digits)

Sets the number of digits in the display.

void wxSpinCtrlDouble::SetIncrement ( double  inc)

Sets the increment value.

void wxSpinCtrlDouble::SetRange ( double  minVal,
double  maxVal 
)

Sets range of allowable values.

virtual void wxSpinCtrlDouble::SetValue ( const wxString text) [virtual]

Sets the value of the spin control.

Use the variant using double instead.

void wxSpinCtrlDouble::SetValue ( double  value)

Sets the value of the spin control.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines