1. wxRenderer now has DrawCheckButton
2. wxCheckBox seems to work under MSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxUNIVERSAL@8313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -81,18 +81,6 @@ public:
|
||||
virtual void SetValue(bool value);
|
||||
virtual bool GetValue() const;
|
||||
|
||||
// set/get the margins between the checkbox bitmap and the border and
|
||||
// between the bitmap and the label and above it
|
||||
void SetMargins(wxCoord marginLeft, wxCoord marginRight, wxCoord marginTop)
|
||||
{
|
||||
m_checkMarginLeft = marginLeft;
|
||||
m_checkMarginRight = marginRight;
|
||||
m_checkMarginTop = marginTop;
|
||||
}
|
||||
wxCoord GetLeftMargin() const { return m_checkMarginLeft; }
|
||||
wxCoord GetRightMargin() const { return m_checkMarginRight; }
|
||||
wxCoord GetTopMargin() const { return m_checkMarginTop; }
|
||||
|
||||
// set/get the bitmaps to use for the checkbox indicator
|
||||
void SetBitmap(const wxBitmap& bmp, State state, Status status);
|
||||
wxBitmap GetBitmap(State state, Status status) const;
|
||||
@@ -120,9 +108,6 @@ protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// set the margins to the default values if they were not set yet
|
||||
void SetMargins();
|
||||
|
||||
private:
|
||||
// the current check status
|
||||
Status m_status;
|
||||
@@ -130,11 +115,6 @@ private:
|
||||
// the bitmaps to use for the different states
|
||||
wxBitmap m_bitmaps[State_Max][Status_Max];
|
||||
|
||||
// the distance between the checkbox and the label/border (-1 means default)
|
||||
wxCoord m_checkMarginLeft,
|
||||
m_checkMarginRight,
|
||||
m_checkMarginTop;
|
||||
|
||||
// is the checkbox currently pressed?
|
||||
bool m_isPressed;
|
||||
|
||||
|
Reference in New Issue
Block a user