08-02-2010 07:11 PM
First off, I would like to apologise in advance if there is already a resolution for this issue, I've been searching google on and off for a few days while working on other parts of my application but have been unable to find any advice.
I'm not new to programming, but am fairly new to java and very new to programming the BlackBerry hence I've been working on something relatively simple so I can get used to the UI programming. One issue I have been unable to resolve is how to place an EditField and a ButtonField on the same line with the ButtonField sitting up against the right hand marging and the EditField taking up the space from the left hand margin to the start of the ButtonField. Graphically, this is what I'm trying to achieve:
I've tried placing the two fields inside the same HorizontalFieldManager as well as placing each field within it's own Vertical or HorizontalFieldManager. I've also tried using the FIELD_LEFT / FIELD_RIGHT styles but cannot find a way of stopping the EditField from pushing the ButtonField off of the screen and using the whole line width for itself.
I'm beginning to suspect that I need to learn how to code a custom field manager, is this the case or is there something much simpler that I'm missing?
Thanks in advance,
Solved! Go to Solution.
08-02-2010 07:44 PM
The following Threads should explain what is going on here and give you sample code that will help you overcome the problem: