BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-07-2010, 08:45 AM   #1
baskar
Knows Where the Search Button Is
 
Join Date: May 2009
Model: 8800
PIN: N/A
Carrier: NOT SURE
Posts: 33
Default Verticalscrollbar in blackberry storm

Please Login to Remove!

Hi,

- I want scrollbar in VerticalFieldManager.
- I was given fixed height in VerticalFieldManager and then added many labelfield but no scrollbar appear and no touchevent for up and down, only show some text.
- Please help anybody.

Thanks,
Baskar
Offline  
Old 07-07-2010, 11:45 AM   #2
Dougsg38p
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Default

Assuming that you have created the manager with the correct SCROLL styles, then the issue is probably that your LabelFields are not focusable by default. Make the fields focusable and the scrollbar should appear.
Offline  
Old 07-07-2010, 11:49 PM   #3
baskar
Knows Where the Search Button Is
 
Join Date: May 2009
Model: 8800
PIN: N/A
Carrier: NOT SURE
Posts: 33
Default

Hi,

Thanks for reply.
I am using below code. only first two label only display. i don't know why others labelfield not showing. please check it out.

VerticalFieldManager vManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL|Manag er.VERTICAL_SCROLLBAR|VerticalFieldManager.VERTICA L_SCROLLBAR_MASK|VerticalFieldManager.VERTICAL_SCR OLL_MASK)
{
// Overriden to set the visible height for the vertical field manager.
protected void sublayout(int width, int height)
{
height = 60;
super.sublayout(width, height);
setExtent(width, height);
}
};

LabelField etfAssetClassTitle = new LabelField("Asset Class: ",LabelField.VALIGN_MASK|LabelField.FOCUSABLE) ;
vManager.add(etfAssetClassTitle);

LabelField etfAssetClassValue = new LabelField("Scroll bar test1 Scroll bar test2 Scroll bar test3 Scroll bar test4 Scroll bar test5 Scroll bar test6 Scroll bar test7 Scroll bar test8 Scroll bar test9 Scroll bar test10 Scroll bar test11 Scroll bar test12 Scroll bar test13",LabelField.VALIGN_MASK|LabelField.FOCUSABL E);
vManager.add(etfAssetClassValue);

LabelField etfAssetClassTitle2 = new LabelField("Asset Class2: ",LabelField.VALIGN_MASK|LabelField.FOCUSABLE) ;
vManager.add(etfAssetClassTitle2);

LabelField etfAssetClassValue2 = new LabelField("Scroll bar test1 Scroll bar test2 Scroll bar test3 Scroll bar test4 Scroll bar test5 Scroll bar test6 Scroll bar test7 Scroll bar test8 Scroll bar test9 Scroll bar test10 Scroll bar test11 Scroll bar test12 Scroll bar test13",LabelField.VALIGN_MASK|LabelField.FOCUSABL E);
vManager.add(etfAssetClassValue2);

LabelField etfAssetClassTitle3 = new LabelField("Asset Class3: ",LabelField.VALIGN_MASK|LabelField.FOCUSABLE) ;
vManager.add(etfAssetClassTitle3);

LabelField etfAssetClassValue3 = new LabelField("Scroll bar test1 Scroll bar test2 Scroll bar test3 Scroll bar test4 Scroll bar test5 Scroll bar test6 Scroll bar test7 Scroll bar test8 Scroll bar test9 Scroll bar test10 Scroll bar test11 Scroll bar test12 Scroll bar test13",LabelField.VALIGN_MASK|LabelField.FOCUSABL E);
vManager.add(etfAssetClassValue3);

LabelField etfAssetClassTitle4 = new LabelField("Asset Class4: ",LabelField.VALIGN_MASK|LabelField.FOCUSABLE) ;
vManager.add(etfAssetClassTitle4);

LabelField etfAssetClassValue4 = new LabelField("Scroll bar test1 Scroll bar test2 Scroll bar test3 Scroll bar test4 Scroll bar test5 Scroll bar test6 Scroll bar test7 Scroll bar test8 Scroll bar test9 Scroll bar test10 Scroll bar test11 Scroll bar test12 Scroll bar test13",LabelField.VALIGN_MASK|LabelField.FOCUSABL E);
vManager.add(etfAssetClassValue4);

add(vManager);
Offline  
Old 07-12-2010, 07:27 AM   #4
baskar
Knows Where the Search Button Is
 
Join Date: May 2009
Model: 8800
PIN: N/A
Carrier: NOT SURE
Posts: 33
Default

Please help anybody..

Regards,
Baskar
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


OEM  IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working picture

OEM IBM Type 5441 WheelWriter 3 1356658 1362400-02 Main Boards Tested Working

$49.99



IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259 picture

IBM Genuine OEM Printer Filler Wide Credit Card Holder 10N1259

$24.79



IBM WHEELWRITER TYPEWRITER TRANSPORT MOTOR Series II - OEM wheelwriter parts picture

IBM WHEELWRITER TYPEWRITER TRANSPORT MOTOR Series II - OEM wheelwriter parts

$28.00



IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM picture

IBM Correctable Ribbon Cassette Black 1299300 NOS Original OEM

$2.99



IBM Selectric Part OEM 1141763 13

IBM Selectric Part OEM 1141763 13" Velocity Cable

$13.45



OEM IBM 2210 2210-12E Switch 16MD DRAM picture

OEM IBM 2210 2210-12E Switch 16MD DRAM

$175.00







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