Added wxBORDER_THEME, wxWindow::GetDefaultBorderForControl(), wxWindow::CanApplyThemeBorder().
wxTextCtrl and wxSearchCtrl now get the correct border on wxMSW, and the wxRichTextCtrl sample also now demonstrates correct borders. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1221,6 +1221,9 @@ public:
|
||||
// area (normal windows can't, but e.g. menubar or statusbar can):
|
||||
virtual bool CanBeOutsideClientArea() const { return false; }
|
||||
|
||||
// returns true if the platform should explicitly apply a theme border
|
||||
virtual bool CanApplyThemeBorder() const { return true; }
|
||||
|
||||
protected:
|
||||
// event handling specific to wxWindow
|
||||
virtual bool TryValidator(wxEvent& event);
|
||||
@@ -1381,6 +1384,11 @@ protected:
|
||||
// specified) border for the window class
|
||||
virtual wxBorder GetDefaultBorder() const;
|
||||
|
||||
// this allows you to implement standard control borders without
|
||||
// repeating the code in different classes that are not derived from
|
||||
// wxControl
|
||||
virtual wxBorder GetDefaultBorderForControl() const { return wxWindowBase::GetDefaultBorder(); }
|
||||
|
||||
// Get the default size for the new window if no explicit size given. TLWs
|
||||
// have their own default size so this is just for non top-level windows.
|
||||
static int WidthDefault(int w) { return w == wxDefaultCoord ? 20 : w; }
|
||||
|
Reference in New Issue
Block a user