Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
ahmednaserfinal
Posts: 43
Registered: ‎07-22-2012
My Device: curve
My Carrier: syudent

i want to add field on HorizontalFieldManager at right but always show in left

[ Edited ]

this the code 

HorizontalFieldManager hfmBanner = new HorizontalFieldManager(
		USE_ALL_WIDTH) {
		public int getPreferredWidth() {
		return Display.getWidth();
		}
	};
clearCart = new ButtonField("Clear", FIELD_RIGHT);
clearCart.setChangeListener(this);
hfmBanner.add(clearCart);
add(hfmBanner);

 field apeer at left why i want to put

please anybody help me

Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: i want to add field on HorizontalFieldManager at right but always show in left

why dont u try this ??

Field.FIELD_RIGHT when intializing horizontalfieldmanager instead of USE_ALL_WIDTH

Please use plain text.
Contributor
ahmednaserfinal
Posts: 43
Registered: ‎07-22-2012
My Device: curve
My Carrier: syudent

Re: i want to add field on HorizontalFieldManager at right but always show in left

h have another 2 fields that i want to show one at left and other at center how i do this ??
Please use plain text.
Developer
gopi_riar
Posts: 54
Registered: ‎10-05-2012
My Device: blackberry curve 9300
My Carrier: Vodafone

Re: i want to add field on HorizontalFieldManager at right but always show in left

i think u can use more than one horizontal field manager then ....

Please use plain text.
Contributor
ahmednaserfinal
Posts: 43
Registered: ‎07-22-2012
My Device: curve
My Carrier: syudent

Re: i want to add field on HorizontalFieldManager at right but always show in left

i tray to make horizontal field manager for each field and make style what i want but also doesn't work
Please use plain text.
Developer
arkadyz
Posts: 2,268
Registered: ‎07-08-2009
My Device: various
My Carrier: various

Re: i want to add field on HorizontalFieldManager at right but always show in left

HorizontalFieldManager does not honor horizontal alignment flags because it has its own horizontal placement algorithm. What exactly are you trying to achieve?

----------------------------------------------------------
please click 'Accept Solution' on posts that provide the solution to the question you've posted. Don't say "Thanks", press 'Like' button instead!
Please use plain text.