更改画布中的图形项目
我用表格6。我想使用程序代码更改画布上的标签。它显示为图形项目。 (图形类型:文字) 是否可以?
目前我的回答是不可能。
I use Form 6 . I would like to change the label that is on a canvas using program code. It appears as graphics item. (Graphics type:text)
Is it possible?
At the moment, my answer is that not possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是对的,图形文本元素(我们称之为样板文本)无法在运行时修改。
要修改表单中样板的外观,您可以在控制块中创建一个文本项,将其值设置为要显示的标签,然后更改其显示属性,使其看起来像您想要的那样(例如,无斜角、透明、 ETC。)。然后您可以在运行时将其更改为您想要的任何标签。
请注意,如果用户(或您的代码)运行
CLEAR_FORM
(或者实际上,在您的控制块上运行CLEAR_BLOCK
),标签将会消失:所以您需要也可以设置初始值
。You're correct, a graphics text element (we call it boilerplate text) cannot be modified at runtime.
To modify the appearance of boilerplate in a Form, you can create a text item in a control block, set its value to the label you want to show, and change its display properties so it looks how you want (e.g. no bevel, transparent, etc.). Then you can change it at runtime to whatever label you want.
Just be careful, if the user (or your code) runs a
CLEAR_FORM
(or, indeed, aCLEAR_BLOCK
on your control block), the label will disappear: so you need to set theInitial Value
as well.