List Info

Thread: Show unique window




Show unique window
user name
2006-04-20 21:37:17
written with the previous two releases.  The issues arises with the
code generation of "Show unique window" from the event handler tab.

Old format:  (works great)

void PRC::OnAboutClick( wxCommandEvent& event )
{
////begin wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT in
PRC.
  ;  // Before editing this code, remove the block markers.
  ;  Abtprc* window = new Abtprc(NULL, ID_DIALOG_ABOUT, _("About Passer
Rating Calculator"));
  ;  int returnValue = window->;ShowModal();
    window->;Destroy();
////end wxEVT_COMMAND_MENU_SELECTED event handler for wxID_ABOUT in PRC.
}

2.13 format:  (no ShowModal!)

void PRC::OnMenuHelpNotesClick( wxCommandEvent& event )
{
////begin wxEVT_COMMAND_MENU_SELECTED event handler for
ID_MENU_HELP_NOTES in PRC.
    // Before editing this code, remove the block markers.
  ;  wxWindow* oldWindow = wxWindow::FindWindowById( ID_DIALOG_NOTES );
   ; if (oldWindow)
    {
     ;   oldWindow->Show(true);
 ;       return;
    }
    prcnotes* window = new prcnotes(NULL, ID_DIALOG_NOTES, _("PRC
Notes"));
    window->;Show(true);
////end wxEVT_COMMAND_MENU_SELECTED event handler for
ID_MENU_HELP_NOTES in PRC.
}

No ShowModal() call. ; What happened?!?!?  Thanx.

--Alan




[1]

about | contact  Other archives ( Real Estate discussion Medical topics )