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"));

Tags: BlackBerry Developers

Similar Questions

  • How to repeat the same line more than once in the report 10g

    How to repeat the same line more than once in the report 10g

    If I print the barcode more than once
    in the report;

    Published by: user11106555 on May 9, 2009 05:50

    OK, thought it was just a recording, then try:

    SELECT COL
      FROM TABLE,
           (SELECT 1
              FROM DUAL
             CONNECT BY ROWNUM
    
  • 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.

  • How to put the button submit as Checked

    Hello

    I need to adjust my login button submit as Checked. for the HTML input tag we have checked attribute, but in our jspx for command button how to put this button that checked.

    Someone can help me.

    you mean enter button don't call action?

    Move your af:form from the top of the jsf to your input fields all about; defaultCommand here is your id of the button.





  • 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 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

  • I'm creating a Web site and I want the objects to be on the same line, how would I do?

    I'm trying are we on the same line as the bar of navigation and put text in the empty box, can anyone help on how to do it please? I tried for days and nothing works...2016-04-04.png

    Assuming you have floated the container elements and you have the correct width to fit the main component/container, then you might want to take a look at Box Sizing | CSS-Tricks

    If this does not resolve your problem, please view the code.

  • 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

  • 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!
    ;-)

  • Need space between buttons displayed on the same line

    Hello - I have 3 buttons html:

    Cancel
    query
    create

    They must be displayed on the same line, in the regions of button. (They're in)
    the lower-left corner of the page; right now I'm on the région #CREATE #.)

    The position of cancel and the query is fine... but I need space (approximately that of a button
    Worth) between query and create. Can not know how to do this.

    Ideas?

    Thank you
    Carol

    Hi Carol,.

    It might be interesting to look at model in your region under the shared components > models > region change the model.
    You should see the place holders of section definition for your buttons etc. #CREATE # CANCEL #. I suggest that you make a copy of the model and then play with it maybe just add another tag td which is empty.

    IF you need help with it just post your definition here and I'll try and help you.

  • 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!

  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How can I leave toolbars 2 (or more) share the same line?

    I would like to have 2 or more toolbars that do not have an entire line share the same line (such as MS Word or Acrobat Reader).
    Is this possible?

    See this KB article - https://support.mozilla.org/en-US/kb/customize-firefox-controls-buttons-and-toolbars

    Experiment with these toolbars and see what is possible with these specific toolbars. Firefox has this capability, most of the time, but each developer toolbar must provide the coding of their add-on to enjoy what Mozilla has integrated into Firefox.

    My guess is that a well made toolbar add-on has three times the code that has a toolbar add-on minimum effort. Too many developers toolbar these days take the easy way and do not have their add-on to be "flexible".

  • 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

  • Hi, could you tell me how to put the app icon

    Hi, could you tell me how to put the app icon. By what your code?

    usually, set you the application icon in the properties of your application.

    You can also use the HomeScreen class to change the icon or set an icon of overview.

Maybe you are looking for

  • LastPass is offered by Firefox more? Is MaskMe the new suggestion? These two Add ons do the same? What is the best, or should I use both?

    When I generate a password in last Pass a window of MaskMe asking if I would like to generate a password. I was used to using the last past MaskMe was suggested by Firefox, so I added it. Is - this redundant? Is it better or should I continue to use

  • The price of new fashion

    How, exactly, they are supposed to work?  I read the tutorial for them several times, and yet when I downloaded a third avatar (that I had downloaded only two), the badge for this particular embodiment must still be color. Also, I found a lounge acce

  • Satellite Pro L20 - need to re - install

    Hiya, I have a client who owns many Toshiba laptops, but I have a problem with is the L20, which is the last Tosh they have. Anyway, the end user has a viral infections 4958 stggering on his machine and the machine was not happy. They have been sanit

  • photo on iMac

    I click on the photo icon, it takes a few hours but will not start. I can't leave same photo. What should I do now?

  • Units Windows media center has stopped working

    My media center was doing very well until about 2 weeks ago. Now every time I turn it on it says the program has encountered a problem and stopped working. What should I do?