如何设置滚动条到VerticalFieldManager在黑莓? [英] How to set a ScrollBar to the VerticalFieldManager in Blackberry?

查看:105
本文介绍了如何设置滚动条到VerticalFieldManager在黑莓?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用这code设置在黑莓的滚动条到VerticalFieldManager

  VerticalFieldManager TEMP2 =新VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL);
   结果的LabelField =新的LabelField(结果\\ N结果\\ N结果\\ N结果\\ N结果\\ n);
   temp2.​​add(结果);

将labelField,并将该内容由VerticalFieldManager显示的是没有得到scrolled.Is我的code是正确的?。如果任何人有任何想法来处理这​​个问题,请帮助我。


解决方案

  1.将VerticalFieldManager风格VERTICAL_SCROLL | VERTICAL_SCROLLBAR
 2.后的LabelField添加一个新的NullField(Field.FOCUSABLE)

I am using this code to set the scrollBar to the VerticalFieldManager in Blackberry

   VerticalFieldManager temp2=new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL);
   LabelField result=new LabelField("Result \n Result\n Result\n Result \n Result\n");   
   temp2.add(result);

The labelField is added and the contents are displayed by the VerticalFieldManager is not getting scrolled.Is my code is correct?.If anyone have any idea to handle this please help me.

解决方案

 1. Set VerticalFieldManager style to VERTICAL_SCROLL|VERTICAL_SCROLLBAR    
 2. Add a new NullField(Field.FOCUSABLE) after LabelField

这篇关于如何设置滚动条到VerticalFieldManager在黑莓?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆