Hi Ralf :-)
I use this in different apps as well, without problems. I use the emulator palmos351-en-m100-dbg.rom. I install Grouper (here it menuOpenEvent isn't posted) and JDictPilot (here I get the menuOpenEvent). I enable in Settings->Logging: normal and Posted Events, Received Events.
from JDictPilot:
161.343: -> EvtAddEventToQueue: keyDownEvent Key:0x105 (vchrMenu), Modifiers: 0x0008
161.343: <- EvtGetEvent: keyDownEvent Key:0x105 (vchrMenu), Modifiers: 0x0008
161.359: -> EvtAddEventToQueue: menuOpenEvent RscID:0, cause:0
161.359: -> EvtAddEventToQueue: keyDownEvent Key:0x105 (vchrMenu), Modifiers: 0x0048
161.359: <- EvtGetEvent: menuOpenEvent RscID:0, cause:0
161.359: <- EvtGetEvent: keyDownEvent Key:0x105 (vchrMenu), Modifiers: 0x0048
from Grouper:
177.328: -> EvtEnqueueKey: ascii = 0x0105, keycode = 0x0000, modifiers = 0x0008.
177.328: <- EvtGetSysEvent: keyDownEvent Key:0x105 (vchrMenu), Modifiers: 0x0008
177.328: <- EvtGetEvent: keyDownEvent Key:0x105 (vchrMenu), Modifiers: 0x0008
177.343: <- EvtGetEvent: winExitEvent Enter: 0001D070 Exit: 00002B10 Exit Form: "Grouper"
177.343: <- EvtGetEvent: winEnterEvent Enter: 0001D070 Exit: 00002B10 Exit Form: "Grouper"
178.703: -> EvtEnqueuePenPoint: pen->x=181, pen->y=250.
What's the difference? Why does it behave different?
Regards Henk
Ralf Dietrich wrote:
First,please tell us the ROM-Version (Emulator/Simulator) you are using and your current logging method (from Emulator-menu?).
We have a similar functionality in our apps, but we have no problems using menuOpenEvent and MenuAddItem() to enable dynamic menus.
To debug, simple set a break-point at the current Form-handler and press the menu-key. You will get a winExitEvent, winEnterEvent, menuOpenEvent...
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/
