改造 treeview.htc
来源:互联网 发布:淘宝测款视频教程 编辑:程序博客网 时间:2024/06/10 14:41
-W B W Y-
2005 03 30
1、修改"retrieving nodes..." 为中文"请稍候..."
打开wwwroot/webctrl_client/1_0/treeview.htc,查找替换"retrieving nodes..." 为中文"请稍候...",保存编码为UTF-8,否则会出现乱码。
2、显示ToolTips
打开wwwroot/webctrl_client/1_0/treeview.htc,按如下代码更改。
function generateItem(el, nodeClass)
{ ...
str = getNodeAttribute(el, "Target");
if (str != null)
elAnchor.target = str;
//增加tooltips
str = getNodeAttribute(el, "ToolTips");
if (str != null)
elAnchor.title = str;
...
使用treenode.setAttribute("ToolTips","some text");增加ToopTips属性。
3、解决setAttribute("Expanded",true)的错误
打开wwwroot/webctrl_client/1_0/treeview.htc,按如下代码更改。
function doNodePlusMinusClick(el)
{
if (g_bInteractive == false)
return false;
// The element, which is in a content node outside of the document, is outside the event hierarchy.
// Fire the event ourselves, rather than relying on bubbling.
//判断event是否为空
if(event!=null)event.cancelBubble = true;
...
4、使节点treenode不能被选择
打开wwwroot/webctrl_client/1_0/treeview.htc,按如下代码更改。
function doNodeClick(el)
{
if (g_bInteractive == false)
return;
g_nodeClicked = el;
// The element, which is in a content node outside of the document, is outside the event hierarchy.
// Fire the event ourselves, rather than relying on bubbling.
event.cancelBubble = true;
el.fireEvent("onclick"); // Execute our onclick handler
//不能选择,则屏蔽事件
var str = getNodeAttribute(el, "UnSelect");
if (str != null && str == "true")
return false;
...
使用treenode.setAttribute("UnSelect","true");增加UnSelect属性。
- 改造 treeview.htc
- 改造TreeView.htc
- TreeView/ListView/ImageList 控件改造
- 用CSS 对TREEVIEW 的外观进行改造
- 用CSS 对TREEVIEW 的外观进行改造
- 用CSS 对TREEVIEW 的外观进行改造
- htc
- htc
- htc
- htc
- IE Web Control 的 TreeView 的 treeview.htc 报告 tagName 为空或不是对象的问题
- treeView
- treeview
- treeview
- treeview
- TreeView
- TreeView
- treeview
- [原创]再谈CLASSPATH变量设置问题
- 紧急:求教PB中有关POS的问题
- 七款嵌入式Linux操作系统简介
- JS的IE和Firefox兼容性汇编(原作:hotman_x)
- RedHat9上安装Oracle9i手记(原作:hotman_x)
- 改造 treeview.htc
- 利用随机码进行加密
- SAP on Linux学习笔记
- JMX技术
- [原创] Eclipse 3.1M5a中创建RCP程序
- XMLHTTP抓取数据时乱码问题解决 选择自 babyt 的 Blog
- jsp tag的七宗罪
- 基于SWT的RSS阅读器-RSSOwl
- xml db vs. RDB