11-01-2012 01:00 AM
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
Solved! Go to Solution.
11-01-2012 02:02 AM
11-01-2012 02:04 AM
What Do you mean anythinf diffefrent? I will try and re- write a simple code sample maybe I made a mistake?
11-01-2012 02:32 AM
11-01-2012 02:34 AM
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(SCScr een.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