MenuTopSelect Function (ROM Call 0x3E)

menus.h

void MenuTopSelect (HANDLE ExecHandle, short Item);

Emphasizes a toolbox.

MenuTopSelect emphasizes (selects) the toolbox Item (0 = first, 1 = second, etc.) which belongs to the menu associated with the handle ExecHandle, by drawing a thick border arround the toolbox. The Geometry application uses this feature. This command also redraws the menu. Call this function with Item = -1 to cancel the selection. ExecHandle is a handle returned from the MenuBegin function, not one returned from MenuNew.


Uses: CalcBitmapSize, DrawChar, DrawClipRect, DrawFkey, DrawLine, DrawMultiLines, DrawPix, DrawStr, DrawStrWidth, FontSetSys, PortRestore, RestoreScrState, SaveScrState, ScrRect, ScrRectFill, ScrToWin, SetCurAttr, SetCurClip, memset, ST_eraseHelp, CU_cursorState, CU_restore, CU_stop, ROM Call 0x41E, ROM Call 0x420


See also: MenuBegin, QMenuTopSelect