fix broken recursive show for choices, tabs, and group boxes

svn: r2287
This commit is contained in:
Matthew Flatt 2006-02-20 19:23:31 +00:00
parent 9b9244c7b6
commit 785753b27e
3 changed files with 9 additions and 0 deletions

View File

@ -280,6 +280,9 @@ void wxChoice::OnChar(wxKeyEvent *event)
//-----------------------------------------------------------------------------
void wxChoice::DoShow(Bool show)
{
if (!CanShow(show))
return;
if (!show && cTitle)
cTitle->DoShow(show);
if (show) {
@ -287,7 +290,9 @@ void wxChoice::DoShow(Bool show)
} else {
::HideControl(cMacControl);
}
wxWindow::DoShow(show);
if (show && cTitle)
cTitle->DoShow(show);
}

View File

@ -172,6 +172,8 @@ void wxGroupBox::Paint(void)
//-----------------------------------------------------------------------------
void wxGroupBox::DoShow(Bool show)
{
if (!CanShow(show)) return;
if (show) {
::ShowControl(cMacControl);
} else {

View File

@ -324,6 +324,8 @@ void wxTabChoice::Paint(void)
//-----------------------------------------------------------------------------
void wxTabChoice::DoShow(Bool show)
{
if (!CanShow(show)) return;
if (show) {
::ShowControl(cMacControl);
} else {