Radio_ConvertFromTree
- Updated2023-02-21
- 1 minute(s) read
int Radio_ConvertFromTree (int panel, int treeToConvert);
Purpose
Converts a tree into a radio button group.
This control is a tree that is configured to look and behave like a mutually exclusive radio button group.
Parameters
| Input | ||
| Name | Type | Description |
| panel | int | The specifier for a particular panel that is currently in memory. You can obtain this handle from functions such as LoadPanel and NewPanel. |
| treeToConvert | int | Specifies the tree control on the panel that will be converted into a radio button group. Pass the defined constant (located in the UIR header file) that was assigned to the tree control in the User Interface Editor or an ID returned by the NewCtrl or DuplicateCtrl function. |
Return Value
| Name | Type | Description |
| radioGroupControl | int | Returns the ID used to specify this control in subsequent function calls. Negative values indicate that an error occurred. If the function succeeds, it will return the same ID that was passed in for the treeToConvert parameter. This means that if the treeToConvert was specified using a defined constant (from the UIR header file) that was assigned to the tree control in the User Interface Editor, then this constant can now be used to refer to the radio group control. |
Additional Information
Library: Radio Button Group
Include file: custctrl\radioGroup.h
LabWindows/CVI compatibility: LabWindows/CVI 7.0 and later