BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/)
-   Developer Forum (http://www.blackberryforums.com/developer-forum/)
-   -   HorizontalFieldManager always on bottom of screen (http://www.blackberryforums.com/developer-forum/76172-horizontalfieldmanager-always-bottom-screen.html)

hibbert 05-11-2007 04:32 AM

HorizontalFieldManager always on bottom of screen
 
hi,
i habe a ListField on my screen.
Now I want to have a HorizontalFieldManager on the bottom of the screen.
But if there are enough items in the ListField the user has to scroll to view the rest of the Items. But I want that the HorizontalFieldManager is visible to the User all the time, like the Titlebar.

2 Items:
####Titlebar####
Item 1
Item 2
<nothing>
<nothing>
<nothing>
### HFM ###

8 Items:
####Titlebar####
Item 1
Item 2
Item 3
Item 4
Item 5
### HFM ###

I hope you know what i mean ;)

jfisher 05-11-2007 05:28 AM

setStatus(myField);

hibbert 05-11-2007 06:47 AM

Quote:

Originally Posted by jfisher (Post 533866)
setStatus(myField);

yeah ok, looks like that what i want to have 8-)

Now one little thing more:
I paint an Image in that status(bar). Now I want to update the Graphic. it looks like this:
Code:

  private Bitmap surface; //= new Bitmap(200,15);
    private BitmapField surfaceField; //= new BitmapField(surface);
    private Graphics g; //= new Graphics(surface);
/*...*/
drawStatus();
setStatus(surfaceField);
/*...*/
public void drawStatus() {
    int batFull = DeviceInfo.getBatteryLevel();
    g.clear();
    g.drawBitmap(0,0,12,12,Bitmap.getBitmapResource("batterie.png"),0,0);
    g.drawRect(15,0,102,14);
    g.fillRect(16,1,batFull,12); 
    g.drawText(batFull+" %",120,0);
    System.out.println("Status updated "+batFull);
}
/*...*/
//let's update the status...
drawStatus()

I can read the right value in the debugger, but on the Display nothing happens... so can you help me once again?

thanks hibbert


All times are GMT -5. The time now is 03:12 AM.

Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.