Foxtable(狐表)用户栏目专家坐堂 → 自定义样式


  共有2488人关注过本帖树形打印复制链接

主题:自定义样式

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109489 积分:557107 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/30 9:09:00 [显示全部帖子]

dim tns() as string = {"table1","table2"}
for each tn as string in tns
Dim t As Table = e.form.controls(tn).Table
If t.Grid.Styles.Normal.Border.Color <> Color.DarkOrange  Then
    t.Grid.Styles.Normal.Border.Color = Color.Black
    t.DataTable.SysStyles("CurrentRow").BackColor = color.GreenYellow
    t.ListMode = True
End If
next

函数
dim tn as string = args(0)
Dim t As Table = e.form.controls(tn).Table
If t.Grid.Styles.Normal.Border.Color <> Color.DarkOrange  Then
    t.Grid.Styles.Normal.Border.Color = Color.Black
    t.DataTable.SysStyles("CurrentRow").BackColor = color.GreenYellow
    t.ListMode = True
End If

调用
dim tns() as string = {"table1","table2"}
for each tn as string in tns
    Functions.Execute("ys",tn)
next

 回到顶部
帅哥哟,离线,有人找我吗?
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:109489 积分:557107 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/7/30 11:34:00 [显示全部帖子]

函数
dim tn as string = args(0)
dim e = args(1)
Dim t As Table = e.form.controls(tn).Table
If t.Grid.Styles.Normal.Border.Color <> Color.DarkOrange  Then
    t.Grid.Styles.Normal.Border.Color = Color.Black
    t.DataTable.SysStyles("CurrentRow").BackColor = color.GreenYellow
    t.ListMode = True
End If

调用
dim tns() as string = {"table1","table2"}
for each tn as string in tns
    Functions.Execute("ys",tn,e)
next

 回到顶部