BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 09-24-2009, 02:52 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Aug 2009
Model: 9530
PIN: N/A
Carrier: o2
Posts: 35
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Storm scrollable HorizontalFieldManager help

Please Login to Remove!

Hi all,

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);
b5.setChangeListener(buttonListener2);
hm.add(b5);

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.

Regards

Brendan
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Measurement Computing PCI-DAS1602/16 Analog and Digital I/O Board PCI Card
$100.0
Measurement Computing PCI-DAS1602/16 Analog and Digital I/O Board PCI Card pictureMeasurement Computing PCI-DAS1602/16 Analog Digital I/O Board
$70.0
Measurement Computing PCI-DAS1602/16 Analog Digital I/O Board pictureAmprobe Computers & Accessories RS-1007 PRO CAT 1000A Analog Clamp Meter
$240.42
Amprobe Computers & Accessories RS-1007 PRO CAT 1000A Analog Clamp Meter pictureComputer Analog Instrument Number Readout German 24 Volt FS066 National Lab Lot
$85.0
Computer Analog Instrument Number Readout German 24 Volt FS066 National Lab Lot  pictureMeasurement Computing PCI-DDA08/16 8-channel 16-bit analog output 48 digital I/O
$500.0
Measurement Computing PCI-DDA08/16 8-channel 16-bit analog output 48 digital I/O picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.