EasyTab_RemovePanel

int EasyTab_RemovePanel (int panel, int tabControl, int tabPanelHandle);

Purpose

This function removes a tab from the Tab control. This means that the panel corresponding to the removed tab is no longer owned by the Tab control. This function does not discard the panel.

This function hides the panel by setting ATTR_VISIBLE to false.

Parameters

Input
Name Type Description
panel integer The specifier for a particular panel that is currently in memory.

This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function.
tabControl integer The ID returned by the EasyTab_Create or EasyTab_ConvertFromCanvas function.
tabPanelHandle integer Panel Handle returned by EasyTab_LoadPanels or EasyTab_GetAttribute(,,ATTR_EASY_TAB_ACTIVE_PANEL,).

Return Value

Name Type Description
status integer Return value indicating whether the function was successful. A negative number indicates that an error occurred.

The possible negative error codes are:
Return Values: 0   Success
–1 to –999 A User Interface Library error code. (Constants are available in userint.h.)
–5000 to –5499 A Toolbox instrument driver error code. (Constants are available in toolbox.h.)

A description of any of these error codes can be obtained using the GetGeneralErrorString function in the toolbox.fp instrument driver.