SET MENU ITEM MARK

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11 (Modified)


SET MENU ITEM MARK (menu; menuItem; mark{; process})

ParameterTypeDescription
menuNumber | RefMenuMenu number or Menu reference
menuItemNumberItem number or
-1 for last item added
markStringNew menu item mark
processNumberProcess reference number

Description

The SET MENU ITEM MARK command changes the check mark of the menu item whose menu number or reference is passed in menu and whose item number is passed in menuItem to the first character of the string passed in mark. You can pass -1 in menuItem in order to designate the last item added to the menu.

If you omit the process parameter, SET MENU ITEM MARK applies to the menu bar for the current process. Otherwise, SET MENU ITEM MARK applies to the menu bar for the process whose reference number is passed in process.

Note: If you pass a MenuRef in menu, the process parameter serves no purpose and will be ignored.

If you pass an empty string, any mark is removed from the menu item. Otherwise:

On Macintosh, the first character of the string becomes the mark of the menu item. Usually, you will pass Char (18), which is the check mark character for Macintosh menus.

On Windows, the menu item is assigned the standard check mark.

Example

See example for the Get menu item mark command.

See Also

Get menu item mark.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next