Hello.
There was a following task with special MENU behaviour:
If I select the menu-item that is "endpoint" (not a submenu), and press Enter, then new dialog-window should appear, but the entire menu should not collapsed.
After closing dialog-window I should return to last selected menu-item.
For that I wrote the special MENU-callback (see pictures). This works well on our device with a HW-keyboard (without a mouse).
But now we intend to use a new device with touch screen.
To prevent a reaction of menu to PID while dialog window is still open I tried to use WM_MakeModal. It works, the menu does not respond to the mouse until I close this modal window.
But for this modal window I cannot use screen-keyboard for input data to this window, because it is modal.
How to resolve this situation? I would like to implement this behavior of the menu - it should not respond to a pointer (mouse / touchpad) of events while this window is open.
Is it possible to make a "modal" window with its modality not for all windows?
Or maybe there is a way to handle mouse/touchpad events inside MENU-callback to avoid their influence to menu behaviour (collapsing)?
Could you provide some code sample?
There was a following task with special MENU behaviour:
If I select the menu-item that is "endpoint" (not a submenu), and press Enter, then new dialog-window should appear, but the entire menu should not collapsed.
After closing dialog-window I should return to last selected menu-item.
For that I wrote the special MENU-callback (see pictures). This works well on our device with a HW-keyboard (without a mouse).
But now we intend to use a new device with touch screen.
To prevent a reaction of menu to PID while dialog window is still open I tried to use WM_MakeModal. It works, the menu does not respond to the mouse until I close this modal window.
But for this modal window I cannot use screen-keyboard for input data to this window, because it is modal.
How to resolve this situation? I would like to implement this behavior of the menu - it should not respond to a pointer (mouse / touchpad) of events while this window is open.
Is it possible to make a "modal" window with its modality not for all windows?
Or maybe there is a way to handle mouse/touchpad events inside MENU-callback to avoid their influence to menu behaviour (collapsing)?
Could you provide some code sample?
Best regards,
Volodymyr.
Volodymyr.
The post was edited 1 time, last by volodymyr ().