BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-07-2010, 09:45 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2009
Model: 8800
PIN: N/A
Carrier: NOT SURE
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 12:45 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
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-08-2010, 12:49 AM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2009
Model: 8800
PIN: N/A
Carrier: NOT SURE
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
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, 08:27 AM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: May 2009
Model: 8800
PIN: N/A
Carrier: NOT SURE
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Please help anybody..

Regards,
Baskar
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





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