RadioButtonField in horizontal line

Hello everyone

Is it possible to put 3 or 4 RadioButtonFields in horizontal line.

I tried adding them in HorizontalFieldManager, did not work.

Thank you

HorizontalFieldManager will not work in this case.

You must CustomLayout for this purpose.

Try with this handler:

public class RadioButtonLayout extends Manager
{
    public RadioButtonLayout()
    {
        super(Manager.VERTICAL_SCROLL | Manager.RIGHTMOST);
    }

    protected void sublayout(int width, int height)
    {
        Field field;
        int numberOfFields = getFieldCount();
        int x = 0;
        int y = 0;
        int maxHeight = 0;
        for (int i = 0;i < numberOfFields;i++) {
            field = getField(i);
            setPositionChild(field,x,y);
            layoutChild(field, field.getPreferredWidth(),
                              field.getPreferredHeight());
            x += field.getWidth() + 5;
            if (maxHeight < field.getHeight())
            {
                maxHeight = field.getHeight();
            }
        }
        width = x;
        height = maxHeight;
        setExtent(width, height);
    }
}

And screen

        RadioButtonGroup btnGroup = new RadioButtonGroup();
        RadioButtonLayout radioBtnLayout = new RadioButtonLayout();
        radioBtnLayout.add(new RadioButtonField("Btn1", btnGroup,
                            true, RadioButtonField.FIELD_RIGHT));
        radioBtnLayout.add(new RadioButtonField("Btn2", btnGroup,
                            true, RadioButtonField.FIELD_RIGHT));
        radioBtnLayout.add(new RadioButtonField("Btn3", btnGroup,
                            true, RadioButtonField.FIELD_RIGHT));
        this.add(radioBtnLayout);

Concerning

Bika

Tags: BlackBerry Developers

Similar Questions

  • 15 "MacBook Pro early 2011 screen and use failure, horizontal lines, edges off the coast of the center of the screen

    Hi there-

    recently worked when all of a sudden my screen turned to a variety of 'snow '. After about 2 seconds, he stopped, but the screen was seriously messed up. Horizontal lines apart a few millimeters, but the lines look as if they were moving a little. In addition, the edge of the screen is now near the Center, rather than on the edge of the physical screen. So, there is a black bar halfway in the screen which cut into 2.

    It froze the computer as well, if I pressed the power to restart. It loaded very well through the screen of apple, but as soon as he hit the login screen, he returned to no usable lines. Cannot get back in.

    Anyone that prior experience, or know what I can do to get out of trouble? Looks different from most other 'horizontal' issues I found in searching.

    Photo attached.

    Thanks and best,

    Curt

    See MacBook Pro 2011 for graphics problems repair Extension program.

  • My MBP boot with two horizontal lines at the start

    Hello

    I have a Macbook Pro (15 "mid 2015).

    2.5 GHz Intel Core i7

    OS X El Capitan

    (1) my MBP boot with two horizontal lines on a black screen after the apple logo.

    (2) sometimes the screen suddenly became all glitch on the dry mouse 5-7 (2 - 3 times a day) the cursor moves and CPU rises from 4% to 13%

    What I did, reset the SMC, check mac by TechTool 8 - is shows OK.

    Please help, what happens? Someone at - it experience of something similar?

    Thanks for any help,

    Ivan

    Try a reset of the NVRAM:

    https://support.Apple.com/en-us/HT204063

    Ciao.

  • Horizontal lines and more

    I have a Mac OS X 10.7.5 who suddenly developed a problem with horizontal lines covering the screen and a strong vertical line on the right side (see pix). Sound will always continue if a video is playing, mouse and Tracker will answer but not affect anything (not open, close or move anything). The only thing that solves the problem is to power down. When I turn on the rear, there is a party in question. This has, however, happened twice in the last week... a little concerning that I use my computer in my lectures. I looked at different positions, but none seem to match up with this type of horizontal issue. All the ideas that do not involve me go to the Apple Store? (pathetic bank account)

    If someone answers, please use simple as much as possible terms, as I am just an archaeologist. I enter data, download and upload pix and videos, get the computer skills needed... not one of extremely competent computer people.

    Yes, you will need it dumb down for me.

    Thank you.

    What year/model of Macbook. This happens no matter if you are using an external monitor when there lines? If so, it could be your graphics card.

  • Firefox installed on Windows 7 but the menu bar and icons is filled with small horizontal lines on the icons and the menu bar...

    I installed Firefox 21 on a new Windows 7 operating system. The menu bar and the toolbar at the top of the windows is full small horizontal lines. Sometimes, there are more lines and sometimes less. It makes the icons and menu items almost impossible to see. So far, is that the Firefox screen that made it. Other programs I have installed so far doesn't do this.

    Any ideas?

    Try disabling hardware acceleration in Firefox.

  • Screen flashing horizontal lines after replacing the RAM

    Hello world

    Today, I replaced the original 2 2 GB RAM each with 2 other 4 GB each (Kingston) for better performance.

    I have a Macbook Pro end 2011 15 ", IOS 9.3.1.

    I opened the computer it vacuum cleaner very carefully, with the lowest power and then I removed the two RAM.

    I'm not new, the machine worked perfectly for 20 minutes, then the screen went black (electricity was running in it, I could see some lights on the bottom), I did close it with the button, turn it on and horizontal lines appeared.

    I turn again and nothing has changed. I replaced the new memory with the 'old' and I still have horizontal lines that cross the monitor (white, grey, black).

    Any idea of what is happening and how to fix it?

    Thank you in advance!

    That could be the problem:

    http://www.Apple.com/support/MacBookPro-videoissues/

  • Satellite A200 shows weird coloured horizontal lines

    These multicolored horizontal lines with different lengths appear on my laptop.
    Soon they jump all over the place, and then the screen turns off. I get the blue screen saying something went wrong and restart my computer... I don't know what the heck is wrong... any suggestions?

    Thank you

    Are these lines shown all the time or when OS is loaded only?

  • Hello. I have windows xp. If you use Firefox as my homepage, I get interference terrible display of vertical and horizontal lines. When I switch to Internet Explorer I don't get them. I want to keep Firefox as a server.

    Hello. I have windows xp. If you use Firefox as my homepage, I get interference terrible display of vertical and horizontal lines. When I switch to Internet Explorer I don't get them. I want to keep Firefox as a server.

    Here is something you can try:

    1. Click on tools and then click Options.
    2. Select the Advanced tab
    3. Select the general tab
    4. Uncheck the use hardware acceleration if available.
    5. Click file and then click on exit.
    6. Launch Firefox normally.

    Once you have followed these steps, you'll want to follow these establishments and see if the lines are gone.

    Click the Help menu and select Restart with disabled modules.

    Let me know if this has eliminated the problem.

  • NB 550 d - 11 d - horizontal line in the middle of my screen

    I have a toshiba NB 550 d - 11 d a few weeks ago.
    It has been very slow since the beginning.

    Then, the fan has started to be marketed all the time and now I see a horizontal line in the middle of my screen.

    Is that what I can do before I apply for coverage?

    Thank you
    ISA

    Hello

    I fear that the problem is related to a hardware problem m.
    The internal display is affected or the graphics chip on the motherboard is faulty.
    In both cases the hardware must be replaced
    Therefore, you should get in touch with a partner service is available in your country for this problem
    I hope that your warranty is valid

    Good luck

  • Portege M800 - horizontal lines on external monitor

    I just bought a number of new M800 (model number - PPM81A-06L01J) and all have second screens connected.

    On all secondary monitors, there are wavy horizontal lines. Secondary monitors are all of different sizes and different brand and model. They are all also on their native resolution and refresh rate. I also got the latest video drivers installed. Any body have an idea as to why this is and how to fix it?

    See you soon

    Brad

    Hello!

    I n t have a Portege M800, but on my Portege M700 I had some problems with the external monitor connected too.
    Here's the story about this:

    I connected the new external monitor for Portege M700 directly with an old VGA cable. Usually it t wasn't a problem for me but I was not satisfied with the quality of the image on the external monitor (a bit blurry) so I started to update the display driver and the BIOS of my Portege M700 but without success.
    Anyway, I tried a bit with Google and here in the forum and I decided to buy a new high-quality VGA cable. I exchanged the cable and what happens? Perfect image quality!

    As you can see, you should always use high quality new cables. Also, make sure that you use the highest screen resolution of the external display (native screen resolution) and set the refresh rate of the screen at 60 Hz.

    Good bye

  • Strange horizontal lines on the 2nd monitor (TecS1 + ATI) multiscreen mode

    Hello

    I have a kind of a strange question when I'm working in mode multi-display with a Compaq 9500 19 "monitor as a second monitor attached. When resizing of content, a large number of strange horizontal lines, some short, some long, (in fact quite random) appear spread out on the full screen.

    It seems that the graphics card ATI Mobility Radeon graphics buffer is corrupted somehow, I can still work, but it's still annoying. I have to say that this problem seems to appear only on Windows Server 2003, not when I run the Tecra S1 under XP (installed as multiboot). So, it might be a driver ATI - OS incompatibility.

    Any help would be much appreciated.

    Thank you
    Mark

    Hi Mark

    In my opinion, you are absolutely right. It's probably the driver ATI - OS incompatibility. All drivers are adapted to work properly with the operating system supplied with the notebook. Windows Server 2003 is not supported by Toshiba and I think it will be the problem to solve this problem.

  • Horizontal lines at the top of the screen - Satellite A100

    Horizontal lines appear at the top of my A100 after use of the preview of the slide show or any photoshop program. It can be removed when the image of the desktop is changed.

    The laptop was bought in April this year. Geoff

    Hello

    Hmm, that's really not easy to explain simply. This occurs when you use Windows Picture Viewer?

  • 50L4353DB LCD TV - black horizontal line and picture blurry

    50L4353DB LCD TV - a horizontal black line picture travel and causing blur.

    This problem started tonight on our Toshiba TV, which is two years old next month.

    A black horizontal line on the screen and the image moves and down makes it really hard to read subtitles and so on.

    Connected all the cables out, tv by using the reset menu, still no good.

    Help appreciated.

    David

    just to update. The line is not really black. It is the a lighter shade that color is displayed on the screen. When I brought the menu upwards on the screen, he seems to appear at the edge but not otherwise visible. The online search could be the regulator of T.

  • Horizontal line to appear in the display of Toshiba 32BL502

    Hello

    I recently bought a Toshiba 32BL502 32 in Super Slim LED TV - purchased the 11th of this month.
    The first time, I unplugged my blu - ray player HDMI cable and connected to my laptop instead, it was absolutely perfect.

    The 2nd time, however. It caused a horizontal line to appear on the screen - and it is always there now. I tried to turn it turned off and unplugging everything - is there any which output is on.

    I informed E-buyer, the company I bought, and I think they should be able to replace or repair.
    But I would like to know how to avoid what is happening again!

    Is it as simple as just turn off until I unplug the blu - ray player HDMI cable to plug into the laptop? Thanks for your help!

    Hello

    In my opinion its just not lucky.
    There is no special procedure to connect a display to a blu - ray player or a laptop.
    The display can be ON or OFF which makes no difference.

  • Horizontal lines KDL - 32 L 4000

    32 "Bravia (model KDL - 32L 4000) shows a flaw of the horizontal line across the screen, about 1/3 down from the top of the LCD screen. After 15 minutes of on time the image below the line becomes nervous and not. Research on the defence of the interests of the consumer and technical forums suggests this is not an uncommon problem with this particular model, and the LCD screen is faulty and must be replaced. However, it seems to be part of 700 US dollars, which is twice the price of a new 32 '' LCD TV. We have owned two Sony tube TVs, the older one lasted more than 13 years, but the latest model of tube went after only three years (flyback meltdown). So, we are disappointed that this barfed LCD TV only after 30 months. It seems that Sony TV products become less reliable, until the brand doesn't mean anything any more. Sony has all the options for this TV? It would certainly go a long way toward restoring based on brand and convince us to buy Sony TV products in the future.

    I am VERY disappointed to see that the (the appearance of horizontal strips) problem with my TV is very common and apparently is more difficult than for the purchase of a new TV. Really, Sony? Most of our electronic devices are Sony and we were big believers until the death of our three year old TV. THREE YEARS? Terrible!

    I'll call customer tomorrow. It is simply unacceptable for an old TV three year throw the bucket...

Maybe you are looking for

  • songs skip when played

    all my songs are pop when played on iTunes 12.4.1.6 Songs, I bought and from the CD, it is not serious. At first, I thought it was my speaker, but youtube videos play fine without distortion. I was wondering what could be causing this.

  • Office Air iPad darkens but I can still hear Siri and other screens work.

    iPad 32GB I can't get the air desktop.  I can hear Siri, but the screen is black.  I can get other screens via Safari but I can't access or see my apps.

  • How to use matlab with labview?

    Hello I just want to use some functions of matlab as floor(), ones ()... in my labview code, who can tell me how to do? I want to only install MCR in my PC, so the node MATLAB script cannot work because she need matlab installed. Thank you

  • XP - cannot install KB976569

    During the installation of an update Ireceived this error Microsoft .NET Framework 2.0 Service Pack 2 update for Windows Server 2003 and Windows XP x 86 (KB976569). Can someone help me solve this probably. Thank you

  • DSC-TX10 charging cable

    I lost the cable that was included in the box charging the battery via the sector or usb adapter. What is the part number and how do I get a replacement?