Senin, 24 Januari 2011

Knowledge detail

Customizing the toolbar and menu

Q: I want to add some toolbars and menu items to my copy of ZWCAD. How do I do that?
A: Solution: For this purpose, you are supposed to know something about menu script. You could use MENULOAD to load local menu file to existing basic menu files. Note that both the basic menu file and any local menu files are associated with a menu group name. After loading a local menu, you can customize the ZWCAD menu bar by adding and deleting pull-down menus and other elements.
  “Local menu” refers any menu files in addition to the basic menu file. Any documents can be used as basic menu or local menu, but for the convenient operating, proposed to use larger menu as basic menu file, and then load other smaller local menu files in the process of implementing the procedures. After loading menu group files, they can be uninstalled by groups; when there is only one group left, ZWCAD reverts to its default configuration. Users can make use of Regidit command’s Import function. For example, here folders are added to the path of ZWCAD2009 Eng:
  HKEY_CURRENT_USER\Software\Chinaweal Longteng\ZWCAD 2009 eng\Profiles\Default\Menu The default menu group is named with “Group 0”, and the first implemented menu group is named with “Group 1”, and so on. Make there is no conflict between your menu group name and former ones. Three kinds of menu files -- .mnu, .mns, and .icm -- can be imported through both the Customize and MenLoad commands. (MNU and MNS files are compatible with AutoCAD, while ICM files work with IntelliCAD and compatibiles.) When importing files, you should use editor to change the group name of the menu file to ZWCAD to distinguish it with the default group name. The XML toolbar file exported from ZWCAD program command can be imported thorugh the Customize command. (It cannot be imported through the MenuLoad command.) After loading a new menu file, right clicking the tool bar displays a shortcut menu that lists the names of currently-loaded toolbars and menus. If you wish to edit toolbar icons, you can do so in a development platform, such as Microsoft’s Visual Studio 6.0. Compile it to a *.dll file, and then rename the *.dll file with the name of the menu file. When loading the menu file, ZWCAD searches for the corresponding *.dll file in which the toolbar icons are located. Note that all of these files must be located in the installation directory of ZWCAD.

Tidak ada komentar:

Posting Komentar