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

LOT OF C1013 Mitsubishi Power Transistors A
$6.0
LOT OF C1013  Mitsubishi Power Transistors A pictureRCA SK3867A 177789 PNP TRANSISTOR TO92M REPL ECG32, NTE32
$2.99
RCA SK3867A 177789 PNP TRANSISTOR TO92M REPL ECG32, NTE32 pictureRCA SK9435 NPN TRANSISTOR TO202N REPL ECG190, NTE190
$2.99
RCA SK9435 NPN TRANSISTOR TO202N REPL ECG190, NTE190 pictureRCA SK3083 PNP TRANSISTOR TO220 REPL ECG197, NTE197
$2.99
RCA SK3083 PNP TRANSISTOR TO220 REPL ECG197, NTE197 pictureRCA SK3114A PNP TRANSISTOR TO92 REPL ECG290A, NTE290A
$1.99
RCA SK3114A PNP TRANSISTOR TO92 REPL ECG290A, NTE290A picture






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