guiControlRemove (Function)

Top  Previous  Next

Architecture:

NX32L

Device support:

NX-400

Firmware version:

1.00.00


This function removes the provided control, and releases the resources associated with it.

 

 

Input:

control : SYSHANDLE

A handle to the control. Will be made invalid once the control is removed.

 

Returns: INT

0

- Success.

-1

- Interface is not open (see guiOpen).

-3

- The handle is not valid.

-11

- The GUI API is not supported.

 

Declaration:

FUNCTION guiControlRemove : INT;
VAR_INPUT
  control : ACCESS SYSHANDLE;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
VAR
  rc     : INT;
  button : SYSHANDLE;
END_VAR;
 
BEGIN
  ...
  // Remove handle
  rc := guiControlRemove(control := button);
  ...
END;
END_PROGRAM;