如何在黑莓风暴中滚动包含大量数据的标签字段

发布于 2024-10-06 23:26:42 字数 147 浏览 0 评论 0原文

我有一个包含一个标签字段的屏幕 其中包含大量数据,

我已将该标签放入垂直字段管理器中,但我仍然无法滚动。

可能是什么原因,

我搜索并尝试了很多方法但没有成功。

有人告诉我放置空字段 或使用许多标签等,但该怎么办???

i have a screen that contains one label field
which contains lots of data

i have placed that label filed inside the vertical field manager but still i cannot scroll.

what could be the possible reason

i searched and tried many ways but no success.

some told me to place null fileds
or use many labels etc but what to do???

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

尐籹人 2024-10-13 23:26:42

嘿,一旦我遇到同样的问题

,为什么不尝试使用编辑字段。
它将

使用

String str="lots of data..............................";
EditField edit = new EditField();
edit.setText(str);

“使其成为焦点”和“只读”自动滚动,并将其添加到具有 VERTICAL_SCROLL(以及可能的 VERTICAL_SCROLLBAR)的 VerticalFieldManager。 TextField 及其后代可以在字段内拥有焦点(光标)。这就是让用户滚动它的方式。

hey once i faced the same problem

why don't you try using Edit field.
It will scroll automatically

use

String str="lots of data..............................";
EditField edit = new EditField();
edit.setText(str);

Make it FOCUSABLE and READONLY and add it to a VerticalFieldManager with VERTICAL_SCROLL (and potentially VERTICAL_SCROLLBAR). TextField and its descendants can have the focus inside the field (the cursor). That is how you let the user scroll it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文