#define wxHAS_3STATE 0
#endif
-
#include "wx/motif/private.h"
void wxCheckBoxCallback (Widget w, XtPointer clientData,
if( !wxControl::CreateControl( parent, id, pos, size, style, validator,
name ) )
return false;
+ PreCreation();
wxXmString text( GetLabelText(label) );
XmToggleButtonSetState ((Widget) m_mainWidget, False, True);
+ PostCreation();
AttachWidget( parent, m_mainWidget, (WXWidget)NULL,
pos.x, pos.y, size.x, size.y );
- ChangeBackgroundColour();
return true;
}
void wxCheckBox::ChangeBackgroundColour()
{
+ if (!m_backgroundColour.Ok())
+ return;
+
wxComputeColours (XtDisplay((Widget) m_mainWidget), & m_backgroundColour,
(wxColour*) NULL);