Use style to change font size and weight for RadioButton and Label : RadioButton « Components « Flex






Use style to change font size and weight for RadioButton and Label

Use style to change font size and weight for RadioButton and Label
       

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">

  <mx:Style>
  @namespace mx "http://www.adobe.com/2006/mxml";
    mx|RadioButton, mx|Label {
      font-size:10;
      font-weight:bold;
    }
  </mx:Style>
  <mx:Panel title="Select a vehicle" width="135">
    <mx:RadioButton label="Plane" value="plane" groupName="vehicleGroup"/>
    <mx:RadioButton label="Train" value="train" groupName="vehicleGroup"/>
    <mx:RadioButton label="Automobile" value="car" groupName="vehicleGroup"/>
    <mx:RadioButtonGroup id="vehicleGroup" />
    <mx:ControlBar>
      <mx:Label text="asdf"/>
    </mx:ControlBar>
  </mx:Panel>
  
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Add RadioButton to RadioButtonGroupAdd RadioButton to RadioButtonGroup
2.RadioButton click eventRadioButton click event
3.RadioButton default valueRadioButton default value
4.Define RadioButton control with Define RadioButton control with <mx:RadioButton>
5.Create RadioButton group using the RadioButtonGroup controlCreate RadioButton group using the RadioButtonGroup control
6.Bind bindable variable to RadioButtonBind bindable variable to RadioButton
7.Bind RadioButton to ModelBind RadioButton to Model
8. and three <mx:RadioButtonGroup/> and three <mx:RadioButton/>
9.Change Image value by using RadioButtonChange Image value by using RadioButton
10.Create a RadioButtonGroup and put RadioButton into itCreate a RadioButtonGroup and put RadioButton into it
11.Use radio button to change stateUse radio button to change state
12.RadioButton with group nameRadioButton with group name