MODIFYMENUROUTINEQQ (W*32, W*64)

QuickWin Function: Changes a menu item's callback routine.

Module: USE IFQWIN

Syntax

result = MODIFYMENUROUTINEQQ (menuIdD, itemID, routine)

menuID
(Input) INTEGER(4). Identifies the menu that contains the item whose callback routine is be changed, starting with 1 as the leftmost menu.


itemID
(Input) INTEGER(4). Identifies the menu item whose callback routine is to be changed, starting with 0 as the top item.


routine
(Input) EXTERNAL. Callback subroutine called if the menu item is selected. All routines take a single LOGICAL parameter that indicates whether the menu item is checked or not. You can assign the following predefined routines to menus:


Results

The result type is LOGICAL(4). The result is .TRUE. if successful; otherwise, .FALSE..

Compatibility

QUICKWIN GRAPHICS LIB

See Also

APPENDMENUQQ, DELETEMENUQQ, INSERTMENUQQ, MODIFYMENUFLAGSQQ, MODIFYMENUSTRINGQQ, Building Applications: Using QuickWin Overview, Building Applications: Program Control of Menus