Removes a tab from the control.
Syntax
Result = Send_Message(Ctrl, "OLE.RemoveTab", Handle)
Parameters
Parameter | Description |
---|---|
Handle | Handle to an exiting tab |
Returns
'1' if the tab was found and removed, '0' otherwise.
Remarks
The RemoveTab method removes a given tab from the control. This method does not accept a tag index. You must pass a tab handle instead. If you know only the index of the tab, you can call IndexToHandle first. If the tab was found and removed, then this method returns '1'.
Example
// Get the handle to the second tab so we can remove it TabHandle = Send_Message(@Window:".OLE_TAB", "OLE.IndexToHandle", 2) Send_Message(@Window:".OLE_TAB", "OLE.RemoveTab", TabHandle)