Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > OOP Powerplant for Mac > Re: Menus updat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 444 of 484
Post > Topic >>

Re: Menus update in LApplication

by michfiel@[EMAIL PROTECTED] (Michael Fielitz) Mar 8, 2006 at 02:34 PM

Hello,

<jolielara@[EMAIL PROTECTED]
> wrote:

> Hi,
> 
> I encounter trouble to update menus in my LApplication-derived app for
> LSingleDoc-derived windows.
> Each time I display a dialog box using this king of code:
> 
> void AnyFunc()
> {
>       StDialogHandler theHandler(PPob_MyID, this);
>       LWindow* theDialog = theHandler.GetDialog();
>       theDialog->Show();
>       while (true) {
>               MessageT hitMessage = theHandler.DoDialog();
>               if (hitMessage == msg_Cancel) {
>                         break;
>               } else if (hitMessage == msg_OK) {
>                       // Do something
>                       break;
>               }
>       }
> }
> 
> when exiting this dialog using cancel or OK my app's menus are not
> updated correctly
[...]


just a guess: this second parameter to the StDialogHandler's ctor - are
you sure to pass a pointer to your application class as a
supercommander?
I think this affect the correct command handling/menu enabling
mechanism.

Michael
 




 5 Posts in Topic:
Menus update in LApplication
jolielara@[EMAIL PROTECTE  2006-03-08 05:14:05 
Re: Menus update in LApplication
michfiel@[EMAIL PROTECTED  2006-03-08 14:34:45 
Re: Menus update in LApplication
jolielara@[EMAIL PROTECTE  2006-03-08 05:47:23 
Re: Menus update in LApplication
David Phillip Oster <o  2006-03-08 14:31:44 
Re: Menus update in LApplication
jolielara@[EMAIL PROTECTE  2006-03-10 01:48:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 15:40:12 CST 2008.