AutoCADSimpleToolPalette_dg

所属分类:绘图程序
开发工具:Visual C++
文件大小:13KB
下载次数:6
上传日期:2014-07-24 12:15:09
上 传 者JoeYxj
说明:  这个源代码使用了了AutoCAD的停靠面板技术来创建用户自记得停靠面板。效果看起来很像AutoCAD自己的面板。
(The code shows how to create a dockable pallatte that looks like AutoCAD s own style.)

文件列表:
AutoCADSimpleToolPalette_dg\acrxEntryPoint.cpp (3518, 2013-12-11)
AutoCADSimpleToolPalette_dg\DocData.cpp (2236, 2013-12-11)
AutoCADSimpleToolPalette_dg\DocData.h (1368, 2013-12-11)
AutoCADSimpleToolPalette_dg\resource.h (1101, 2013-12-11)
AutoCADSimpleToolPalette_dg\SimpleTool.cpp (5173, 2013-12-11)
AutoCADSimpleToolPalette_dg\SimpleTool.h (3063, 2013-12-11)
AutoCADSimpleToolPalette_dg\SimpleToolPalette.cpp (3818, 2013-12-11)
AutoCADSimpleToolPalette_dg\SimpleToolPalette.def (470, 2013-12-11)
AutoCADSimpleToolPalette_dg\SimpleToolPalette.idl (3412, 2013-12-11)
AutoCADSimpleToolPalette_dg\StdAfx.cpp (857, 2013-12-11)
AutoCADSimpleToolPalette_dg\StdAfx.h (4683, 2013-12-11)
AutoCADSimpleToolPalette_dg\TOOL1.bmp (2458, 2003-11-18)

Copyright 2014 Autodesk, Inc. All rights reserved. Use of this software is subject to the terms of the Autodesk license agreement provided at the time of installation or download, or which otherwise accompanies this software in either electronic or hard copy form. This sample demonstrates how to use the AcadToolImpl class to create a rudimentary Tool Palette client application. To run the sample, load the ARX file in AutoCAD and type the CREATESIMPLE command. This command creates a new tool palette named SimplePalette in the Tool Palettes window. SimplePalette demonstrates a flyout tool, a command tool, and a plain tool. The flyout tool uses a standard AutoCAD shape package to allow the user to exchange the default line tool for a variety of other entity tools. The command tool starts the LINE command and lets the user choose the start and end points. The plain tool behaves like a macro that creates a line with hard-coded points, with no user input. This sample also demonstrates a custom tool palette context menu. When the user right-clicks on the SimplePalette, the context menu displays three extra items: Menu1, Menu2, and Menu3. Each of these menu items launches an alert box that displays the name of the chosen item. When the user right-clicks on any palette other than the SimplePalette, the three custom menu items do not appear.

近期下载者

相关文件


收藏者