Applied patch [ 608370 ] fix for static text sizing behaviour
wxStaticText is meant to resize when SetLabel is called unless the flag wxST_NO_AUTORESIZE is used when creating it. Motif currently ignores this flag and always resizes the control. The attached patch provides a wxStaticText specific override of SetLabel() which honours the resize policy requested via the wxST_NO_AUTORESIZE flag. I have tested on AIX 4.3 which is Motif 2.1 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -56,6 +56,7 @@ public:
|
||||
virtual void ChangeFont(bool keepOriginalSize = TRUE);
|
||||
virtual void ChangeBackgroundColour();
|
||||
virtual void ChangeForegroundColour();
|
||||
virtual void SetLabel(const wxString& label);
|
||||
|
||||
// Get the widget that corresponds to the label (for font setting, label setting etc.)
|
||||
virtual WXWidget GetLabelWidget() const
|
||||
|
Reference in New Issue
Block a user