在DW的header动态建立TEXT的问题
ls_return = this.modify( &
"create text(band=header alignment='0' text='6' border='6' color='16776960'" + &
" x='"+string(ll_newx)+"' y='0' height='" +string(ll_height)+ "' width='50'" + &
" name= " + ll_colname +"_filter_" + string(ll_col , '00') + &
" font.face='Webdings' font.height='-10'" + &
" font.weight='400' font.family='1' font.pitch='2'" + &
" font.charset='2' background.mode='1' background.color='12639424')")
我用上面的代码要在DW的header区每列的尾部建立个50宽的TEXT控件,可实际建立出来的TEXT覆盖整个列了
请各位大侠帮忙看看是啥原因!PB9.0的 DW是GRID风格的
"create text(band=header alignment='0' text='6' border='6' color='16776960'" + &
" x='"+string(ll_newx)+"' y='0' height='" +string(ll_height)+ "' width='50'" + &
" name= " + ll_colname +"_filter_" + string(ll_col , '00') + &
" font.face='Webdings' font.height='-10'" + &
" font.weight='400' font.family='1' font.pitch='2'" + &
" font.charset='2' background.mode='1' background.color='12639424')")
我用上面的代码要在DW的header区每列的尾部建立个50宽的TEXT控件,可实际建立出来的TEXT覆盖整个列了
请各位大侠帮忙看看是啥原因!PB9.0的 DW是GRID风格的
...全文
相关推荐
数据窗口中(freeform)中动态创建控件
下面是一个示例代码:```powerbuilderstring ls_createls_create = 'createText(band=header alignment="1" text="当前时间
PB数据窗体技巧.doc
**多栏表头**:实现Grid风格DataWindow的多栏表头,需要在Header带区添加Text对象,并设置其Band属性为Foreground。
PB实用经验汇总,2009年新的总结
**实现多栏表头**:在Header带区添加Text对象,设置Band属性为Foreground。然后通过Edit Source修改Text的X和Width属性,根据列的位置进行动态计算。7.
简单宠物网页设计作业 静态HTML动物介绍网页作业 DW宠物网站模板下载 大学生简单野生动物网页作品代码
此外,通过这些实践,学生还可以锻炼自己的创意能力和解决问题的能力,为未来的职业发展打下坚实的基础。
powerbuilder技巧,pb数据窗60技巧,pb教程,pb数据窗应用
**多栏表头**:在Header带区添加Text对象,设置Band属性为`Foreground`,然后通过编程修改Text的X和Width属性以实现多栏效果。8.


控件与界面
