PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Special characters
  • Equivalence
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Identifies or modifies the caption of a menu option (popup menu or drop-down menu).
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// Find out the caption of "OPT_IconBar"
ResCaption = MenuLabel(OPT_IconBar)
Syntax

Identifying the caption of a menu option Hide the details

<Result> = MenuLabel([<Window Name>,] <Name of the menu option>)
<Result>: Character string
Current caption of the menu option.
<Window Name>: Optional character string (with or without quotes)
Name of the window containing the menu option.
If this parameter is not specified, MenuLabel handles the current window.
<Name of the menu option>: Character string (without quotes)
Name of the menu option to use. This name is defined in the description window of the menu option. This name must be specified without quotes.

Modifying the caption of a menu option Hide the details

<Result> = MenuLabel([<Window Name>,] <Name of the menu option> , <New Caption>)
<Result>: Character string
Former caption of the menu option.
<Window Name>: Optional character string (with or without quotes)
Name of the window containing the menu option.
If this parameter is not specified, MenuLabel handles the current window.
<Name of the menu option>: Character string (without quotes)
Name of the menu option to use. This name is defined in the description window of the menu option. This name must be specified without quotes.
<New Caption>: Character string (with or without quotes)
New caption for the menu option. You have the ability to add a help message to the menu option. This parameter has the following format: "<New caption>:<Help Message>.
Remarks

Special characters

  • In order for the ":" character not to be considered as a help separator, this ":" character must be preceded by a "backslash" ("\").
  • The "TAB" character enables you to align the following characters to the left ("\t" in the menu editor).
  • The "Char(8)" character enables you to align the following characters to the right ("\a" in the menu editor).
  • The "&" character placed in front of a letter is used to described this letter as shortcut for the menu option.
Java The special characters are ignored. The keyboard shortcuts are not supported by the menu options

Equivalence

MenuLabel is equivalent to ..Caption.
Components
WINDEVReports and Queries wd230obj.dll
Java wd230java.jar
Linux wd230obj.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment