BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-24-2008, 08:56 AM   #1 (permalink)
New Member
 
Join Date: Jun 2008
Model: 8800
Carrier: n/a
Posts: 14
Post Thanks: 0
Thanked 0 Times in 0 Posts
Question FlowFieldManager disappears when layout is set

Please Login to Remove!

I created a flow field manager similar to the one below...
Code:
ffm = new FlowFieldManager(FlowFieldManager.VERTICAL_SCROLL|FlowFieldManager.HORIZONTAL_SCROLLBAR|FlowFieldManager.HORIZONTAL_SCROLL){
                        protected void sublayout(int maxWidth, int maxHeight)
                        {
                            //mySum is equal to about 687ish
                            super.sublayout(mySum, maxHeight);
                            setExtent(mySum, maxHeight);
                        }
                    };
and everything is fine, except that there is a huge blank space after the field. So then I tried this...
Code:
ffm = new FlowFieldManager(FlowFieldManager.VERTICAL_SCROLL|FlowFieldManager.HORIZONTAL_SCROLLBAR|FlowFieldManager.HORIZONTAL_SCROLL){
                        protected void sublayout(int maxWidth, int maxHeight)
                        {
                            //mySum is equal to about 687ish
                            super.sublayout(mySum, 400);
                            setExtent(mySum, 400);
                        }
                    };
and the entire thing disappears. The field only needs to be 280 pixels high. I thought that making the height a larger number than necessary would fix any issues. I don't understand why the flow field manager only seems to work when the height is maxHeight.
Please help.
Offline  
Old 07-25-2008, 01:59 AM   #2 (permalink)
Talking BlackBerry Encyclopedia
 
Join Date: Apr 2008
Location: Germany, BW
Model: -
PIN: N/A
Carrier: -
Posts: 310
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you post the whole code for your screen to see what you mean? Some screenshots would help, too.

normally if you do not set the extent of the manager, it's size will be automatically adapted to the fields it contains (of course if not using USE_ALL_WIDTH, USE_ALL_HEIGHT)
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

Ram Adapter Die Holder
$250.0
Ram Adapter Die Holder  pictureSMI 256K RAM CARD FOR HP 48GX CALCULATOR
$149.0
SMI 256K RAM CARD FOR HP 48GX CALCULATOR pictureSIMPLEX RC121 - 12 Ton S/A Hollow Ram, Hookup is slightly bent out of 90 degrees
$399.99
SIMPLEX RC121 - 12 Ton S/A Hollow Ram, Hookup is slightly bent out of 90 degrees pictureRadisys TMI P5200HX SBC Pentium 200 MHz 16M RAM P54C Wolfhound
$29.99
Radisys TMI P5200HX SBC Pentium 200 MHz 16M RAM P54C Wolfhound picturePEAK 530F Motherboard with RAM, Processor, Fan, working pull, very clean
$100.0
PEAK 530F Motherboard with RAM, Processor, Fan, working pull, very clean picture






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