CAD控件界面显示与隐藏(网页版)

控件界面工具栏的显示或隐藏,js代码实现如下:


1
2
3
4
5
6
7
8
9
//隐藏/显示工具栏
 
    mxOcx.ShowToolBar("常用工具",isShow);
    mxOcx.ShowToolBar("绘图工具",isShow);
    mxOcx.ShowToolBar("编辑工具",isShow);
    mxOcx.ShowToolBar("特性",isShow);
    mxOcx.ShowToolBar("ET工具",isShow);
 
    isShow = !isShow;


控件界面菜单栏的显示或隐藏,js代码实现如下:


1
2
3
4
5
//隐藏/显示菜单栏
 
 
    mxOcx.ShowMenuBar(isShow);
    isShow = !isShow;


控件界面标尺栏的显示或隐藏,js代码实现如下:


1
2
3
4
5
//隐藏/显示标尺栏
 
 
    mxOcx.ShowRulerWindow(isShow);
    isShow = !isShow;


控件界面属性栏的显示或隐藏,js代码实现如下:


1
2
3
4
5
//隐藏/显示属性栏
 
 
    mxOcx.ShowPropertyWindow(isShow);
    isShow = !isShow;


控件界面命令栏的显示或隐藏,js代码实现如下:


1
2
3
4
5
//隐藏/显示命令栏
 
 
    mxOcx.ShowCommandWindow(isShow);
    isShow = !isShow;


控件界面模型栏的显示或隐藏,js代码实现如下:


1
2
3
4
5
//隐藏/显示模型栏
 
 
    mxOcx.ShowModelBar(isShow);
    isShow = !isShow;


控件界面状态栏的显示或隐藏,js代码实现如下:


1
2
3
4
5
//隐藏/显示状态栏
 
 
    mxOcx.ShowStatusBar(isShow);
    isShow = !isShow;


控件界面浏览模式切换,js代码实现如下:


1
2
3
4
5
6
7
//模式切换
var isBrowner = false;
 
    isBrowner = !isBrowner;
    mxOcx.BrowseMode = isBrowner;
    mxOcx.ShowMenuBar = !isBrowner;
    mxOcx.ShowPropertyWindow = !isBrowner;

posted on 2019-06-25 16:33  梦想CAD控件  阅读(242)  评论(0)    收藏  举报

导航