08-14-2012 09:27 AM
super(MainScreen.VERTICAL_SCROLL | MainScreen.VERTICAL_SCROLLBAR|MainScreen.HORIZONTA
LabelField lbl = new LabelField(s,LabelField.USE_ALL_WIDTH|LabelField.F
protected void paint(Graphics graphics)
08-14-2012 09:57 AM
I suspect you see a gray area at the top of the screen indicating the LabelField. The question is, where does the text display?.
You have told this MainScreen that it can scroll horizontally, so it will give you a very wide screen. I don't think that is what you wanted to do. I think you wanted the LabelField to be added at the top, and the Fields underneath that to scroll sideways. In which case you need to remove the horizontal scrolling from the MainScreen, add the LabelField to act as a 'header' to the MainScreen, and then add a Manager that will scroll Horizontally. Add the Fields you want to scroll Horizontally to that scrolling Manager.
Does that make sense?
If that is not the effect you want to achieve, please describe what you want again.
08-16-2012 01:08 AM
08-16-2012 02:59 AM
08-16-2012 03:05 AM - edited 08-16-2012 03:09 AM
I have something like this on screen.
Headers should have backgroundcolor and it should be at center of the screen.
08-16-2012 07:04 AM
In that case you can use a solution like the suggestion I posted earlier.
You would have a normal MainScreen, with no horizontal scrolling. Add a full width LabelField as we have discussed already, then add a horizontally scrolling Manager. This Manager is your top section that can scroll horizontally. Then add another full with LabelField and another horizontally scrolling Manager for your bottom section.
Populate the two scrolling managers as you like.