Foxtable(狐表)用户栏目专家坐堂 → 如何获取SplitPanel分区的宽度?


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

主题:如何获取SplitPanel分区的宽度?

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


加好友 发短信
等级:四尾狐 帖子:808 积分:6213 威望:0 精华:0 注册:2014/3/23 23:02:00
如何获取SplitPanel分区的宽度?  发帖心情 Post By:2016/12/3 18:58:00 [只看该作者]

分区面板有2个分区,如何获取第2个分区的宽度?
Dim p As WinForm.SplitPanel = Forms("动态测试").Controls("SplitContainer1").Panel2
Dim i As Integer 
i =  p.width
Output.show(i)

报错,求解,谢谢

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


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2016/12/4 16:03:00 [只看该作者]

Dim sp = Forms("动态测试").Controls("SplitContainer1")

msgbox(sp.SplitterDistance)

msgbox(sp.SplitterWidth)

msgbox(sp.width - sp.SplitterDistance - sp.SplitterWidth)


 回到顶部