int EasyTab_SetBounds (int panel, int tabControl, int whichBounds, Rect bounds);
This function sets the size and location of a Tab control.
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. |
whichBounds | integer | Specifies whether to set the size and position in terms of
If If |
bounds | Rect | The Rect structure that specifies the location and size of the Tab control. The Rect structure is defined as follows: typedef struct Hint: : You can create a Rect without having to declare a variable by using the following function: Rect MakeRect (int top, int left, int height, int width); Example: EasyTab_SetBounds (panelHandle, tabCtrl, VAL_EASY_TAB_EXTERIOR_BOUNDS, |
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:
A description of any of these error codes can be obtained using the GetGeneralErrorString function in the toolbox.fp instrument driver. |