|
| |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
最近做一个用r.a.d.controls Q2 2005做一个小东西,在使用TreeView控件的时候,假如弹出右键菜单的时候,碰到旁边有框架,那么就会产生遮挡现象。如下图: function VerifyPosition(oLayer)![]() ![]() var nWidth = oLayer.offsetWidth; var nHeight = oLayer.offsetHeight;![]() if (oLayer.style.pixelLeft + nWidth > document.body.clientWidth)![]() -= nWidth;![]() if ( oLayer.style.pixelLeft < document.body.scrollLeft) = document.body.clientWidth + document.body.scrollLeft - nWidth - 5;![]() ![]() if (oLayer.style.pixelTop + nHeight > document.body.clientHeight)![]() -= nHeight;![]() if ( oLayer.style.pixelTop < document.body.scrollTop) = document.body.clientHeight + document.body.scrollTop - nHeight - 5;![]() ![]() ![]()
返回类别: 教程 上一教程: COM和.NET的互操作 下一教程: 使用反射实现根据名称动态创建窗体的几种方式 您可以阅读与"r.a.d.controls Q2 2005中TreeView 控件遮挡问题"相关的教程: · Repeater控件的分页问题 · 我在使用C#中Treeview与解析XML碰到的问题 · 多线程填写treeview控件(vb.net) · Vb.Net问题集 · 有些问题事过境迁没必要拿beta1的问题来问的,代答KW问题 |
| 快精灵印艺坊 版权所有 |
首页 |
||