Showing changes from revision #1 to #2:
Added | Removed | Changed
Entry | |
---|---|
R0 | 0 => return the current menu tree state, or |
1 => report tree leading up to, but not including, a window/icon pair | |
R1 | Pointer to buffer for result |
R2 | Window handle of menu (if R0 =1) |
R3 | Icon handle of entry in menu (if R0 = 1) |
Exit | |
---|---|
R0 | Corrupt |
R1 | Returned values in buffer |
The purpose of this call is to return the selected menu item and the sub-menus used. This is called the ‘menu tree’.
The buffer is filled with a list of numbers in the same format as returned by Menu_Selection by Wimp_Poll.
The buffer is terminated with the value of -1.
The buffer will return null (-1) if:
If the window is a dialog box, the list of sub-menus used will not include the dialog box.