How to put two buttons in Horizontal field manager in blackberry for any device?

I think creating your custom manager is best way to layout controls. But I think we can that.

I think creating your custom manager is best way to layout controls. But I think we can that VerticalFieldManager vfm = new VerticalFieldManager(USE_ALL_WIDTH); vfm. Add(new ButtonField("button2",Field.

FIELD_RIGHT)); HorizontalFieldManager hfm = new HorizontalFieldManager(); hfm. Add(new ButtonField("button1")); hfm. Add(vfm); add(hfm); Edit: if we are using HFM, it is the responsibility of HFM to align in horizontal.So HorizontalFieldManager hfm = new HorizontalFieldManager(FIELD_RIGHT); hfm.

Add(new ButtonField("button1")); above code will place button1 to right. But HorizontalFieldManager hfm = new HorizontalFieldManager(); hfm. Add(new ButtonField("button1",FIELD_RIGHT)); above code will not align button right.

So when you are using HFM you need to give horizontal align of field in manager and vertical alignment in field. When you are using VFM you need to give vertical alignment in manager and horizontal alignment in field.

I am writing the code like this: HorizontalFieldManager hfm1 = new HorizontalFieldManager(); m_btnDisagree = new ButtonField("I Disagree", FIELD_LEFT); hfm1. Add(m_btnDisagree); m_btnAgree = new ButtonField("I Agree", FIELD_RIGHT); m_btnAgree. SetMargin(0, 30, 0, 0); hfm1.

Add(m_btnAgree); hfm1. SetMargin(30, 0, 0, 30); m_vfmScreen. Add(hfm1); – Arindam Mukherjee Oct 21 at 6:32 @ArindamMukherjee so is it working I don't think it will work.

– Vivart Oct 21 at 6:36 its not working.. – Arindam Mukherjee Oct 21 at 6:39 using your code, it is working somehow. But I want some left margin and right margin for the two buttons. – Arindam Mukherjee Oct 21 at 6:46 yes it is working.. – Arindam Mukherjee Oct 21 at 7:00.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions