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  
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

(1PCS) 2N6405G THYRISTOR SCR 16A 800V TO220AB 2N6405
$2.01
(1PCS) 2N6405G THYRISTOR SCR 16A 800V TO220AB 2N6405 pictureQty2 Thyristor 600V 15A KT707 TESLA Igt - 40 mA max NOS
$3.14
Qty2  Thyristor   600V  15A    KT707  TESLA Igt - 40 mA max NOS picture10PCS TLP543J Encapsulation:DIP,gaas ired & photo-thyristor
$8.33
10PCS TLP543J  Encapsulation:DIP,gaas ired & photo-thyristor picture5PCS TLP543J Encapsulation:DIP,gaas ired & photo-thyristor
$5.0
5PCS TLP543J  Encapsulation:DIP,gaas ired & photo-thyristor picture1PCS TLP543J Encapsulation:DIP,gaas ired & photo-thyristor
$1.33
1PCS TLP543J  Encapsulation:DIP,gaas ired & photo-thyristor picture






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