显示或隐藏接口:
C++: MxDraw::ShowPropertyEditWindow
COM接口: DMxDrawX::ShowPropertyWindow
例如显示属性栏,JS:
1
|
<param name= "ShowPropertyWindow" value= "1" >
|
属性栏功能,默认是没有启用的,需要在控件启动时初始化启用。
C++: MxDraw::EnablePropertyEditWindow
例如,在App::InitInstance中启用
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
BOOL CTestDlgApp::InitInstance()
{
// …
MxDraw::InitMxDraw( true ,_T( "MxDraw-Edit.ini" ));
MxDraw::SetTheme(MxDraw::themeWhidbey);
MxDraw::EnableUndo( true );
MxDraw::EnableOleShow( true );
MxDraw::EnableViewModifyNotify( true );
MxDraw::EnableDeskCommandWindow( true );
MxDraw::ShowCommandWindow(NULL,TRUE);
MxDraw::EnablePropertyEditWindow( true );
//…
}
|
COM: IniSet="EnablePropertyWindow=Y"如下图说明:

例如,Js调用启用属性窗口功能,但不显示。
1
|
<param name= "Iniset" value= "LoadMrx=PropertyEditor,EnablePropertyWindow=Y" >
|