给freeform数据窗口列穿上彩色外套
来源:互联网 发布:pdf转电子杂志软件 编辑:程序博客网 时间:2024/04/27 16:00
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
pb中数据窗口列的边框风格只有简单几种,如果想要边框颜色是彩色的就没有办法了。
其实可以利用动态创建rectangle,更改数据窗口列的边框颜色,主要适用free格式(不需要穿外套的列tag值设为0)。
globaltypegf_setbordercolorfromfunction_objectendtype
forwardprototypesglobalsubroutinegf_setbordercolor(datawindowadw,longal_bodercolor)endprototypes
globalsubroutinegf_setbordercolor(datawindowadw,longal_bodercolor);//rectangle(band=detailx="599"y="260"height="88"width="288" name=r_1brush.hatch="7"brush.color="1627389951"pen.style="0"pen.width="5"pen.color="8421376" background.mode="1"background.color="553648127")IntegeriStringls_syntax
Fori=1ToInteger(adw.Object.DataWindow.Column.Count) Ifadw.Describe("#"+String(i)+".Visible")='1' and adw.Describe(ls_objects[i]+".tag")<>'0'Then ls_syntax+="createrectangle(band="+adw.Describe("#"+String(i)+".Band")+"" ls_syntax+='x="'+String(Integer(adw.Describe("#"+String(i)+".X"))-4)+'"' ls_syntax+='y="'+ String(Integer(adw.Describe("#"+String(i)+".Y"))-4)+'"' ls_syntax+='Height="'+ String(Integer(adw.Describe("#"+String(i)+".Height"))+8)+'"' ls_syntax+='Width="'+ String(Integer(adw.Describe("#"+String(i)+".Width"))+8)+'"' ls_syntax+='name=RBorder_'+adw.Describe("#"+String(i)+".Name") ls_syntax+='brush.hatch="7"brush.color="1627389951"pen.style="0"pen.width="5"pen.color="'+String(al_bodercolor)+'" background.mode="1"background.color="553648127")' EndIfNextadw.Modify(ls_syntax)
endsubroutine
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
pb中数据窗口列的边框风格只有简单几种,如果想要边框颜色是彩色的就没有办法了。
其实可以利用动态创建rectangle,更改数据窗口列的边框颜色,主要适用free格式(不需要穿外套的列tag值设为0)。
globaltypegf_setbordercolorfromfunction_objectendtype
forwardprototypesglobalsubroutinegf_setbordercolor(datawindowadw,longal_bodercolor)endprototypes
globalsubroutinegf_setbordercolor(datawindowadw,longal_bodercolor);//rectangle(band=detailx="599"y="260"height="88"width="288" name=r_1brush.hatch="7"brush.color="1627389951"pen.style="0"pen.width="5"pen.color="8421376" background.mode="1"background.color="553648127")IntegeriStringls_syntax
Fori=1ToInteger(adw.Object.DataWindow.Column.Count) Ifadw.Describe("#"+String(i)+".Visible")='1' and adw.Describe(ls_objects[i]+".tag")<>'0'Then ls_syntax+="createrectangle(band="+adw.Describe("#"+String(i)+".Band")+"" ls_syntax+='x="'+String(Integer(adw.Describe("#"+String(i)+".X"))-4)+'"' ls_syntax+='y="'+ String(Integer(adw.Describe("#"+String(i)+".Y"))-4)+'"' ls_syntax+='Height="'+ String(Integer(adw.Describe("#"+String(i)+".Height"))+8)+'"' ls_syntax+='Width="'+ String(Integer(adw.Describe("#"+String(i)+".Width"))+8)+'"' ls_syntax+='name=RBorder_'+adw.Describe("#"+String(i)+".Name") ls_syntax+='brush.hatch="7"brush.color="1627389951"pen.style="0"pen.width="5"pen.color="'+String(al_bodercolor)+'" background.mode="1"background.color="553648127")' EndIfNextadw.Modify(ls_syntax)
endsubroutine
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 728x15, 创建于 08-4-23MSDN */google_ad_slot = "3624277373";google_ad_width = 728;google_ad_height = 15;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
<script type="text/javascript"><!--google_ad_client = "pub-2947489232296736";/* 160x600, 创建于 08-4-23MSDN */google_ad_slot = "4367022601";google_ad_width = 160;google_ad_height = 600;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
- 给freeform数据窗口列穿上彩色外套
- 给freeform数据窗口列穿上彩色外套
- 让网页自动穿上外套
- 让网页自动穿上外套
- 让网页自动穿上外套
- 让网页自动穿上外套
- javascript技巧:让网页自动穿上外套
- javascript技巧:让网页自动穿上外套
- javascript技巧:让网页自动穿上外套
- 【每日学习】【数据可视化】给数据穿上美丽的外衣
- 让网页自动穿上外套 选择自 ggg82 的 Blog
- 表格已死,可视当立——给数据穿上美丽的外衣
- 给std map加上一件外套
- 给ubuntu换上Mac OSX外套
- 在FreeForm DW中用方向键控制上下左右切换列
- 数据窗口的计算列
- 数据窗口的计算列
- 给pe穿上漂亮的外衣
- 10种可能 任意一个成为现实即可灭掉互联网
- Asp.net结合Xml开发网络硬盘
- 动网论坛上传文件漏洞的原理以及攻击的代码实现
- 登录口令加密函数、用户登录主Form实现方法和具体代码
- 字符串的展开
- 给freeform数据窗口列穿上彩色外套
- 一个供查询用的datawindow
- SQLSERVER中快速获海量数据的记录总数
- 漫谈的启动和关闭
- Eval 绑定方法
- 基于、OLE及VBA技术的《计算机文化基础》集成考试系统
- 读书随想
- SQLSERVER数据仓库的构建与分析
- 使用sql的一些tip