two radio buttons on the same line

Hello

I wanted to add two option buttons, which should appears on the same line, which is provided for in the other. How can ido that?

I try like this:

VerticalFieldManager vfmMain;
HorizontalFieldManager hfmRadio;

Household RadioButtonField, rSetup;

Household = new RadioButtonField ("View");
rSetup = new RadioButtonField ("Setup");

hfmRadio = new HorizontalFieldManager (HorizontalFieldManager.FIELD_HCENTER);

hfmRadio.add (household);
hfmRadio.add (rSetup);

vfmMain = new VerticalFieldManager(VerticalFieldManager.HORIZONTAL_SCROLLBAR |)
VerticalFieldManager.VERTICAL_SCROLLBAR);

vfmMain.add (hfmRadio);

but his he sent me some exception.

any idea?

Thanks in advance.

Hey guys find a solution very simple for this

VerticalFieldManager vfmMain;

HorizontalFieldManager hfmTemp;

vfmMain = new VerticalFieldManager();

hfmRadio = new HorizontalFieldManager();

RadioButtonGroup grp;

View RadioButtonField, Setup;

GRP = new RadioButtonGroup();

view = new RadioButtonField ('View', grp, true, RadioButtonField.FIELD_LEFT);

Setup = new RadioButtonField ("setup", grp, false, RadioButtonField.FIELD_RIGHT);

hfmRadio.add (view);

hfmRadio.add (setup);

vfmMain.add (hfmRadio);

try this if someone is loking for the option button

Tags: BlackBerry Developers

Similar Questions

  • Radio buttons on the same line

    Hi all

    Somebody kwons how to set the radio buttons on the same line? I use the Application Express 3.0.1.00.07.

    TKS,
    Eric

    Hello

    Edit your article.
    List box of values you have the attribute columns
    >
    Apply to checkboxes and radio groups. Sets the number of columns to use to display values defined in the list of values. By default, all values appear in a column.
    >
    http://download.Oracle.com/docs/CD/B32472_01/doc/AppDev.300/b32471/UI.htm#BABDGJFI

    Kind regards
    Jari

  • StackLayout - button on the same line

    Hello

    I have always a problem with button and stacklayout: I can't have different button on the same line.

    A simple code like:

    Page {
                Container {
    
                    layout: StackLayout {
                        orientation: orientation.LeftToRight
                    }
                    verticalAlignment: VerticalAlignment.Top
                    horizontalAlignment: HorizontalAlignment.Fill
    
                    Button {
                        id: button1
                        text: qsTr("button1")
                        layoutProperties: StackLayoutProperties {}
                        horizontalAlignment: HorizontalAlignment.Left
                        verticalAlignment: VerticalAlignment.Top
                        preferredWidth: 20
    
                    }
    
                    Button {
                        id: button2
                        text: qsTr("button2")
                        layoutProperties: StackLayoutProperties {}
                        horizontalAlignment: HorizontalAlignment.Center
                        verticalAlignment: VerticalAlignment.Top
                        preferredWidth: 20
                    }
    
                    Button {
                        id: button3
                        text: qsTr("button3")
                        layoutProperties: StackLayoutProperties {}
                        horizontalAlignment: HorizontalAlignment.Right
                        verticalAlignment: VerticalAlignment.Top
                        preferredWidth: 20
                }
            }
    }
    

    often I have my button to the location of horizontal line, but vertically, each button is on a different line...

    Is there someone who could tell me why?

    Thank you

    Container{
        layout: StackLayout{
        orientation: LayoutOrientation.LeftToRight
        horizontalAligment: HorizontalAligment.Fill
    
        Button{text: "One"}
        Button{text: "Two"}
        Button{text: "Three"}
    }
    

    She hope it helps

  • How to put the button on the same line

    I am having some problems with the buttons. I have the main screen with a verticalmanagerfield parent, who has two sons a richtextfield and an editfield (these two are the same on both of the gpsdemo)

    I want to put 3 buttons under the sons of two field and these 3 buttons that we're going to be son of verticalmanagerfield, but I can't put them on the same line

    I'll show you two pictures what I mean

    first image: I see now

    second image: what I want

                HorizontalFieldManager hfm = new HorizontalFieldManager()
                {
                    protected void sublayout(int width, int height)
                    {
                        Field field;
                        int numberOfFields = getFieldCount();
                        int x = 0;
                        int y = 0;
                        width=250;
                        height=50;
    
                        for (int i = 0;i < numberOfFields;i++)
                        {
                            field = getField(i); //get the field
                            setPositionChild(field,x,y); //set the position for the field
                            layoutChild(field, width, height); //lay out the field
                            x += 120;
                        }
                        setExtent(width, height);
                    }
                };
    
                 hfm.add(new ButtonField("Button 1"));
                 hfm.add(new ButtonField("Button 2"));
    
  • I tried for AN HOUR to find a way to put the two different fonts on the same line

    Pages is crap. I tried for AN HOUR to find a way to put the two fonts on the same line, even if I highlight 1 WORD, the whole line changes (if you know how to do that please tell me, I'll me CRAZY!). Wouldn't recommend, that Word is 100 x better and easier to use

    < published by host >

    Hi varn,.

    Seems to work here (Pages of screen capture):

    Select (highlight) the text you want to change. Click on the Format brush, and then click Style. Choose the font you want to use.

    The example above is in the text layer. I also tried in a text box and a table cell.

    I also tried to change the font for a single word of a line of text in Pages for iOS. The police has changed to the selected word, while the rest of the line remained in the police, he had previously.

    Cannot test it in 5 Pages, because I have not installed. The above example is Pages ' 09.

    It is possible that you have applied to a paragraph Style, what would change everything in the paragraph containing the insertion point.

    Kind regards

    Barry

    PS: MS Word is available for OS X, if you feel the need to switch.

    B

  • Two action buttons on the same blade

    Can anyone help?

    Captivate v4

    I want to create a slide that gives the user two options. ;

    Either click on a button to go to a slide, I called 'Part 1' and continue the project until the end. or click another button to go to a slide, I called "Part 2" so miss the slides before "part 2" in order to continue to the end.

    Whenever I try to do that, when I click on the button that should take me to the slide I called part 2, I always end up on the slide I have called "part 1".

    I don't know there must be an easy way to 'jump' to different slides in a project via clicking the buttons on the same slide, but cannt get by.

    Yours hopefully,.

    Noel

    England

    Christmas salvation

    It seems to me that you have a question buried in the substance of part 1, no slide? And if you do, I suspect more than you have set up your options quizzing such questions (or maybe even the question at hand) SHOULD continue before continuing. If this is the case, you will not be able to go beyond the question slide.

    See you soon... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Region HTML - element, TextBox and Button on the same line

    Hello

    I have a search page:
    POINT region HTML with a search box and a button (created in the section of button).


    How can I align the search box and the key? (on the same line)
    I see that the choice for the button to align at the top or on the button of the section. If the button is under or above the search box.

    Or maybye is possible to hide the searbox and button and create a table html for alignment?


    I work with Apex 3.1.2.00.02
    Region: HTML
    Theme: Dark blue:
    Model: region of report

    Thank you

    Roseline

    Roseline,

    Create a new button and select the Create button as an element and not in the position of the region.

    Option buttons behave differently to the buttons of the Position of the region.
    If you are wanting to use the button 'Submit' page, you need to change the button to target is a URL and add javascript:doSubmit('YOUR_REQUEST_VALUE');

    Gus...

    AWARDS: Don't forget to mark messages USEFUL or CORRECT on the forum, not only for my answers, but for everyone!
    ;-)

  • After you select list, and button on the same line

    Just a minor matter cosmetic a user has raised.

    I have a couple of selection lists that I have on the same line by setting the 'start on new line' on no. Is it possible to get a button to sit on the same line (i.e. within the same line of the table or cell as Select lists)?

    West Indies,

    When you create a button, the second page of the wizard is the option you're looking for: 'create a button displayed among the elements of this region. "

    Just keep in mind that these buttons don't submit by default where as area buttons can also redirect without submitting it.

    Kind regards
    Dan

    http://danielmcghan.us
    http://sourceforge.NET/projects/tapigen

  • How can we have a column with the text and radio button in the same row?

    Hello

    I have a column that need to have data with a radio button. Has been able to achieve this by using < trh:tableLayout >. But when I select the option button it moves to the next line. You want to stop this behavior of option button to move to the next line. This column also includes a hyperlink. If the text and the hyperlink are made invisible visible based on the action of the radio button.
    Adding one more doubt. A horizontalgrid of specific columns can make invisible?
    Any help would be appreciated.

    example code:
    < trh:cellFormat id = "cf8" halign = 'Start' >
    < af:activeOutputText value = "#{rank." Actions}"id ="aot2"/ >
    < af:goLink text = ' #{rank. " Actions}"id ="gl1 ".
    clientComponent = "true" visible = "false".
    targetFrame = "_blank" destination = "http:// + #{rank." BUTTON_URL} ">"
    < / af:goLink >
    < af:selectBooleanRadio text = "" id = "sbr1" > "
    < af:clientListener method = "selectCheckBox" type = "click on" / >
    < / af:selectBooleanRadio >
    < / trh:cellFormat >

    Thank you
    Nita

    Remove the components from . Put the other components like the direct children of the PanelGroupLayout:

    
      
        
        
        
        
          
        
      
    
    

    If you need to add some space between the components horizontan, you can put (s) between components.

    Dimitar

  • How to better master with this model s/n, sides IN and OUT in the same line.

    Hi all!
    I'm just facing some old historical table where, to the transaction recorded in the same line, something like:

    column name
    ==============
    ref_no,
    x_id,
    product_id,
    product_amt,
    -* IN part
    in_flag-(IN)
    in_customer,
    in_address,
    -* PORTION
    out_flag-(OUT)
    out_customer,
    out_address

    Nice shipping biz where we can have the two sides met in the same line, they have same value for IN and OUT_flag = actual values 'IN' and 'OUT', woou!
    I really expect to have this table in different model where a line is an entry, probably with PK = ref_no + in_out_flag.
    But it looks like I can do anything on this design, and now I choose upong xactions request entry and EXIT, IN/OUT fixing portions on a common part with the UNION. This, the only way I can see how to solve this problem, or I'm not right? And I need to pack all in the stored procedure.

    Appreciate your comments how to do this, I'm really new to Oracle, however have some exp.
    And comments about these models db as well! -).


    Best
    TR

    I don't understand what problem needs to be solved.

    What criteria an independent observer would conclude that a correct solution has been posted.

    Published by: sb92075 on September 11, 2010 17:19

  • Need to align the two radio buttons in one line

    Hi all

    In my BlackBerry Application, I have a part of the user interface where I need to align two radio buttons in one line.

    I used the code to design the user interface, but the two radio buttons below are overlapping.

    SerializableAttribute public class BBSettingsScreen extends form {}

    Rbg RadioButtonGroup = new RadioButtonGroup();

    RadioButtonLayout raButtonLayout = new RadioButtonLayout();

    raButtonLayout.add (new RadioButtonField ("ONE", rbg, true, RadioButtonField.FIELD_RIGHT));
    raButtonLayout.add (new RadioButtonField ("TWO", rbg, false, RadioButtonField.FIELD_LEFT));

    Add (raButtonLayout);

    SerializableAttribute public class RadioButtonLayout extends Manager {}

    public RadioButtonLayout() {}
    Super(Manager.VERTICAL_SCROLL |) Manager.RIGHTMOST);
    }

    protected void sublayout (int width, int height) {}
    Field field;
    get the total number of areas falling under this Manager of
    int numberOfFields = getFieldCount();
    int x = 0;
    int y = 0;
    for (int i = 0; i)< numberoffields;i++)="">
    field = getField (i); get the field
    setPositionChild(field,x,y); set the position of the field

    layoutChild (field, width, height); Spread the field
    x += 30;
    }

    width = 70;
    height = 20;

    setExtent (width, height);
    }

    }

    }

    Please help on this...

    Thank you & best regards

    Chintada Ravikumar

    Try this:

    RadioButtonGroup rgb=new RadioButtonGroup();
    HorizontalFieldManager hr1=new HorizontalFieldManager(FIELD_HCENTER);
    RadioButtonField radioOne=new RadioButtonField(" RadioOne",rgb,true)
    {
        protected void layout(int width, int height)
        {
            super.layout(75,30);//Width and height according to the button name;
            setExtent(75,30);//width and height according to the button name;
        }
    };
    hr1.add(radioOne);
    RadioButtonField radioTwo=new RadioButtonField(" RadioTwo",rgb,false)
    {
        protected void layout(int width, int height)
        {
            super.layout(75,30);//Width and height according to the button name;
            setExtent(75,30);//Width and height according to the button name;
        }
    };
    radioTwo.setPadding(0, 0, 0, 20);
    hr1.add(other);
    add(hr1);
    
  • two radio buttons on one line

    Hello

    I can't do radio two buttons appear on the same line.  I see only the first option button...

                RadioButtonGroup group = new RadioButtonGroup();            RadioButtonField radio1 = new RadioButtonField("one", group, true);            RadioButtonField radio2 = new RadioButtonField("two", group, false);            HorizontalFieldManager hfm = new HorizontalFieldManager();            hfm.add(radio1);            hfm.add(radio2);            add(hfm);
    

    I tried different settings of style on the option and Manager of the horizontal boxes.  I also tried extending RadioButtonField to explicitly set the field width.  So far no luck...

    I work with version 4.2.1.

    Any help would be appreciated.

    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.Manager;
    
    public class RadioButtonLayout extends Manager{
    
        public RadioButtonLayout() {
             super(Manager.VERTICAL_SCROLL | Manager.RIGHTMOST);
        }
    
        protected void sublayout(int width, int height) {
             Field field;
               //get total number of fields within this manager
               int numberOfFields = getFieldCount();
               int x = 0;
               int y = 0;
               for (int i = 0;i < numberOfFields;i++) {
                   field = getField(i); //get the field
                   setPositionChild(field,x,y); //set the position for the field
    
                   layoutChild(field, width, height); //lay out the field
                   x += 30;
               }
    
               width=70;
               height=20;
    
               setExtent(width, height);
        }
    
    }
    
    RadioButtonGroup rg = new RadioButtonGroup();
    
    RadioButtonLayout v = new RadioButtonLayout();
    
    v.add(new RadioButtonField("", rg, true, RadioButtonField.FIELD_RIGHT));
            v.add(new RadioButtonField("", rg, true,  RadioButtonField.FIELD_RIGHT));
    
    screen.add(v);
    
  • The orange Firefox button and the Navigation toolbar is on the same line

    Someone interfered with my Firefox settings and goofed a bit. Now the orange Firefox button and the Navigation toolbar are on the same line/line, as shown in the image below. Can you help me with the Firefox orange button at the top of the Navigation toolbar (as usually is the case)?

    http://PUU.sh/4NoO8.jpg

    Thank you very much! I had this same problem. I'd rather have my tabs at the top, in line with the orange. For some reason any that an add-on reset my 'browser.tabs.drawInTitlebar' to false, which looked horrible and wasted a whole bar of space by the presence of a large space empty on the top of my screen. It fixed my problem!

  • The orange button Firefox used to be on the same line as tabs, how to move the tool bar of tabs to be on the same line as before?

    I now have the Firefox button orange on its own line at the top of the page, but it used to be on the same line as the toolbar tabs which takes less space. I know what happened before I put right but cannot get back them now on a single line.

    Make sure that you have selected cover via Firefox > Options.

    You also have to maximize the window to have the tab bar and the Firefox button in the title bar.

    You can also set the pref browser.tabs.drawInTitlebar Boolean to true on the topic: config page.

  • Two RadioButton on the same line with any idea...

    Hello

    Can I add two RadioButton singel online...

    I m using HorizontalFieldManager with him

    but only the first button is visible... give me a solution simple and good for this please help me.

    Thank you

    Himanshu

    Beginner

    Please find the Code below and try it and let me know...

    radioButtonGroup = new RadioButtonGroup();
    
            radioButtonField = new RadioButtonField("Radio 1", radioButtonGroup,
                    true, 0) {
                protected void layout(int arg0, int arg1) {
                    setExtent(Display.getWidth() / 2, arg1);
                    super.layout(Display.getWidth() / 2, arg1);
                };
            };
            radioButtonField1 = new RadioButtonField("Radio 2", radioButtonGroup,
                    false, 0) {
    
                protected void layout(int arg0, int arg1) {
                    setExtent(Display.getWidth() / 2, arg1);
                    super.layout(Display.getWidth() / 2, arg1);
                };
    
            };
    
            HorizontalFieldManager hfmFieldManager = new HorizontalFieldManager() {
                protected void sublayout(int maxWidth, int maxHeight) {
                    setExtent(Display.getWidth(), maxHeight);
                    super.sublayout(Display.getWidth(), maxHeight);
                }
            };
    
            hfmFieldManager.add(radioButtonField);
            hfmFieldManager.add(radioButtonField1);
    
            add(hfmFieldManager);
    
            add(new LabelField("This label is below the two radio buttons",FOCUSABLE));
            add(new ButtonField("Click ME!"));
    

Maybe you are looking for