Layout Manager Help
My application is derived from the MainScreen so I am using the vertical layout manager as the default manager which is fine except I want a row of buttons at the bottom of the screen. How can I do this? (ie. Add label field, seperator field, list field, etc. (all vertical) but then a row of buttons at the bottom of the screen).
|
Add a HorizontalFieldManager to the default VerticalFieldManager, then add your buttons to the HFM.
|
Thanks, is there a way to have it always aligned with the bottom of the screen, instead of just stacked under my other fields?
|
Instead of adding the HorizontalFieldManager to the MainScreen use MainScreen.setStatus(Field hrm).
|
Great, Is there a way to space the buttons evenly across the whole bottom?
|
You could either over ride the paint method of the buttons to make them the same size, or the paint method of the manager to space them evenly.
|
Alternatively, you can precalculate the space you need and use setPadding on the button field.
|
All times are GMT -5. The time now is 09:22 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.