Border corrections

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2007-11-14 14:44:13 +00:00
parent 2fce654762
commit 677dc0ed1a
10 changed files with 16 additions and 0 deletions

View File

@ -142,6 +142,8 @@ public:
wxRadioBoxButtonsInfoList m_buttonsInfo;
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
#if wxUSE_TOOLTIPS
virtual void DoSetItemToolTip(unsigned int n, wxToolTip *tooltip);
#endif

View File

@ -54,6 +54,8 @@ public:
bool m_blockEvent;
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
virtual wxSize DoGetBestSize() const;
virtual void DoApplyWidgetStyle(GtkRcStyle *style);
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;

View File

@ -113,6 +113,7 @@ public:
virtual WXWidget GetLabelWidget() const { return m_labelWidget; }
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
virtual void DoSetSize(int x, int y,
int width, int height,
int sizeFlags = wxSIZE_AUTO);

View File

@ -48,6 +48,8 @@ public:
// clears the selection in the radiobuttons in the cycle
// and returns the old selection (if any)
wxRadioButton* ClearSelections();
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
private:
wxRadioButton* AddInCycle(wxRadioButton* cycle);
void RemoveFromCycle();

View File

@ -54,6 +54,7 @@ public:
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
virtual wxSize DoGetBestSize() const;
private:

View File

@ -165,6 +165,7 @@ public:
wxString GetLabel(int nItem) const;
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
virtual wxSize DoGetBestSize(void) const;
virtual void DoSetSize( int nX
,int nY

View File

@ -66,6 +66,7 @@ public:
virtual void SetFocus(void);
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
virtual wxSize DoGetBestSize() const;
private:

View File

@ -96,6 +96,8 @@ protected:
#endif // wxUSE_TOOLTIPS
}
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
// return the number of items in major direction (which depends on whether
// we have wxRA_SPECIFY_COLS or wxRA_SPECIFY_ROWS style)
unsigned int GetMajorDim() const { return m_majorDim; }

View File

@ -120,6 +120,8 @@ public:
bool OnKeyDown(wxKeyEvent& event);
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
// override the base class methods dealing with window positioning/sizing
// as we must move/size the buttons as well
virtual void DoMoveWindow(int x, int y, int width, int height);

View File

@ -51,6 +51,8 @@ public:
virtual void ChangeValue(bool value);
protected:
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
// implement our own drawing
virtual void DoDraw(wxControlRenderer *renderer);