detecting_20when_20a_20menu_20is_20open
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
detecting_20when_20a_20menu_20is_20open [2018/03/31 13:19] – external edit 127.0.0.1 | detecting_20when_20a_20menu_20is_20open [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Detecting when a menu is open===== | =====Detecting when a menu is open===== | ||
- | //by Richard Russell, December 2008//\\ \\ There may be circumstances when you need to detect whether a drop-down (' | + | //by Richard Russell, December 2008//\\ \\ There may be circumstances when you need to detect whether a drop-down (' |
+ | |||
+ | <code bb4w> | ||
WM_COMMAND = &111 | WM_COMMAND = &111 | ||
WM_MENUSELECT = &11F | WM_MENUSELECT = &11F | ||
Line 8: | Line 10: | ||
*SYS 1 | *SYS 1 | ||
ON SYS PROCsys(@msg%, | ON SYS PROCsys(@msg%, | ||
- | The **PROCsys** routine (which should be placed out of harm's way, for example after your program' | + | </ |
+ | |||
+ | The **PROCsys** routine (which should be placed out of harm's way, for example after your program' | ||
+ | |||
+ | <code bb4w> | ||
DEF PROCsys(M%, | DEF PROCsys(M%, | ||
CASE M% OF | CASE M% OF | ||
Line 15: | Line 21: | ||
| | ||
| | ||
+ | </ | ||
+ | |||
This code sets the global variable **MenuOpen%** to TRUE whilst a menu is displayed and to FALSE when no menu is displayed. You could ' | This code sets the global variable **MenuOpen%** to TRUE whilst a menu is displayed and to FALSE when no menu is displayed. You could ' |
detecting_20when_20a_20menu_20is_20open.1522502355.txt.gz · Last modified: 2024/01/05 00:18 (external edit)