|Checked as Boolean||A boolean expression that indicates the radio's state. True means checked, and False means unchecked.|
|Long||A long expression that indicates the index of image used to paint the radio button. The last 7 bits in the high significant byte of the long expression indicates the identifier of the skin being used to paint the object. Use the Add method to add new skins to the control. If you need to remove the skin appearance from a part of the control you need to reset the last 7 bits in the high significant byte of the color being applied to the part.|
Use RadioImage and CheckImage properties to define the icons used for radio and check box cells. The RadioImage property defines the index of the icon being used by radio buttons. Use the CellHasRadioButton property to assign a radio button to a cell. Use the CellHasCheckBox property to assign a checkbox to a cell. Use the CellImage or CellImages property to assign one or multiple icons to a cell. Use the CellPicture property to assign a picture to a cell. Use the CellStateChanged event to notify your application when the cell's state is changed. Use the PartialCheck property to allow partial check feature within the column. Use the Images method to insert icons at runtime. The following samples require a control with icons, else nothing will be changed.
The following VB sample changes the default icon for the cells of radio type:
Tree1.RadioImage(True) = 1 ' Sets the icon for cells of radio type that are checked Tree1.RadioImage(False) = 2 ' Sets the icon for cells of radio type that are unchecked
The Tree1.RadioImage(True) = 0 makes the control to use the default icon for painting cells of radio type that are checked.
The following C++ sample changes the default icon for the cells of radio type:
m_tree.SetRadioImage( TRUE, 1 ); m_tree.SetRadioImage( FALSE, 2 );
The following VB.NET sample changes the default icon for the cells of radio type:
With AxTree1 .set_RadioImage(True, 1) .set_RadioImage(False, 2) End With
The following C# sample changes the default icon for the cells of radio type:
axTree1.set_RadioImage(true, 1); axTree1.set_RadioImage(false, 2);
The following VFP sample changes the default icon for the cells of radio type:
with thisform.Tree1 local sT, sCR sCR = chr(13) + chr(10) sT = "RadioImage(True) = 1"+ sCR sT = sT + "RadioImage(False) = 2"+ sCR .Template = sT endwith
The VFP considers the RadioImage call as being a call for an array, so an error occurs if the method is called directly, so we built a template string that we pass to the Template property.