SizeRingCtrlToText
int SizeRingCtrlToText (int panel, int ringCtrl);
Purpose
This function resizes the specified ring control so that it is large enough to completely display the text of any of its entries.
The ring control must be a plain ring control or a recessed menu ring (styles CTRL_RING or CTRL_RECESSED_MENU_RING).
Parameters
Input | ||
Name | Type | Description |
panel | int | The specifier for a particular panel that is currently in memory. This handle will have been returned by the LoadPanel, NewPanel, or DuplicatePanel function. |
ringCtrl | int | Pass the ID of the ring control to resize. The ID is the defined constant (located in the UIR header file) which was assigned to the control in the User Interface Editor, or the ID returned by the NewCtrl or DuplicateCtrl function. |
Return Value
Name | Type | Description | ||
status | int | Returns 0 if the function succeeded or a negative error code if the function failed. 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. |
Additional Information
Library: Programmer's Toolbox
Include file: toolbox\toolbox.h
LabWindows/CVI compatibility: LabWindows/CVI 4.0 and later