BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-30-2007, 06: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, 01: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, 11: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  
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





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