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);
|