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

2775 pcs. AT24C164-10SC 24C164 Serial EEPROM SOIC 1 Lot of 2775
$59.95
2775 pcs.  AT24C164-10SC   24C164  Serial EEPROM   SOIC   1 Lot of 2775 pictureUSED ALLEN-BRADLEY SLC 500 EEPROM MEMORY MODULE 1747-M13 SERIES A
$75.0
USED ALLEN-BRADLEY SLC 500 EEPROM MEMORY MODULE 1747-M13 SERIES A picture(1PCS) M24M01-RMN6TP IC EEPROM 1MBIT 400KHZ 8SOIC 24M01 M24M01
$2.85
(1PCS) M24M01-RMN6TP IC EEPROM 1MBIT 400KHZ 8SOIC 24M01 M24M01 picture(5PCS) M95128-WMN6TP IC EEPROM 128KBIT 5MHZ 8SOIC 95128 M95128
$8.9
(5PCS) M95128-WMN6TP IC EEPROM 128KBIT 5MHZ 8SOIC 95128 M95128 pictureLOT OF 50 PCS. SAMSUNG K8F1215EBM-SE1D IC,EEPROM,NOR FLASH,32MX16,CMOS,BGA
$219.0
LOT OF 50 PCS. SAMSUNG K8F1215EBM-SE1D IC,EEPROM,NOR FLASH,32MX16,CMOS,BGA  picture






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