08-13-2008 04:53 AM
08-13-2008 05:22 AM
08-13-2008 09:36 PM
08-14-2008 03:15 AM
08-14-2008 03:22 AM
I think this article might help you:
How To - Define a rollover icon for an application
regards,
yosoh
08-15-2008 05:24 AM
08-15-2008 08:23 AM
I agree with Simon's comments, especially because if you do it yourself, you will understand what is going. Cut and Paste just leads to lots of code that you don't understand, and when it fails, you are stuck.
However the following code was posted by 'bsr' in the old forum. Say thanks to Jon. But it is not rocket science is it.....
this will use two images, one as a normal button image and a second for rollover when it comes into focus:
BitmapField myimageButton = new BitmapField(image, BitmapField.FOCUSABLE | BitmapField.FIELD_HCENTER){
public void onFocus(int direction){
setBitmap(imagerollover);
}
public void onUnfocus(){
setBitmap(image);
}
public boolean trackwheelClick(int status, int time){
System.out.println("myimageButton event");
return true;
}
};
08-15-2008 10:32 AM
08-15-2008 09:49 PM
Ok..thanks for all of you...i understand now.,maybe in onfocus condition i can place "set bitmap" twice or more..maybe...that's true or not???
O
08-18-2008 02:44 PM
Not sure what you mean by:
"set bitmap" twice or more
I would have thought in onFocus, you would put the image you wanted to appear when the button was in focus?
What are you trying to do?