EasyTab_AutoSize

int EasyTab_AutoSize (int panel, int tabControl);

Purpose

This function automatically sizes a Tab control to accommodate its largest panels and the space required for the tabs.

This function is called implicitly the first time a Tab control draws itself. In general, it is not necessary to call this function directly.

Note  If the tab control was converted from a canvas control, it will not automatically set its size smaller that the original size of the canvas control.

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.

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.