BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   Display the Icon on the Title Bar portion of the List and all the Screens.(J2ME) (http://www.blackberryforums.com/showthread.php?t=143508)

abhsax1978@hotmail.com 08-04-2008 06:04 AM

Display the Icon on the Title Bar portion of the List and all the Screens.(J2ME)
 
I want to display the Icon on the Title Bar portion of the List and all the Screens.
Problem is that I am not using the Native BlackBerry UiApplication.
I want to do it in J2ME, and when I specify the Icon in the JAD, traditionally, in all the devices other than BlackBerry, the Application Icon is displayed in all the screens.
Thanks in advance.

arunk 08-14-2008 01:43 AM

is it possible to show an icon on the titlebar of mainscreen?

I want to show the mute icon there...

nyte3k 08-19-2008 09:56 AM

Quote:

Originally Posted by arunk (Post 1059207)
is it possible to show an icon on the titlebar of mainscreen?

I want to show the mute icon there...

This should be possible since setTitle() takes in a Field parameter.

You could insert say... a horizontal field manager and position an icon (bitmapfield) and text (labelfield) within it. And insert that fieldmanager into the title.

abhsax1978@hotmail.com 08-28-2008 11:46 PM

In the MIDlet can you insert ICON in the title bar
 
In BlackBerry it is fine but I have the MIDlet and not BBApp.
I have never tried to implement a ObjectListField API of BBApp in the List or Form of MIDlet.
Code:

Bitmap bmp=Bitmap.getBitmapSource(bmpPath);
LabelField label=new LabelField(title, LabelField.FIELD_LEFT);
label.setImage(bmp);
ObjectListField list.setTitle(label);

I have to re-write the code entirely into BBApp if I can't find a way to
insert the bmp in the same way.
Regards

abhsax1978@hotmail.com 11-18-2008 06:47 AM

You can use paint :
PHP Code:

 protected void paint(Graphics g) {
        
super.paint(g);
        
invalidate();
        
int width bmp.getWidth();
        
g.drawBitmap(getContentLeft(), getContentTop(), widthbmp.getHeight(), bmp00);
    } 



All times are GMT -5. The time now is 07:58 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.