我有一个名为user_notes的数据库列。该列的长度为4000个字符。此列具有多行记录。 现在,我要在进度表中显示此列值。我已经尝试了参考网址Progress display long field (frame/form)中提到的方法 但是没有为该字段启用滚动条。任何人都可以建议如何为长文本项字段启用垂直滚动条。
答案 0 :(得分:4)
使用编辑器小部件。它会自动换行并具有垂直滚动条。
DEFINE VARIABLE Editor-1 AS CHARACTER
VIEW-AS EDITOR SCROLLBAR-VERTICAL
SIZE 34 BY 8 NO-UNDO.
Editor-1 = "Test text".
DEFINE VARIABLE wWindow AS WIDGET-HANDLE NO-UNDO.
DEFINE FRAME fFrame
Editor-1 AT ROW 2 COL 4 NO-LABEL
WITH 1 DOWN NO-BOX KEEP-TAB-ORDER OVERLAY
SIDE-LABELS NO-UNDERLINE THREE-D
AT COL 1 ROW 1
SIZE 40 BY 10.
CREATE WINDOW wWindow ASSIGN
HEIGHT = 10
WIDTH = 40
SENSITIVE = yes
HIDDEN = no.
DISPLAY Editor-1 WITH FRAME fFrame IN WINDOW wWindow.
ENABLE Editor-1 WITH FRAME fFrame IN WINDOW wWindow.
VIEW wWindow.
WAIT-FOR CLOSE OF THIS-PROCEDURE.
答案 1 :(得分:0)
添加“只读”选项以禁止输入数据。