Use stock labels. Native wxRadioButton. Getting position and size for the controls. Getting size for wxTLW. Default size and position for wxButton according to l&f guidelines. Removed wxUSE_CTL3D from wxPalmOS port. Better font for controls.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,6 +89,10 @@ protected:
|
||||
// return default best size (doesn't really make any sense, override this)
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
|
||||
// getting and setting sizes
|
||||
virtual void DoGetPosition( int *x, int *y ) const;
|
||||
virtual void DoGetSize( int *width, int *height ) const;
|
||||
|
||||
// create the control of the given ControlStyleType: this is typically called
|
||||
// from Create() method of the derived class passing its label, pos and
|
||||
// size parameter (style parameter is not needed because m_windowStyle is
|
||||
@@ -117,7 +121,9 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
// Label stores label in case of wxButton, wxCheckBox, wxToggleButton etc.
|
||||
virtual void DoGetBounds( RectangleType &rect ) const;
|
||||
|
||||
// m_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
|
||||
|
Reference in New Issue
Block a user