开发者论坛

 找回密码
 注册 (请使用非IE浏览器)
查看: 3162|回复: 0

[讨论] 测试代码高亮

[复制链接]

0

精华

174

贡献

401

赞扬

管理员

帖子
35
软币
2200
在线时间
343 小时
注册时间
2013-6-7
发表于 2014-4-14 10:50:44 | 显示全部楼层 |阅读模式
[C#] 纯文本查看 复制代码
            var pageInfo = FrameRibbon.CalcHitInfo(e.Location);
            if (pageInfo.Page == null || pageInfo.Page.PageIndex == 0)
            {
                ClearRPCButtonRect();
                return;
            }
            //获取当前PageHeader信息
            var headerInfo = pageInfo.Page.PageInfo.GetHeaderPageInfo();

            //关闭按钮的大小
            RPCButtonRect.Size = PageCloseButtonSize;
            //刷新关闭按钮的位置
            RPCButtonRect.X = headerInfo.Bounds.Right - PageCloseButtonSize.Width - 3;
            RPCButtonRect.Y = (headerInfo.Bounds.Bottom - PageCloseButtonSize.Height) / 2;

            //当鼠标移动至PageHeader时Refresh显示关闭按钮
            if (Core.BoundsContains(headerInfo.Bounds))
                FrameRibbon.Refresh();
            else
                ClearRPCButtonRect();

回复

使用道具 举报

Archiver|手机版|小黑屋|开发者网 ( 苏ICP备08004430号-2 )
版权所有:南京韵文教育信息咨询有限公司

GMT+8, 2024-5-3 22:59

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表