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

IBM Selectric Typewriter Part Power Switch OEM 1175205 (Meter Tested GOOD)
$5.99
IBM Selectric Typewriter Part Power Switch OEM 1175205 (Meter Tested GOOD) pictureIBM Actionwriter Printwheels OEM New Lot of 9
$89.99
IBM Actionwriter Printwheels OEM New Lot of 9 pictureOEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 73Y0517 73Y0518
$64.99
OEM IBM SurePOS 700 4800-743/783 250W Power Supply DPS-250AB-45A 73Y0517 73Y0518 pictureIBM SELECTRIC TYPEWRITER PART (NEW IBM BRAND) MOTOR DRIVE BELT OEM #1124812
$16.49
IBM SELECTRIC TYPEWRITER PART (NEW IBM BRAND) MOTOR DRIVE BELT OEM #1124812 pictureNEW IBM SELECTRIC III TYPEWRITER PART, WHITE LEFT MARGIN POINTER OEM NOS
$9.99
NEW IBM SELECTRIC III TYPEWRITER PART, WHITE LEFT MARGIN POINTER OEM NOS  picture






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