BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 10-17-2009, 02:36 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2006
Model: 8310
Carrier: AT&T (formerly Cingular)
Posts: 47
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default CheckBoxField question

Please Login to Remove!

I have a GUI with 16 checkboxes. When I add them to my form they all appear one after the other, underneath each other. For instance,
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16


To view them I have to scroll down. Is there a way to have them appear two by two? So it would look something like this?

1 2
3 4
5 6
7 8
9 10
11 12
13 14
15 16
Offline  
Old 10-17-2009, 02:50 PM   #2 (permalink)
New Member
 
Join Date: Apr 2009
Model: 8320
OS: 4.5.1
PIN: N/A
Carrier: ATT
Posts: 5
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can use a horizontal field manager for each of the rows so would look something like the following:

PHP Code:

HorizontalFieldManager hFM 
= new HorizontalFieldManager();
CheckBoxField q1 = new CheckBoxField();
CheckBoxField q2 = new CheckBoxField();
hFM.add(q1);
hFM.add(q2);

add(hFM);

HorizontalFieldManager hFM1 = new HorizontalFieldManager();
CheckBoxField q3 = new CheckBoxField();
CheckBoxField q4 = new CheckBoxField();
hFM1.add(q3);
hFM1.add(q4);

add(hFM1); 
The above is just a pseudo version with not all of the info in it but will show you how to do it.
Offline  
Old 10-17-2009, 02:55 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Nov 2006
Model: 8310
Carrier: AT&T (formerly Cingular)
Posts: 47
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ahh yes. That works perfectly.

Thank you.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Gamma RR15-20R/ZVS/VOL/DDPM High Voltage Power Supply
$900.0
Gamma RR15-20R/ZVS/VOL/DDPM High Voltage Power Supply pictureFluke 80K-15 Electronic Air Cleaner High Voltage Test Probe
$224.88
Fluke 80K-15 Electronic Air Cleaner High Voltage Test Probe pictureHEIDENHAIN 364914-02 VOLTAGE CONVERTER
$29.99
HEIDENHAIN 364914-02 VOLTAGE CONVERTER pictureEXTECH DL160 Dual Input True RMS AC Voltage/Current Datalog US Authorized Dealer
$299.99
EXTECH DL160 Dual Input True RMS AC Voltage/Current Datalog US Authorized Dealer pictureEXTECH 412300 Current & Voltage Calibrators/Meter US Authorized Distributor NEW
$233.99
EXTECH 412300 Current & Voltage  Calibrators/Meter US Authorized Distributor NEW picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.