09-24-2009, 03:52 PM
Knows Where the Search Button Is
Join Date: Aug 2009
Post Thanks: 0
Thanked 0 Times in 0 Posts
| | Storm scrollable HorizontalFieldManager help
Please Login to Remove!
I have been trying to resolve an issue with my app and i'm starting to think this time it may not be my code!
I have instantiated
hm = new HorizontalFieldManager(Manager.HORIZONTAL_SCROLL);
then i add 8 buttons like
Bitmap bitmap5 = Bitmap.getBitmapResource("settings.bmp");
Field b5= new MyButton("Settings", bitmap5);
so i end up with a nice horizontal scrollable option bar full of image buttons.
My problem is that i am getting a illegalstacksizeexception - unpaired graphics.pop(paint) and it is causing my display to distort.
I have studied my scrolls and found the exception throws when i scroll a button all the way off the screen. if i let go of the button before it gets to either left end or right end of screen it doesn't throw an exception.
The effect of this option bar is pretty easy on the eye so if anyone can help me rescue it i would be grateful.