This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20 R7
GET MENU ITEM ICON
|
GET MENU ITEM ICON ( menu ; menuItem ; iconRef {; process} ) | ||||||||
Parameter | Type | Description | ||||||
menu | Longint, MenuRef |
![]() |
Menu reference or Menu number | |||||
menuItem | Longint |
![]() |
Number of menu item or -1 for the last item added to the menu | |||||
iconRef | Text variable, Longint variable |
![]() |
Name or number of picture associated with menu item | |||||
process | Longint |
![]() |
Process number | |||||
The GET MENU ITEM ICON command returns, in the iconRef variable, the reference of any icon that is associated with the menu item designated by the menu and menuItem parameters. This reference is the pathname or number of the picture.
You can pass -1 in menuItem in order to specify the last item added to menu.
In menu, you can pass a menu reference (MenuRef) or a menu number. If you pass a menu reference, the process parameter is unnecessary and will be ignored if it is passed. If you pass a menu number, the command will take the corresponding menu in the main menu bar of the current process into account. If you want to designate another process, pass its number in the optional process parameter.
If no icon is associated with the menu item, the command returns a blank value.
Product: 4D
Theme: Menus
Number:
983
Created: 4D v11 SQL
Modified: 4D v17 R6
4D Language Reference ( 4D v20 R7)