BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-29-2008, 10:04 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default How To Add Multiple Fields On The Same Line

Please Login to Remove!

I want to have a RichTextField and a Bitmap side by side on the screen, how do I do this? The add(Field) command puts the fields below each other on the screen instead putting them on the same line.

Thank you

Last edited by jeromeng : 06-29-2008 at 10:45 AM.
Offline  
Old 06-29-2008, 10:14 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is a bit of the code, I want the bitmap and the text to be on the same line i.e. side by side.

Bitmap img = Bitmap.getBitmapResource("com/drawdemo/logo.png");
BitmapField bf = new BitmapField(img);
RichTextField _content = new RichTextField("Some text");
add(bf);
add(_content);

Last edited by jeromeng : 06-29-2008 at 11:14 AM.
Offline  
Old 06-29-2008, 09:39 PM   #3 (permalink)
New Member
 
Join Date: Jan 2008
Model: 8100
PIN: N/A
Carrier: Orange
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Use HorizontalFieldManager(long style)
HorizontalFieldManager hf = new HorizontalFieldManager(Manager.FIELD_*);//left, right, ...
hf.add(bf);
hf.add(_content);//add field to manager

add(hf);//add manager to screen
__________________
i-softwarelabs.com
Offline  
Old 06-30-2008, 07:50 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Jun 2008
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 26
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by soleil View Post
Use HorizontalFieldManager(long style)
HorizontalFieldManager hf = new HorizontalFieldManager(Manager.FIELD_*);//left, right, ...
hf.add(bf);
hf.add(_content);//add field to manager

add(hf);//add manager to screen
Thx soleil, the FieldManager did the trick.
Offline  




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