guiMenuRemove (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

NX-400

Firmware version:

1.00.00


This function removes the menu and releases the resources.

 

 

Input:

menu : SYSHANDLE

The handle to the menu to remove. Will be made invalid once the menu is removed.

 

Returns: INT

0

- Success.

-1

- Interface is not open (see guiOpen).

-3

- Invalid handle.

-11

- The GUI API is not supported.

 

Declaration:

FUNCTION guiMenuRemove : INT;
VAR_INPUT
  menu : ACCESS SYSHANDLE;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  rc   : INT;
  menu : SYSHANDLE;
END_VAR;
 
BEGIN
  ...
  // Remove the menu.
  rc := guiMenuRemove(menu := menu);
  ...
END;
END_PROGRAM;