进度显示长场(框架/形式)

时间:2012-12-22 02:31:56

标签: progress-4gl openedge

如何在屏幕上显示长字段。

每个托管:     显示备注。 端。

备注字段有300个字符要显示。 display语句显示该字段太长而无法显示的错误。

我已经尝试过表单和框架定义。使用width-option,这不起作用。 现在我尝试使用尺寸300乘2但是它显示了80个字符和滚动条以查看其余部分。

如何在不滚动的情况下完全在屏幕上显示字段?

TKX

2 个答案:

答案 0 :(得分:4)

我假设“备注”字段是自由格式文本,并且自动换行即可。

define variable remarks as character no-undo.

remarks = "This is a lot of text.  Hopefully enough to prove the point. I don't really have much to say but I am kind of curious
why all the down votes?  It seems like a reasonable enough question to ask.".

display remarks view-as editor inner-chars 60 inner-lines 10.

答案 1 :(得分:3)

   Display Remarks view-as editor size 78 by 15.

其中78是宽度,15是行数。

如果您只想显示而无法更新:

def var remarks as char.

form remarks view-as editor size 10 by 10
with frame f.

remarks:read-only in frame f = true.

update remarks
       with frame f.