BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-30-2007, 05:16 PM   #1 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2007
Model: 8100
PIN: N/A
Carrier: movistar
Posts: 51
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default grid layout

Please Login to Remove!

I need create a grid layout in a screen for display 4 data columns and "n" rows
sombody have a code example

thanks
Offline  
Old 07-31-2007, 12:43 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2007
Model: 8800
PIN: N/A
Carrier: CLDC
Posts: 29
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thumbs down Grid Layout

Hi,

U can use VerticalFieldManager and HorizontalFieldManager for making Grid on to the Screen.....

For each row...try this code


HorizontalFieldManager row1=new HorizontalFieldManager();

VerticalFieldManager col1_row1=new VerticalFieldManager();
VerticalFieldManager col2_row1=new VerticalFieldManager();
VerticalFieldManager col3_row1=new VerticalFieldManager();
VerticalFieldManager col4_row1=new VerticalFieldManager();

row1.add(col1_row1);
row1.add(col2_row1);
row1.add(col3_row1);
row1.add(col4_row1);

mainscreen.add(row1);

The above code creates one row with 4 columns on your Screen,if u want more rows then repeat the above code....
Offline  
Old 07-31-2007, 10:06 AM   #3 (permalink)
Thumbs Must Hurt
 
Join Date: Jun 2007
Model: 8100
PIN: N/A
Carrier: movistar
Posts: 51
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Fonts

thank,
Now, I need to font in my screen does small but iŽll see all columns
if you have a code example
thanks very much
Offline  




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