mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-18 18:22:01 +08:00
Remove wxStaticBox custom drawing code entirely
Get rid of a big amount of non-trivial drawing code at the price of having to switch to using a control label if the foreground colour is changed, as we can't change the label colour otherwise now. The only known drawback of this change is that the box will flicker now if doubler buffering is disabled. But as long as we do use double buffering, it shouldn't be a problem.
This commit is contained in:
@@ -583,7 +583,9 @@ void StaticWidgetsPage::OnBoxCheckBox(wxCommandEvent& event)
|
||||
|
||||
void StaticWidgetsPage::OnButtonBoxText(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
m_sizerStatBox->GetStaticBox()->SetLabel(m_textBox->GetValue());
|
||||
wxStaticBox* const box = m_sizerStatBox->GetStaticBox();
|
||||
box->SetLabel(m_textBox->GetValue());
|
||||
wxLogMessage("Box label changed, now is '%s'", box->GetLabel());
|
||||
}
|
||||
|
||||
void StaticWidgetsPage::OnButtonLabelText(wxCommandEvent& WXUNUSED(event))
|
||||
|
||||
Reference in New Issue
Block a user