Controls will readjust their size and minsize when SetLabel or SetFont
are called. Fixed up wxStaticText to blend the wxST_NO_AUTOSIZE with this new functionality. Made SetBestSize public under the SetBestFittingSize name. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -77,6 +77,20 @@ __init__ as a plain old wx.Control is not very useful.", "");
|
||||
void , SetLabel(const wxString& label),
|
||||
"Sets the item's text.", "");
|
||||
|
||||
|
||||
DocDeclStr(
|
||||
bool , GetAdjustMinSizeFlag(),
|
||||
"Returns whether the minsize should be adjusted for this control when
|
||||
`SetLabel` or `SetFont` are called.", "");
|
||||
|
||||
DocDeclStr(
|
||||
void , SetAdjustMinSizeFlag(bool adjust),
|
||||
"By default controls will readjust their size and minsize when
|
||||
`SetLabel` or `SetFont` are called. This flag will allow you to
|
||||
control this behavior.", "
|
||||
|
||||
:see: `GetAdjustMinSizeFlag`
|
||||
");
|
||||
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
Reference in New Issue
Block a user