Type | Description | |||
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. |
The following VB sample changes the default icon for the cells of radio type:
ComboBox1.RadioImage(True) = 1 ' Sets the icon for cells of radio type that are checked ComboBox1.RadioImage(False) = 2 ' Sets the icon for cells of radio type that are unchecked
The ComboBox1.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_combobox.SetRadioImage( TRUE, 1 ); m_combobox.SetRadioImage( FALSE, 2 );
The following VB.NET sample changes the default icon for the cells of radio type:
With AxComboBox1 .set_RadioImage(True, 1) .set_RadioImage(False, 2) End With
The following C# sample changes the default icon for the cells of radio type:
axComboBox1.set_RadioImage(true, 1); axComboBox1.set_RadioImage(false, 2);
The following VFP sample changes the default icon for the cells of radio type:
with thisform.ComboBox1 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