summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6a4cbac)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47448
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( !wxButtonBase::Create(parent, id, pos, size, style, validator, name) )
return false;
if ( !wxButtonBase::Create(parent, id, pos, size, style, validator, name) )
return false;
+ m_labelOrig = m_label = label ;
OSStatus err;
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
OSStatus err;
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
if ( !wxCheckBoxBase::Create(parent, id, pos, size, style, validator, name) )
return false;
if ( !wxCheckBoxBase::Create(parent, id, pos, size, style, validator, name) )
return false;
+ m_labelOrig = m_label = label ;
SInt32 maxValue = 1 /* kControlCheckboxCheckedValue */;
if (style & wxCHK_3STATE)
SInt32 maxValue = 1 /* kControlCheckboxCheckedValue */;
if (style & wxCHK_3STATE)
SetMajorDim( majorDim == 0 ? n : majorDim, style );
SetMajorDim( majorDim == 0 ? n : majorDim, style );
+ m_labelOrig = m_label = label;
Rect bounds = wxMacGetBoundsForControl( this, pos, size );
if ( bounds.right <= bounds.left )
Rect bounds = wxMacGetBoundsForControl( this, pos, size );
if ( bounds.right <= bounds.left )
if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) )
return false;
if ( !wxControl::Create( parent, id, pos, size, style, validator, name ) )
return false;
+ m_labelOrig = m_label = label;
Rect bounds = wxMacGetBoundsForControl( this, pos, size );
Rect bounds = wxMacGetBoundsForControl( this, pos, size );
if ( !wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ) )
return false;
if ( !wxControl::Create( parent, id, pos, size, style, wxDefaultValidator, name ) )
return false;
+ m_labelOrig = m_label = label;
Rect bounds = wxMacGetBoundsForControl( this, pos, size );
Rect bounds = wxMacGetBoundsForControl( this, pos, size );
void wxStaticText::DoSetLabel(const wxString& label)
{
void wxStaticText::DoSetLabel(const wxString& label)
{
m_label = RemoveMnemonics(label);
wxMacCFStringHolder str( m_label, m_font.GetEncoding() );
m_label = RemoveMnemonics(label);
wxMacCFStringHolder str( m_label, m_font.GetEncoding() );
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
return false;
if ( !wxControl::Create(parent, id, pos, size, style, validator, name) )
return false;
+ m_labelOrig = m_label = label ;
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;