Get/SetValue() and other improvements to the native PalmOS controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,9 +75,17 @@ public:
|
||||
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
||||
|
||||
protected:
|
||||
// regardless how deeply we are in wxWidgets hierarchy always get correct form
|
||||
FormType* GetParentForm() const;
|
||||
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const;
|
||||
|
||||
// on/off-like controls
|
||||
void SetBoolValue(bool value);
|
||||
bool GetBoolValue() const;
|
||||
void SetIntValue(int val);
|
||||
|
||||
// return default best size (doesn't really make any sense, override this)
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
@@ -108,6 +116,15 @@ protected:
|
||||
ControlType *m_control;
|
||||
|
||||
private:
|
||||
|
||||
// Label stores label in case of wxButton, wxCheckBox, wxToggleButton etc.
|
||||
// We must ensure that it persists for as long as it is being displayed
|
||||
// (that is, for as long as the control is displayed or until we call
|
||||
// CtlSetLabel() with a new string), and we must free the string after
|
||||
// it is no longer in use (typically after the form containing the
|
||||
// control is freed).
|
||||
wxString m_label;
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_COPY(wxControl)
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
Reference in New Issue
Block a user