|
List Info
Thread: Show unique window
|
|
| Show unique window |

|
2006-04-21 07:47:18 |
|
Did you check the wxDIALOG_MODAL style for the dialog?
Regards,
Julian
At 22:37 20/04/2006, you wrote:
>I have an app to which I have just done some updating. It was mostly
>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
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
==============================================================================
Julian Smart julian anthemion.co.uk
28/5 Gillespie Crescent, Edinburgh, http://www.anthemion.co.uk
Midlothian, U.K., EH10 4HU +44 (0)131 229 5306
Writer's Cafe: power tools for writers http://www.writerscafe.co.uk
HelpBlocks: HTML help authoring http://www.helpblocks.com
DialogBlocks: cross-platform dialogs http://www.anthemion.co.uk/dialogblocks
==============================================================================
|
| Show unique window |

|
2006-04-21 11:37:42 |
|
wrote:
>
> Hi Alan,
>
> Did you check the wxDIALOG_MODAL style for the dialog?
>
> Regards,
>
> Julian
Der . . . even after checking and triple checking, I always miss the
stupidest thing. Since we are on that subject however . . .
Why must you define that wxDIALOG_MODAL style and use the ShowModal()
method? It seems repetative, but I am also a bit ignorant. Anyone
care to take a minute and school me (or just point me at some clear
doc)? Thanx.
--Alan
|
[1-2]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|