Revert "Remove wxStaticBox custom drawing code entirely"

This reverts commit 616586f301 because it
turns out that using WS_EX_TRANSPARENT is incompatible with using
WS_EX_COMPOSITED (see parent commit).

Reintroducing all this code is painful, but there doesn't seem to be any
way of avoiding to have it as long as we use WS_EX_COMPOSITED. If we
stop using this style, we could revert this commit, this re-applying the
original change.

Closes #22982.
This commit is contained in:
Vadim Zeitlin 2022-11-28 18:55:45 +00:00
parent 20bbc43a20
commit c5f613c941
6 changed files with 472 additions and 46 deletions

View file

@ -583,9 +583,7 @@ void StaticWidgetsPage::OnBoxCheckBox(wxCommandEvent& event)
void StaticWidgetsPage::OnButtonBoxText(wxCommandEvent& WXUNUSED(event))
{
wxStaticBox* const box = m_sizerStatBox->GetStaticBox();
box->SetLabel(m_textBox->GetValue());
wxLogMessage("Box label changed, now is '%s'", box->GetLabel());
m_sizerStatBox->GetStaticBox()->SetLabel(m_textBox->GetValue());
}
void StaticWidgetsPage::OnButtonLabelText(wxCommandEvent& WXUNUSED(event))