SS.MnSel Get Status

From NitrOS-9
Revision as of 16:13, 5 April 2014 by Glaw16 (Talk | contribs) (Created page with 'Requests that the high-level menu handler take control of menu selection. {| | colspan="2" | '''Entry Conditions''' |- | A || ''path number'' |- | B || SS.MnSel ($87) |- | colsp…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Requests that the high-level menu handler take control of menu selection.

Entry Conditions
A path number
B SS.MnSel ($87)
Exit Conditions
A menu ID (if valid selection)
  0 (if invalid selection)
B item number of menu (if valid selection)
Error Output
CC carry set on error
B error code (if invalid selection)

Additional Information

  • After detecting a valid mouse click (when the mouse is pointing to a control area on a window), a process needs to call SS.MnSel. This calls tells the enhanced window interface to handle any menu selection being made. If accumulator A returns with 0, then no selection has been made. The calling process needs to test and handle other returned values.
  • A condition where Register A returns a valid menu ID number and Register B returns 0 signals the selection of a menu with no items. The application can now take over and do a special graphics pull down of its own. The menu title remains highlighted until the application calls the SS.UMBar SetStat to update the menu bar.
  • The support module for this call is WindInt.