wxControl::wxControl()
{
m_needParent = TRUE;
- m_createComplete = false;
}
bool wxControl::Create( wxWindow *parent,
const wxValidator& validator,
const wxString &name )
{
- m_createComplete = false;
bool ret = wxWindow::Create(parent, id, pos, size, style, name);
#if wxUSE_VALIDATORS
}
}
-void wxControl::PostSetLabel()
-{
- // make sure the widget has been created, and that PostCreate has already
- // been called
- if (m_widget && m_createComplete && GetAdjustMinSizeFlag())
- SetBestSize(wxDefaultSize);
-}
-
wxString wxControl::GetLabel() const
{
return m_label;
InheritAttributes();
ApplyWidgetStyle();
SetInitialBestSize(size);
- m_createComplete = true;
}
return attr;
}
-void wxControl::ApplyWidgetStyle(bool forceStyle)
-{
- GtkRcStyle *style = CreateWidgetStyle(forceStyle);
- if ( style )
- {
- DoApplyWidgetStyle(style);
- gtk_rc_style_unref(style);
- }
-}
-
-void wxControl::DoApplyWidgetStyle(GtkRcStyle *style)
-{
- gtk_widget_modify_style(m_widget, style);
-}
-
-
#endif // wxUSE_CONTROLS