Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Trusted Contributor
NGeldenhuys
Posts: 176
Registered: ‎04-12-2012
My Carrier: vodacom
Accepted Solution

Adding An Image to the bottom of the screen

Hi everyone,

 

I want to add an image to the bottom of my screen (Just one, that is focusable), I have come across "setStatus();", which works great on OS5 , but on OS 6 on the Blackberry 9780 the Image is added to the screen but is not Focusable. Is there any way to work around this, maybe another function that I can use? 

 

Thank you

Please use plain text.
Developer
JoVinz
Posts: 255
Registered: ‎05-03-2012
My Carrier: Vodafone

Re: Adding An Image to the bottom of the screen

I have used setstatus() to add images at the bottom of the screen in OS 6. Its working fine for me. are you doing anything different for different OS ?
Please use plain text.
Trusted Contributor
NGeldenhuys
Posts: 176
Registered: ‎04-12-2012
My Carrier: vodacom

Re: Adding An Image to the bottom of the screen

What Do you mean anythinf diffefrent? I will try and re- write a simple code sample maybe I made a mistake?

Please use plain text.
Developer
JoVinz
Posts: 255
Registered: ‎05-03-2012
My Carrier: Vodafone

Re: Adding An Image to the bottom of the screen

Can you paste your code here?
Please use plain text.
Trusted Contributor
NGeldenhuys
Posts: 176
Registered: ‎04-12-2012
My Carrier: vodacom

Re: Adding An Image to the bottom of the screen

AccountImage = new BitmapField(my_accountImage, Field.FOCUSABLE |Field.AXIS_VERTICAL){         
			public boolean navigationClick( int status, int time ){
				if(setFocusImage== false){
					AccountImage.setBitmap(my_accountImage);
				}else{
					AccountImage.setBitmap(my_accountImage_Focused);
				}
				UiApplication.getUiApplication().invokeLater(new Runnable() {                            
					  public void run() {
						 UiApplication.getUiApplication().pushScreen(new SCMyAccount());
						  //UiApplication.getUiApplication().popScreen(SCScreen.this);
					  }
				});
				setFocusImage= true;
				return true;
			}
			protected void onFocus(int direction){
				AccountImage.setBitmap(my_accountImage_Focused);
				setFocusImage= true;
			}
			protected void onUnfocus(){
				AccountImage.setBitmap(my_accountImage);
				setFocusImage= false;
			}
		};
		VerticalFieldManager hfm = new VerticalFieldManager();
	    hfm.add(AccountImage);
	    setStatus(hfm);

 Hi there, I fixed the code. But the image only has a Horizontal scrol due to the other code in my app

Please use plain text.