CustomToolTemplateCS
Directory actions
More options
Directory actions
More options
CustomToolTemplateCS
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Copyright © 2014 Corel Corporation.
Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying
documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software,
and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all
subject to the following:
The copyright notices in the Software and this entire statement, including the above license grant, the original location it was
downloaded from, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part,
and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object
code generated by a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. THE SOFTWARE MAY CONTAIN BUGS, ERRORS AND OTHER
PROBLEMS THAT COULD CAUSE SYSTEM FAILURES AND THE USE OF SUCH SOFTWARE IS ENTIRELY AT THE USER’S RISK. IN NO EVENT SHALL THE
COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
This project contains a simple example of a 2-point line tool for CorelDRAW (X7 - Update 1 and later) or Corel DESIGNER X7 or later.
If the project is correctly set up and you have write access to the CorelDRAW or Corel DESIGNER install folder, the tool and required
files will be copied to the install folder when the project is built. "Start Debugger" will launch CorelDRAW or Corel DESIGNER and
you will be able to use your tool.
User created addon tools require you to be signed in as a registered standard or premium user to use the tool.
Holding F8 is required if any changes are made to UserUI.xslt. While developing your tool, you may want to keep a backup of
your existing workspace or create a dummy workspace.
Addons are located at "<CorelDRAW/Corel DESIGNER install folder>\Programs\Addons\<your tool name>\"
** Location is Programs\ for 32-bit, Programs64\ for 64-bit. If both 32-bit and 64-bit are installed, the
Visual Studio Project template will choose 64-bit.
Files:
Addon.cs
========
This file contains a class responsible for creating and registering the new tool.
<YourToolName>.cs
=========
This file contains the implementation for the tool
AppUI.xslt
==========
This file is responsible for defining new controls and non-customizable UI. New controls, dialogs and dockers are
defined here. New controls must contain a unique GUID. The following AutoHotKey script can be used to quickly
generate new GUIDS: https://gist.github.com/ijprest/3845947, or Google "GUID generator" for other options.
AppUI.xslt file is copied to the final addon folder in the CorelDRAW/Corel DESIGNER install location.
UserUI.xslt
==========
This file is responsible for customizable UI. Items can be added or removed from existing UI here. Toolbars and menus
can also be defined here. UserUI.xslt is copied to the final addon folder in the CorelDRAW/Corel DESIGNER install location. Holding F8
to reset the UI is required if any changes are made to UserUI.xslt.
CorelDrw.addon
==============
This file tells CorelDRAW to load the addon located within the folder. CorelDrw.addon is copied to the final addon
folder in the CorelDRAW install location.
Designer.addon
==============
This file tells Corel DESIGNER to load the addon located within the folder. Designer.addon is copied to the final addon
folder in the Corel DESIGNER install location.
config.xml
==========
This file defines resources which are exported by the tool. Custom strings, icons and cursors can be assigned to guids
to be used by the UI. config.xml is copied to the final addon folder in the CorelDRAW/Corel DESIGNER install location.
resources.rct
=============
This is the resource template that can contain icons, strings and cursor. To import custom icons or cursor, open
resources.rct, right-click on any of the folders, and select "Add Resource..." and select "Import" and navigate to your
icon or cursor file.