首页 - 数据库 - SQL Server

给freeform数据窗口列穿上彩色外套

发布时间: 2007-04-19 05:04    作者: 未知    来源: 未知    浏览:    评论


    pb中数据窗口列的边框风格只有简单几种,如果想要边框颜色是彩色的就没有办法了。

   其实可以利用动态创建rectangle,更改数据窗口列的边框颜色,主要适用free格式(不需要穿外套的列tag值设为0)。

 global type gf_setbordercolor from function_objectend type

forward prototypesglobal subroutine gf_setbordercolor (datawindow adw, long al_bodercolor)end prototypes

global subroutine gf_setbordercolor (datawindow adw, long al_bodercolor);//rectangle(band=detail x="599" y="260" height="88" width="288"  name=r_1 brush.hatch="7" brush.color="1627389951" pen.style="0" pen.width="5" pen.color="8421376"  background.mode="1" background.color="553648127" )Integer iString ls_syntax

For i = 1 To Integer(adw.Object.DataWindow.Column.Count) If adw.Describe("#"+String(i)+".Visible") = '1'  and  adw.Describe(ls_objects[i]+".tag") <> '0' Then  ls_syntax += " create rectangle(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" )' End IfNextadw.Modify(ls_syntax)

end subroutine


TAG

Smile Big Smile Surprise Stick out tongue Wink Sad Tongue Tied Indifferent Crying Embarrassed Cool Angry Angel Devil [8-|] [:#] [:-*] [:^)] [<:o)] [|-)] Yes Beer Left Hug Music Star Time Snail Pizza Automobile Umbrella Computer Storm [mo] [8o|] [^o)] [+o(] [*-)] [8-)] Coffee No Drinks [Z] Right Hug Cake Broken Heart Gift Wilted Flower Movie Dog Idea Sleep Email Travel Paradise
呢称:

加粗 斜体 下划线 链接 图片 代码 邮件地址 引用 列表

最多只能输入100个字符

Tags

SQL 数据库 asp.net C# XML 控件 .NET教程 程序 事件 数据 安全 代码 Server 客户端 验证 数据库专栏 接口 文件 Oracle DataSet 函数 DataGrid 问题 .net return C#语言 JavaScript 服务 IIS 对象 语句 windows 继承 时间 web.config 设计 开发 参数 变量 解决 字符 ADO.net 环境 VB.Net语言 web 异常 工具 服务器 计算 实例 OLEDB Application VB Word WebService insert asp net 安装 记录

精华推荐

更多

精品下载

更多