ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Managing external languages / Object functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
HsMenu,Status (External language)
In french: HsMenu,Etat
Returns the status of a menu option (active, invisible, grayed).
Example
// In C
// Status of the option corresponding to the LC path
CALLWD("HsMenu,Status,LC");
if WDInt==1 CALLWD("INFO, The option is not active");
// Status of option 15
CALLWD("HsMenu,Status,15");
if WDInt==2 CALLWD("INFO, The option does not appear");
// In Pascal
(* Status of the option corresponding to the LC path *)
CALLWD('HsMenu,Status,LC');
if WDInt=1 then
CALLWD('INFO, The option is not active');
(* Status of option #15 *)
CALLWD('HsMenu,Status,15');
if WDInt=2 then
CALLWD('INFO, The option does not appear');
// In VB
' Status of the option corresponding to the LC path
call CALLWD("HsMenu,Status,LC")
if WDInt=1 then
call CALLWD('INFO, The option is not active')
end if
' Status of option #15
call CALLWD("HsMenu,Status,15")
if WDInt=2 then  
call CALLWD("INFO, The option does not appear")
end if
Syntax
HsMenu,Status([<Option>])
<Option>: Character string (optional)
Number that corresponds to:
  • the subscript of the option
  • a character string corresponding to the access path to the option (shortcuts).
Remarks
HsMenu, Status returns the status of the menu option in WdInt. This status can correspond to:
  • -1 if the option does not exist
  • 0 if the option is active
  • 1 if the option is grayed
  • 2 if the option is invisible
Minimum version required
  • Version 14
Comments
Click [Add] to post a comment

Last update: 04/06/2023

Send a report | Local help