if ( !wxControl::Create(parent, id, pos, size, style, wxDefaultValidator, name) )
return FALSE;
+ m_hasDialogBackground = TRUE;
+
SetLabel(label);
SetBestSize(size);
if ( m_status == Status_Checked )
flags |= wxCONTROL_CHECKED;
+ wxBitmap bitmap(GetBitmap(GetState(flags), m_status));
+
renderer->GetRenderer()->
DrawCheckButton(dc,
GetLabel(),
- GetBitmap(GetState(flags), m_status),
+ bitmap,
renderer->GetRect(),
flags,
GetWindowStyle() & wxALIGN_RIGHT ? wxALIGN_RIGHT
{
}
-bool wxStdCheckboxInputHandler::HandleActivation(wxControl *control,
+bool wxStdCheckboxInputHandler::HandleActivation(wxInputConsumer *consumer,
bool activated)
{
// only the focused checkbox appearance changes when the app gains/loses
// activation
- return control->IsFocused();
+ return consumer->GetInputWindow()->IsFocused();
}
#endif // wxUSE_CHECKBOX