Removes OI controls from the panel.

Version Introduced: 2.0.2

Syntax

rv = Send_Message(Ctrl, "OLE.RemoveCtrls", HandleArray)

Parameters

ParameterDescription
HandleArrayA dynamic array of OI control handles to remove from the panel

Remarks

The RemoveCtrls method removes one or more preexisting OI controls from the panel. Those controls, if they are found in the panel, are removed from the panel and placed back onto the OI form in their original positions.

The only parameter is a dynamic array of control handles to be remove. Each field (@FM delimited) is a window handle retrieved from the controls' HANDLE properties.

Example

CtrlArray = ""  
 
// Get the handles to the label and editline  
CtrlArray<-1> = Get_Property(@Window:".LABEL", "HANDLE")  
CtrlArray<-1> = Get_Property(@Window:".EDITLINE", "HANDLE")  
 
// Remove them, restoring them back to their original locations on the OI form  
Send_Message(@Window:".OLE_PANEL", "OLE.RemoveCtrls", CtrlArray)

See Also

AddCtrls

  • No labels