wxProp now intercepts EVT_TEXT_ENTER instead of EVT_TEXT

Added Checkbox::SetLabel


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1998-09-07 14:44:38 +00:00
parent b4071e913e
commit 83058c584f
8 changed files with 34 additions and 11 deletions

View File

@@ -83,12 +83,20 @@ void wxCheckBox::SetValue( bool state )
gtk_toggle_button_set_state( GTK_TOGGLE_BUTTON(m_widget), GTK_STATE_NORMAL );
}
bool wxCheckBox::GetValue(void) const
bool wxCheckBox::GetValue() const
{
GtkToggleButton *tb = GTK_TOGGLE_BUTTON(m_widget);
return tb->active;
}
void wxCheckBox::SetLabel( const wxString& label )
{
wxControl::SetLabel( label );
GtkButton *bin = GTK_BUTTON( m_widget );
GtkLabel *g_label = GTK_LABEL( bin->child );
gtk_label_set( g_label, GetLabel() );
}
void wxCheckBox::Enable( bool enable )
{
wxControl::Enable( enable );