Foxtable(狐表)用户栏目专家坐堂 → 鼠标移动到滚动表时,暂停滚动表,移开时又滚动


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

主题:鼠标移动到滚动表时,暂停滚动表,移开时又滚动

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110798 积分:563928 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2018/8/28 20:28:00 [显示全部帖子]

全局代码:
Public Sub C1FlexGrid1_MouseEnter(sender As Object, e As EventArgs)
vars("a")= False
End Sub

Public Sub C1FlexGrid1_MouseLeave(sender As Object, e As EventArgs)
vars("a")= True
End Sub

窗口afterload事件
Dim t As C1.Win.C1FlexGrid.C1FlexGrid = e.Form.Controls("Table1").Table.grid

AddHandler t.MouseEnter, AddressOf C1FlexGrid1_MouseEnter
AddHandler t.MouseLeave, AddressOf C1FlexGrid1_MouseLeave
vars("a") = True

窗口TimerTick
If vars("a") Then
    Dim t As Table = e.Form.Controls("Table1").Table
    If t.Position < t.Rows.Count - 1 Then
        t.Position += 1
    Else
        t.Position = 1
    End If
End If

 回到顶部