社区
DataWindow
帖子详情
请高手:如何在datawindow中动态插入text控件?
dxai
2004-11-24 10:50:22
如何在程序的运行中动态插入text控件到datawindow中,就像在设计时insert-->contrl-->text进的效果.
...全文
86
6
打赏
收藏
请高手:如何在datawindow中动态插入text控件?
如何在程序的运行中动态插入text控件到datawindow中,就像在设计时insert-->contrl-->text进的效果.
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
WorldMobile
2004-11-24
打赏
举报
回复
呵呵,即可实现动态创建文本
WorldMobile
2004-11-24
打赏
举报
回复
string ls_create, ls_error
//船舶选择
ls_create += 'create text(band=detail alignment="2" text="测试信息" '
ls_create += 'border="2" color="33554432" '
ls_create += 'x="4" y="4" height="4" '
ls_create += 'width="4" '
ls_create += 'html.valueishtml="0" name=tsh_select visible="0" '
ls_create += 'font.face="宋体" font.height="-9" font.weight="400" font.family="2" '
ls_create += 'font.pitch="2" font.charset="0" background.mode="2" tag = ""'
ls_create += 'background.color="' + string(rgb(255, 0, 255)) + '") '
ls_error = dw_1.modify(ls_create)
WorldMobile
2004-11-24
打赏
举报
回复
visible是个0还是显示不出来,再改一下
string ls_create, ls_error
ls_create += 'create text(band=detail alignment="2" text="测试信息" '
ls_create += 'border="2" color="33554432" '
ls_create += 'x="4" y="4" height="2000" '
ls_create += 'width="3000" '
ls_create += 'html.valueishtml="0" name=tsh_select visible="1" '
ls_create += 'font.face="宋体" font.height="-9" font.weight="400" font.family="2" '
ls_create += 'font.pitch="2" font.charset="0" background.mode="2" tag = ""'
ls_create += 'background.color="' + string(rgb(255, 0, 255)) + '") '
ls_error = dw_1.modify(ls_create)
dw_1.insertrow(0)
WorldMobile
2004-11-24
打赏
举报
回复
你再试一下,不好意思,刚发现这个问题,如果不行,你找我,帮你搞定
WorldMobile
2004-11-24
打赏
举报
回复
不好意思,宽度和高度太小了,可能看不到效果,改一下
string ls_create, ls_error
//船舶选择
ls_create += 'create text(band=detail alignment="2" text="测试信息" '
ls_create += 'border="2" color="33554432" '
ls_create += 'x="4" y="4" height="2000" '
ls_create += 'width="3000" '
ls_create += 'html.valueishtml="0" name=tsh_select visible="0" '
ls_create += 'font.face="宋体" font.height="-9" font.weight="400" font.family="2" '
ls_create += 'font.pitch="2" font.charset="0" background.mode="2" tag = ""'
ls_create += 'background.color="' + string(rgb(255, 0, 255)) + '") '
ls_error = dw_1.modify(ls_create)
dxai
2004-11-24
打赏
举报
回复
哦...
PB调用barcodex
控件
打印条码案例源码
本案例主要关注的是如何在PB环境
中
利用第三方
控件
Barcodex进行条码打印。下面将详细介绍这个主题,以及相关的技术要点。 首先,让我们理解一下PowerBuilder的基本概念。PB是一种基于事件驱动的编程环境,它使用数据...
数据窗口
中
(freeform)
中
动态
创建
控件
通过以上介绍可以看出,在PowerBuilder的数据窗口
中
动态
创建
控件
是一项非常实用的功能。开发者可以根据具体需求灵活地调整界面布局,从而提高应用程序的用户体验。此外,还可以结合其他高级功能,比如事件处理、
动态
...
PB 11.5 数据窗口计算列显示图片的方法
最后,完成数据窗口设计后,将其绑定到
控件
(如
Text
Object或List Box)并在事件(如Paint事件)
中
调用数据窗口的Paint方法,这样图片就会在运行时显示在计算列
中
。 总之,在PowerBuilder 11.5
中
,通过使用计算列和...
pb 11 webfrom 文本编辑测试
在本测试
中
,我们关注的是WebForm
中
的RTF(Rich
Text
Format)
控件
,它允许用户进行大文本的编辑和格式化。RTF
控件
提供了一个富文本编辑环境,支持字体、颜色、样式和图像等多种格式,类似于常见的文字处理软件。 ...
DataWindow
611
社区成员
20,469
社区内容
发帖
与我相关
我的任务
DataWindow
PowerBuilder DataWindow
复制链接
扫一扫
分享
社区描述
PowerBuilder DataWindow
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章