w->SetFocus(); // focus on my window
w->Raise(); // bring window to front
- printf("EED ------ WxBlackBox::bbCreateFrameWindow-------------------- \n");
-// w->Show(true);
+ printf("EED WxBlackBox::bbCreateFrameWindow --------------\n");
+ w->Enable(false);
+
+ w->Show(true);
}
//==================================================================
void WxBlackBox::bbShowWindow()
{
if ((bbmWindow) && (!bbIsShown()))
- {
- bbtkBlackBoxDebugMessage("widget",3,"==> WxBlackBox::bbShowWindow()"
- <<std::endl);
- if (bbGetInputWinDialog())
- {
+ {
+ bbtkBlackBoxDebugMessage("widget",3,"==> WxBlackBox::bbShowWindow()" <<std::endl);
+ if (bbGetInputWinDialog())
+ {
((WxDialog*)bbmWindow)->ShowModal();
- }
- else
- {
- bbGetWindow()->Show();
- bbSetShown(true);
- }
- } // if
-
-
+ } else {
+ printf("//EED -------------- WxBlackBox::bbShowWindow 1 ------------------------ \n");
+ bbGetWindow()->Show();
+ bbSetShown(true);
+ bbmWindow->Enable(true);
+ printf("//EED -------------- WxBlackBox::bbShowWindow 2 ------------------------ \n");
+ } // if Dialog
+ } // if Window shown
}
//==================================================================
w -> SetSizer(sizer);
w -> SetAutoLayout(true);
w -> Layout();
- w->Enable(false);
bbSetOutputWidget( w );
}
if (bbGetOutputWidget()!=NULL)
{
bbGetOutputWidget()->Layout();
- bbGetOutputWidget()->Enable(true);
} // if bbGetOutputWidget
}