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  




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