?? object.htm
字號:
<html>
<head>
<title>Binary Star 右鍵菜單常用方法和屬性</title>
<link href="../css/bs.css" rel="stylesheet" type="text/css">
<style>
body{font-family: verdana;font-size: 9pt;}
table{font-family: verdana;font-size: 9pt;}
a{font-family: verdana;font-size: 9pt;color: blue;}
.table_a{border: #bababa 1px solid;border-top: White 0px solid;}
.table_b{border-left: #bababa 1px solid;}
.table_c{border: #bababa 1px solid;}
.table_d{border-bottom:#bababa 1px solid;}
.td_a{background:url(../images/qq.gif);background-repeat:repeat-x;}
.td_b{border-right: #bababa 1px solid; width:150px;}
.td_c{border-bottom: #bababa 1px solid; width:150px;}
.td_d{border-bottom: #bababa 1px solid; width:150px;border-right: #bababa 1px solid; width:150px;}
.button_a{cursor: hand;}
.h1{font-family: verdana;font-weight: normal;font-size: 9pt;color:blue;}
.h1_1{font-family: verdana;font-weight: normal;font-size: 9pt;color:black;}
.h2{font-family: verdana;font-weight: normal;font-size: 9pt;color:red;}
.h2_2{font-family: verdana;font-weight: normal;font-size: 9pt;color:green;}
.h3{font-family: verdana;font-weight: bold;font-size: 10pt;}
</style>
<SCRIPT language=javascript src="../js/bs.js"></SCRIPT>
<SCRIPT language=javascript src="../js/bsrightmenu.js"></SCRIPT>
<SCRIPT language=javascript src="../js/treeview.js"></SCRIPT>
<SCRIPT language=javascript>
var function_rm = new BSTreeView("function_rm", "frmBusiness", false, "");
function_rm.setImagesPath("../images/");
function_rm.setShowLine(true);
function_rm.setShowNodeImg(true);
function_rm.setShowAddImg(true);
var thisShowDiv = "";
function setDivShow(inID){
if (thisShowDiv!=""){
document.getElementById(thisShowDiv).style.display = "none";
}
if (inID != ""){
document.getElementById(inID).style.display = "block";
document.getElementById(inID).style.overflow="auto";
}
thisShowDiv = inID;
}
</SCRIPT>
</head>
<body leftMargin="0" topMargin="0" rightMargin="0" scroll="no" >
<table align="center" style="width:100%;height:100%;" class="table_a" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25px" style="" align="left" style="border-right: #bababa 1px solid;" class="td_a"><nobr> 對象結(jié)構(gòu)樹</nobr>
</td>
<td height="25px" style="" align="left" class="td_a" width="100%"><nobr> 方法/屬性說明</nobr>
</td>
<td height="25px" style="" align="right" class="td_a"><nobr>[<a href="../index.htm">回首頁</a>] [<a href="rmtest.htm">如何使用Binary Star 右鍵菜單</a>] </nobr>
</td>
</tr>
<tr>
<td style="width:220px;height:100%;" class="td_b" valign="top">
<div style="width:220px;height:100%;overflow:auto;">
</br>
<SCRIPT language=javascript>
//BSRightMenu對象
var rootNode = function_rm.addRootNode("bsrmmenu", "BSRightMenu對象", "function_rm.getSelectNode().expand();setDivShow('bsrmmenu')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
//方法
var funcNode = rootNode.addNode("bsrmmenu_f", "常用方法", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
var oneNode = funcNode.addNode("bsrmmenu.addItemArea", "addItemArea", "setDivShow('bsrmmenu_addItemArea')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
oneNode.setTitle("添加一個右鍵菜單塊");
oneNode = funcNode.addNode("bsrmmenu.setImagesPath", "setImagesPath", "setDivShow('bsrmmenu_setImagesPath')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
oneNode.setTitle("設(shè)置右鍵控件需要的圖片路徑");
oneNode = funcNode.addNode("bsrmmenu.getThisRMArea", "getThisRMArea", "setDivShow('bsrmmenu_getThisRMArea')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
oneNode.setTitle("得到當(dāng)前顯示的菜單塊");
oneNode = funcNode.addNode("bsrmmenu.getThisRMItem", "getThisRMItem", "setDivShow('bsrmmenu_getThisRMItem')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
oneNode.setTitle("得到當(dāng)前高顯的菜單項(xiàng)");
oneNode = funcNode.addNode("bsrmmenu.doRightMenu", "doRightMenu", "setDivShow('bsrmmenu_doRightMenu')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
oneNode.setTitle("激發(fā)右鍵菜單");
//屬性
var attNode = rootNode.addNode("bsrmmenu_a", "常用屬性", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode = attNode.addNode("bsrmmenu.itemAreaList", "itemAreaList", "setDivShow('bsrmmenu_itemAreaList')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode.setTitle("右鍵塊集合");
//BSRightItemArea對象
var rootNode = function_rm.addRootNode("bsrmmenuarea", "BSRightItemArea對象", "function_rm.getSelectNode().expand();setDivShow('bsrmmenuarea')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
//方法
funcNode = rootNode.addNode("bsrmmenuarea_f", "常用方法", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode = funcNode.addNode("bsrmmenuarea.addRootItem", "addRootItem", "setDivShow('bsrmmenuarea_addRootItem')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
oneNode.setTitle("添加一個右鍵根菜單項(xiàng)");
oneNode = funcNode.addNode("bsrmmenuarea.addItem", "addItem", "setDivShow('bsrmmenuarea_addItem')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
oneNode.setTitle("添加一個右鍵菜單項(xiàng)");
//屬性
attNode = rootNode.addNode("bsrmmenuarea_a", "常用屬性", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode = attNode.addNode("bsrmmenuarea.index", "index", "setDivShow('bsrmmenuarea_index')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode.setTitle("該菜單塊索引");
oneNode = attNode.addNode("bsrmmenuarea.itemList", "itemList", "setDivShow('bsrmmenuarea_itemList')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
oneNode.setTitle("右鍵菜單集合");
//BSRightItem對象
var rootNode = function_rm.addRootNode("bsrmmenuitem", "BSRightItem對象", "function_rm.getSelectNode().expand();setDivShow('bsrmmenuitem')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
//方法
funcNode = rootNode.addNode("bsrmmenuitem_f", "常用方法", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode = funcNode.addNode("bsrmmenuitem.addItem", "addItem", "setDivShow('bsrmmenuitem_addItem')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
oneNode.setTitle("添加一個子右鍵菜項(xiàng)");
oneNode = funcNode.addNode("bsrmmenuitem.setDisabled", "setDisabled", "setDivShow('bsrmmenuitem_setDisabled')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package_obj.gif");
oneNode.setTitle("設(shè)置菜單項(xiàng)是否可用");
//屬性
attNode = rootNode.addNode("bsrmmenuitem_a", "常用屬性", "function_rm.getSelectNode().expand();setDivShow('');", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode = attNode.addNode("bsrmmenuitem.index", "index", "setDivShow('bsrmmenuitem_index')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode.setTitle("本菜單項(xiàng)索引");
oneNode = attNode.addNode("bsrmmenuitem.areaIndex", "areaIndex", "setDivShow('bsrmmenuitem_areaIndex')", "", "", false, false, -1, "hfold_open.gif", "hfold_close.gif", "package.gif");
oneNode.setTitle("本菜單項(xiàng)所在的右鍵塊索引");
oneNode = attNode.addNode("bsrmmenuitem.childList", "childList", "setDivShow('bsrmmenuitem_childList')", "", "", false, false, -1, "package_obj.gif", "package_obj.gif", "package.gif");
oneNode.setTitle("該菜單項(xiàng)包含的子菜單項(xiàng)索引集合");
function_rm.DrawTree(true);
</SCRIPT>
</div>
</td>
<td style="height:100%;overflow:auto;" valign="top" colspan="2">
<!--BSRightMenu -->
<div id="bsrmmenu" style="width:100%;height:100%;display:none;overflow:auto;">
<br/>
<table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>BSRightMenu 對象</b>
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
語法:var RMMenu = new BSRightMenu(id);
</td>
</tr>
<tr>
<td height="25px" style="width:200;" align="left" class="td_b">
<b><nobr>參數(shù)[id]:</nobr></b>
</td>
<td height="25px" style="width:100%;" align="left">
[<b class="h1">String</b>] 右鍵的實(shí)例名稱。
</td>
</tr>
</table>
</div>
<!--bsrmmenu_addItemArea -->
<div id="bsrmmenu_addItemArea" style="width:100%;height:100%;display:none;overflow:auto;">
<br/>
<table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>addItemArea 方法</b>
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
[作用]:為樹控件添加跟節(jié)點(diǎn),返回添加的根節(jié)點(diǎn)對象。
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
[語法]:var newArea = RMMenu.addItemArea(text);
</td>
</tr>
<tr>
<td height="25px" style="width:200;" align="left" class="td_b">
<b><nobr>參數(shù)[text]:</nobr></b>
</td>
<td height="25px" style="width:100%;" align="left">
[<b class="h1">String</b>] 輸入的右鍵菜單展現(xiàn)時左側(cè)文字。
</td>
</tr>
</table>
</div>
<!--bsrmmenu_setImagesPath -->
<div id="bsrmmenu_setImagesPath" style="width:100%;height:100%;display:none;overflow:auto;">
<br/>
<table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>setImagesPath 方法</b>
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
[作用]:設(shè)置右鍵控件需要的圖片路徑。
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
[語法]:RMMenu.setImagesPath(inPath);
</td>
</tr>
<tr>
<td height="25px" style="width:200;" align="left" class="td_b">
<b><nobr>參數(shù)[inPath]:</nobr></b>
</td>
<td height="25px" style="width:100%;" align="left">
[<b class="h1">String</b>] 輸入的圖片路徑。
</td>
</tr>
</table>
</div>
<!--bsrmmenu_getThisRMArea -->
<div id="bsrmmenu_getThisRMArea" style="width:100%;height:100%;display:none;overflow:auto;">
<br/>
<table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>getThisRMArea 方法</b>
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
[作用]:得到當(dāng)前顯示的菜單塊。
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_b">
[語法]:RMMenu.getThisRMArea();
</td>
</tr>
</table>
</div>
<!--bsrmmenu_getThisRMItem -->
<div id="bsrmmenu_getThisRMItem" style="width:100%;height:100%;display:none;overflow:auto;">
<br/>
<table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>getThisRMItem 方法</b>
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
[作用]:得到當(dāng)前高顯的菜單項(xiàng)。
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_b">
[語法]:RMMenu.getThisRMItem();
</td>
</tr>
</table>
</div>
<!--bsrmmenu_doRightMenu -->
<div id="bsrmmenu_doRightMenu" style="width:100%;height:100%;display:none;overflow:auto;">
<br/>
<table style="width:98%;" class="table_a" align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="25px" style="width:100%;" align="center" class="td_a" colspan="2"><b>doRightMenu 方法</b>
</td>
</tr>
<tr>
<td height="25px" style="width:100%;" align="left" class="td_c" colspan="2">
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -