BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-06-2010, 09:07 AM   #1 (permalink)
New Member
 
SergioTapia's Avatar
 
Join Date: Aug 2010
Model: 7100T
PIN: N/A
Carrier: asdfasdf
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Fields not floating to the right where I want them to be.

Please Login to Remove!

Code:
/** BEGIN TEXT INPUT AMOUNT **/
VerticalFieldManager hfm = new VerticalFieldManager(USE_ALL_WIDTH);
CustomTextField txtAmount = new CustomTextField(50, 20);
txtAmount.setText("0.00");

hfm.add(new RichTextField("Amount: ", FIELD_RIGHT));
hfm.add(txtAmount);			
txtAmount.setFocusListener(focusListener);
add(hfm);
chbExternalExpense = new CheckboxField("External Expense?", false,
		Field.FIELD_RIGHT);
add(chbExternalExpense);
/** END TEXT INPUT AMOUNT **/
Using the above code I would expect the RichTextField to float to the right but it doesn't. Granted the txtAmount doesn't have the style set yet, but the RichTextField SHOULD.

Here is a picture of how it looks:

imgur[DOT]com/6HUYG.png
Offline  




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