How to customize the height between the two options of the Radio button control component?

Hi all

Please help me.

I want to reduce the height of two radio button options. I change the Radio band height & width but between two option has not changed.

I try this code below in qml

RadioGroup {}
ID: radiogroup
layoutProperties: {AbsoluteLayoutProperties}
positionY: 375.0
positionX: 600,0
}
preferredWidth: 100.0
preferredHeight: 440,0
maxHeight: 440,0
minHeight: 440,0
Option {id: stc; text: ' '; selected: true}
Option {id: mobily; text: ""}
Option {id: zain; text: ""}
Option {id: blackberry; text: ""}
}

Please help me

I solved this problem using scale Propertie of the RadioGroup.

Thanks for your comments.

Tags: BlackBerry Developers

Similar Questions

  • How to make the Radio buttons switch automatically?

    Hello

    I have this code, all I want to do is make each JRadioButton be verified every time that the expiry of the timer.
    can you please take a look at my actionPerformed and tell me what I'm missing?

    Thank you.
    package kash;
    
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.border.BevelBorder;
    import javax.swing.border.Border;
    import javax.swing.border.TitledBorder;
    import org.jvnet.substance.skin.SubstanceRavenLookAndFeel;
    
    public class ModulesInnerPanel extends JPanel implements ActionListener {
        
      protected ButtonGroup appChoserGroup;
      protected JRadioButton payRollRB;
      protected JRadioButton scRb;
      protected JRadioButton cashNbanksRb;
      protected JRadioButton outSourcingRB;
      private JButton enterButton;
      private Timer t;
      
      
        public ModulesInnerPanel() 
       {
         setLayout(null);
         setBackground(Color.RED);
         setOpaque(true);
         //BORDER
         Border bevel = BorderFactory.createBevelBorder(BevelBorder.RAISED);
         Border b = BorderFactory.createTitledBorder
                 (bevel, 
                  "User's Modules",
                 TitledBorder.DEFAULT_JUSTIFICATION,
                 TitledBorder.DEFAULT_POSITION,
                 new Font("Helvetica", Font.BOLD,  16),
                 Color.white);
         setBorder(b);
         //END BORDER
         
         //RADIO BUTTONS
         appChoserGroup = new ButtonGroup();
         
         payRollRB = new JRadioButton();
         payRollRB.setText("Payroll");
         payRollRB.setBackground(Color.DARK_GRAY);
         payRollRB.setForeground(Color.white);
         payRollRB.setSelected(true);
    
         scRb = new JRadioButton();
         scRb.setText("Stock control");
         scRb.setBackground(Color.DARK_GRAY);
         scRb.setForeground(Color.white);
    
         cashNbanksRb = new JRadioButton();
         cashNbanksRb.setText("Cash and Banks");
         cashNbanksRb.setBackground(Color.DARK_GRAY);
         cashNbanksRb.setForeground(Color.white);
    
         outSourcingRB = new JRadioButton();
         outSourcingRB.setText("Outsourcing");
         outSourcingRB.setBackground(Color.DARK_GRAY);
         outSourcingRB.setForeground(Color.white);
    
         enterButton = new JButton("Enter");
         enterButton.addActionListener(new ActionListener()
         {
             public void actionPerformed(ActionEvent e)
             {
                if (payRollRB.isSelected())
                {
                  JOptionPane.showMessageDialog(null,"Application under construction", "Info", JOptionPane.INFORMATION_MESSAGE);
                }
                else if (scRb.isSelected())
         JOptionPane.showMessageDialog(null,"Application under construction", "Info", JOptionPane.INFORMATION_MESSAGE);
                else if (cashNbanksRb.isSelected())
         JOptionPane.showMessageDialog(null,"Not available", "Info", JOptionPane.INFORMATION_MESSAGE);
             }
         });
    
         //adding Radio Buttons to the Radio Button group
         appChoserGroup.add(payRollRB);
         appChoserGroup.add(cashNbanksRb);
         appChoserGroup.add(scRb);
         appChoserGroup.add(outSourcingRB);
         //END RADIO BUTTONS
         
         //SETTING LAYOUT
         Dimension d1 = new Dimension();
         d1 = payRollRB.getPreferredSize();
         
          Dimension d2 = new Dimension();
          d2 = scRb.getPreferredSize();
          
          Dimension d3 = new Dimension();
          d3 = cashNbanksRb.getPreferredSize();
          
          Dimension d4 = new Dimension();
          d4 = outSourcingRB.getPreferredSize();
          
          Dimension d5 = new Dimension();
          d5 = enterButton.getPreferredSize();
          
         payRollRB.setBounds(20, 20, d1.width, d1.height);
         scRb.setBounds(20, 40, d2.width, d2.height);
         cashNbanksRb.setBounds(20 , 60, d3.width, d3.height);
         outSourcingRB.setBounds(20, 80, d4.width, d4.height);
         enterButton.setBounds(20, 150, d5.width, d5.height);
         //END SETTING LAYOUT
         
            //ADDING ITEMS TO THE PANEL
            add(payRollRB);
            add(scRb);
            add(cashNbanksRb);
            add(outSourcingRB);
            add(enterButton);
            
            t = new Timer(500,this);
            t.start();
       }
        
        public void actionPerformed(ActionEvent event)
        {
               
              if (payRollRB.isSelected())
              {
                
                scRb.setSelected(true);
              }
              
            if (scRb.isSelected())
            {
              cashNbanksRb.setSelected(true);
            }
              
            if (cashNbanksRb.isSelected())
            {
              outSourcingRB.setSelected(true);
            }
            
            if (outSourcingRB.isSelected())
            {
              payRollRB.setSelected(true);
             
            }
        } 
    }

    I want the option buttons to change the selection one after the other (...)

    Ok. So, use the block if/then/else, as suggested in my previous answer (I added that, in your NBS and it worked).

    When the user presses enter switching must stop and it should have control over the Group of radio buttons.

    Then, you should stop the timer in this button actionPerformed.

    Kind regards

    J.

  • How to use the Radio button

    Hello

    In my form, I want the radio button.

    On the selection of this radio button user can change the status of "QC" for "STOCK".

    Initially, when he disabled status should be "QC".

    How to put this in my form guide me please.


    Maury

    Make a group of Radio (say RADIO_GROUP16) with 2 buttons radio (mean RADIO_BUTTON17 and RADIO_BUTTON18).

    Specify the initial value of Radio group to U
    Specify the value of Radio to R and U buttons

    and in the status field to write after outbreak.

    If: block. RADIO_GROUP16 = 'U' then
    message ("can not update status '");
    raise FORM_TRIGGER_FAILURE;
    end if;

    I guess that when you select the second radio button (with the 'R' value) then only you would be allowed to change the status.

    Please check the answer correct/useful if th answer was helpful

  • How to intercept the radio button was selected and its data?

    Good day everyone,

    Need help on this one. This is my first post about components, specifically radio button.

    Here goes my problem, I have several groups of option button. And I want to follow the radio button on each group chose, and I'm going to get the data and pass it to a function loadVariablesNum.

    Thank you

    Any help is appreciated.

    You did not answer to my second question.  Is the button in the same timeline as the mc of content?  And now that you mention the function of the buttons, where you use this code of mine you said gives 'undefined '?

    It will be to your advantage to create a new file to resolve this problem when you have just a few radio buttons and another normal button that uses this code blue.  Once you have that working, you should be able to adapt more easily in your scenario.

  • How to customize the 3 buttons on the front of the Portege R400?

    I wonder if it is possible to customize the function of the three buttons on the front of my R400?

    For the moment, they seem to do nothing. I would use both of them as PgUp and PgDn display documents in tablet mode.

    Using the program "Toshiba button Support" I am only able to set the knob to "e-mail" under the screen.
    Documentation, forum, knowledge base do not mention anything about the R400 and three buttons. At least not how we define their function.

    Is to customize their possible at all?

    Hello

    What buttons do you mean exactly?

    As far as I know there are 5 different buttons;

    -Switch
    -Cross-functional button
    -ESC/display rotation button
    -Windows Security button
    -Toshiba email button

    The user manual must provide details of the simple buttons.
    But as I m don't me wrong, the configuration button is not editable. It's fix.

    You're right about the utility of Toshiba button support. This utility controls the functionality of the mail button. It is a single button that can be configured and you could assign an application to the it.

    Concerning

  • C. suppliers - how to customize the layout of controls?

    Hello

    I'm unable to responsibility for the accounts payable Manager , and your help is greatly appreciated.

    My company has recently upgraded from Apps10g to R12.

    When my company has made a payment, we create a payment for an invoice,
    and after completing the payment then Oracle prints a bank check on our printer.

    For our old system, there was some report formatted everything nicely.
    and print printed our check perfectly.

    After the upgrade, our sense of control is blurred, because Oracle is trying to make a conversion from PDF.
    I was told to customize some XML to format this extracted printout of accounts payable.
    and that the report of old is gone.

    You have any ideas?

    Thank you

    Hello

    When you make the payment in R12 through payments Manager, check what is the name of 'profile of payment process '. Go to the accounts payable Manager > Setup > payment > payment administrator > profiles of payment process. Search for the profile of payment process and get the name of the Format of payment Instruction. Now, go to the accounts payable Manager > Setup > payment > payment administrator > Formats. Search for the Format of the Instruction of payment and get the name of the model. The search by navigating template up, Manager of accounts payable > Setup > payment > payment administrator > Format XML Publisher templates. Download the RTF file that is attached to the XML model. Make the necessary changes and load the model changed the RTF to the definition of the model. How to change the RTF template, see XML Publisher manuals.

    I hope my description helps!

    Kind regards
    Kiran

  • How to disable the radio button to the page

    Hi all
    We have a requirement to disable or hide a button on the standard page Noritifacation reassign in R12.
    The page is/oracle/apps/fnd/wf/worklist/webui/NotifReassignPG.
    When I went to 'Customize Page', I see a "messageComponentLayout", when I put the property "Rendering" to "false".
    He hides the complete available, but I want to just hide only a single radio button in this provision.
    Can someone please?

    Thank you
    Dilip

    Dilip salvation,

    When you click on the link of customization on the OPS page, you can click on full view to display all possible customizations
    This can be done.

    Expand the full view and see if you can find the option button that you want to hide.

    If you are not able to find it, then you can try using controller extension (extension of CO)

    Enter the bean of your controller class processRequest() radio button and hide.

    The extension of controller code-sharing:

    {
    OAMessageRadioButtonBean testButton = (OAMessageRadioButtonBean) webBean.findChildRecursive ("RadioBttn1"); RadioBttn1 is the ID of RadioButton
    testButton .setDisabled (true);

    }

    Kind regards
    Had

  • Customize the af:button CSS component. Update property

    I need to change the style for af:button when it takes the focus (tab key), but I couldn't do it.

    I create my custom skin that extends from skyros.v1.desktop.

    This is part of my css file:

    af|button:focus {
        color: #333333;
        border-top: 1px solid #E2CB9B;
        border-right: 1px solid #E2CB9B;
        border-bottom: 1px solid #D4BB87;
        border-left: 1px solid #E2CB9B;
    }
    
    
    @agent mozilla {
        af|button:focus {
            background-image: -moz-linear-gradient(top, #FFE4A8 0%, #FFD475 100%);
        }
    }
    
    
    @agent webkit {
        af|button:focus {
            background-image: -webkit-linear-gradient(top, #FFE4A8 0%, #FFD475 100%);
        }
    }
    
    
    @agent ie {
        af|button:focus {
            background-image: -ms-linear-gradient(top, #FFE4A8 0%, #FFD475 100%);
        }
    }
    

    The error is, button never takes ownership of focus when the user presses the tab key.

    I tested with the chrome browser and if I switch the theme of the ceremony for the div, it works.

    This is the html code generated for the af:button component.

    <div id="ptb1:r1:0:cb2" class="xg5 p_AFTextOnly" _afrgrp="0"><a href="#" onclick="this.focus();return false" class="xg7"><span class="xgf">Acceder</span></a></div>
    

    Development: jdeveloper 12 c (12.1.2.0).

    Property I need is the following: af | button: link: focus {}

    Finally, I can close this thread.

  • How to get the Radio button value after submit process

    I have a button called (P8_DELETED_RECORD) that has 2 choices (Yes and no) and would like to have my "anonymous PL/SQL block" after presenting the process run logic differenct depending on whether Yes or no is selected.

    How can I referecne the option button in the code, I tried several ways without having had no success.
    I tried:
    a. if: P8_DELETED_RECORD = "1" then
    b. if: P8_DELETED_RECORD_0 then
    b. if: P8_DELETED_RECORD_0 = 'Y' Then


    Using Apex 3.2.
    Thank you

    Hello

    Inside of your radio, what is your lov

    STATIC2:Yes; 1, none; 0

    in this more top of case, you can use the code below

    If: P8_DELETED_RECORD = 1 then
    ---
    end if

    When the value of your lov return changes in 'yes' or 'y' depending on whether you have to change the condition

    Thank you
    Loga

  • How to check if the radio button is selected?

    Hi, I know how to select the radio button, but the question is - how to check if this radio has been selected?

    to select the option button, I use:

    _root.rb_choice_1.selected = true;

    And I thought that checking its status should be similar, but it does not;

    {if (_root.rb_choice_1.Selected)}
    trace ("delivering choice 1");

    }

    and this does not work, too:

    if(_root.rb_choice_1.Selected == true) {}
    trace ("delivering choice 1");

    }

    What I am doing wrong?

    This will work.  Just change allowed to selected if you are using the correct property.

  • resize the radio button

    Hello

    How to resize the radio button face before image.i am using labview 8.6

    "" To create a resizable option button, right click on the option button control and selectreplace"classic"Boolean Classic'Round/Square option button. "" You can also place a Radio button Classic Round/Square directly on the front panel or in the box of radio buttons by right-clicking on the front panel to display the controls palette and selecting classic "Boolean Classic'Round/Square option button. This new radio button is now resizable.

  • Cluster (buttons and the radio channel controls) - select the right file

    I have a list of text files and I need to select and open an of based on radio button selection.  How to sync the radio button with control of the chain so that I can get the name of the control of the chain and open the right file name?

    The attached vi does not work as I would like.

    Edit: Or is there a better way?

    Depends on the source of the list of files.  If you embed it in LabVIEW via a table or another method, then obviously a recompilation must be made.

    If the list of files will come from a specific directory, then simply read the list of the files from there when starting of the VI (see example).

    Or you could store the list in the text file and read the file at the start of the VI.  You can edit the text at any time without recompilation.

  • How to customize the context menu in the legend of plotting the graph of wave?

    I am currently on the creation of a simulation of various control loops as educational objectives. Here, I have a chart in waveform to different signals. Now my question, how to customize the context menu in the track of the Waveform graph legend => when I click on 'image' behind the Plotnames one menu to open options where you can customize the color etc. or plotwidth. But students should not have access to these settings. How can I change or disable this menu? The context menu for the waveform graph, I've already customized by right click on table of waveform-Advanced online-online menu, but for the legend of conspiracy, I have not found this setting...

    Thanks for your answers... I tried different things, but I don't see a solution yet :-(

    See you soon

    DCP

    Hi, STC,

    There have been a number of suggestions for change or disable the table , right-click menu, but I see that this does not affect the context menu of legend , which is what you ask for help with.

    To prevent completely the menu right-click to work, you must disable the chart control entirely. You can do this by double-clicking on the chart and select Advanced Options > active state > disabled. This will prevent the operator to be able to generate a menu right click on the chart control.

    If however you still wanted the table, make a right click menu to work, but the legend made a right-click menu will be disabled, I see two options:

    1. draw a classic decoration square on the legend and the transparent color. This will prevent the mouse clicks to achieve the legend, and transparent it will not interfere with your user interface appearance.

    2 use a Structure of the event to capture the event filter Popup Menu of Activation?  for the chart control. You can then use the Coords property to determine if the mouse is over the legend or not. If this is the case, send faithful away? right Terminal. It will refuse the context menu when the user clicks on the legend of the plot.

  • Is it possible to customize the Firefox Button and if so, how?

    I love the whole upward with the Firefox button, but find I have to go into options and add the Tools menu bar (which I use often). I do not keep the menu bar showing that it takes too much space on the screen. Is it possible to add the functions of the menu bar for the Firefox button, and if not, may I suggest this as a future feature, as some of the functions of the menu bar are already on the Firefox button. As there is plenty of space may put all the options of the menu bar on the Firefox button and completely get rid of the menu bar!

    There is an add-on to customize the Firefox button. I have not installed/used the add-on. If you are adventurous, it's here:

    "I still have the idea of putting all the menus in the menu bar on the Firefox button for us users without keyboard shortcut." How about it Firefox? »

    We are all volunteers without compensation here to help other Firefox users. Elements of the Firefox key decisions were made by developers, and your question about it will probably not be heard by the developers to post in this forum. Maybe the add-on which above will solve the problem for you as long as the developer of the add-on retains support and update.

  • How to customize the ringtone in acer liquid z220?

    How to customize the ringtone in acer liquid z220?

    You must copy your ringtone (mp3 file is ok) in storage/internal or external storage/ringtones ringtones

    Then, go to settings / sound - phone ringtone

    your ringtone will appear and you can select

Maybe you are looking for