Hi Ralf,

ah, you saved the day. I've never thought about to look for other MenuXYZ calls in the source. The most parts of this code isn't written by myself, that's why many things a quite different than they would be in my own source. But now, I learned somthing for later, menuOpenEvent only comes if you're not messing around with the menu before.

Thank you very much
Henk

Ralf Dietrich wrote:

What's the difference? Why does it behave different?

The different is in your event-handler. If you call one of those Menu* functions before, the menuOpenEvent is not fired:
MenuGetActiveMenu()
MenuInit()
MenuSetActiveMenu()


In the Grouper source grouper.c:1512 in SetMode()
MenuBarPtr mb = MenuGetActiveMenu();
if (!mb) {
    mb = MenuInit(idMenuGrouper);
    MenuSetActiveMenu(mb);
}

If you temporary comment this out, you will get your menuOpenEvent. Be also beware of the handled return state of your event handler is correct.
Solution: To get your dynamic menu to work, move your dynamic menu source code to menuOpenEvent.


This behaviour is also in Palm OS 4.1 efigs debug ROM.

best regards,


--
-------------------------------------------------------------------------
  Henk Jonas
  Palm OS � certified developer

  [EMAIL PROTECTED]                                   www.metaviewsoft.de
-------------------------------------------------------------------------

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to