OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #11  
Old 29-10-2004, 13:29
rharpe
Guest
 
Posts: n/a
Default

Alex, you are a Corel Draw deity aren't you?

Works like a charm! Thanx again!!!
Reply With Quote
  #12  
Old 29-10-2004, 20:36
-=HKLC=-
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Alex
Well, that's a limitation of previous versions of CorelDRAW. The icons, captions, tooltips, etc are not saved in the .cwf files. However in CorelDRAW 12 this is addressed after the workspace files have been changed to XML...
I see in a software, they can put their icons in their buttons with their wokspace ( in Corel 11) .
Reply With Quote
  #13  
Old 29-10-2004, 22:34
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default

You will need to ship the whole workspace which could include those customization. But you can't just create a CWF file which will have only one toolbar or something like that. You will need to go to the Workspaces folder, get the CW_ file along with the CFG files from the corresponding subfolder, and install them on the user machine, then fiddle with registry to set the new workspace as default for CorelDRAW to use next time it is started...
Reply With Quote
  #14  
Old 30-10-2004, 04:22
-=HKLC=-
Guest
 
Posts: n/a
Default

Can give me a example (step by step ) ?
Reply With Quote
  #15  
Old 30-10-2004, 09:29
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default

Ok...

It's best to start with the default workspace:
  1. Start CorelDRAW
  2. Go to Tools>Options dialog and select the root Workspace node in the options tree. Make sure that you have "_default" workspace selected (See attached Fig 1).
  3. Close the dialog
  4. Shut down CorelDRAW.
  5. Launch CorelDRAW again and hold down F8 during startup untill you see a message asking if you want to restore default settings (Fig 2). Click "Yes"
  6. When CorelDRAW launches, go to Tools>Options>Workspace again
  7. Click New... button on the workspace dialog (see Fig 1 again for reference).
  8. Enter the name of your new workspace name, specify that it should take settings from _default workspace and you can specify an optional description of the workspace (Fig 3). Click OK
  9. Now you should see your workspace in the list of workspaces and it should be activated (Fig 4)
  10. Now go to Workspace>Customization>Command bars in the options tree and you can create a new toolbar by clicking New button below the list and entering the toolbar title (Fig 5)
  11. Now go to Workspace>Customization>Commands section and select "Macros" from the list box on the top. This will show the list of all available macros.
  12. Select the macro you want to add to your toolbar and just drag it from the list. See the mini-animation in Fig 6.
  13. Repeat customizations until you create your workspace (you might want to change icons for the buttons, captions, tooltips, etc.
  14. Now shut down CorelDRAW.
  15. Go to the workspace folder where all the files are stored. In CorelDRAW11, this is in C:\Documents and Settings\UserName\Application Data\Corel\Graphics11\User Workspace\CorelDRAW11. Note that the user name will be different depending on the current Windows user account in use. In CorelDRAW 12, the workspace is stored in a similar location: C:\Documents and Settings\UserName\Application Data\Corel\Graphics12\User Workspace\CorelDRAW12
  16. In that folder you will see a few files with .CW_ extensions. And also several subfolders with the names of the workspaces you have. (Fig 7)
  17. You need to copy your cw_ file (CoolTool.cw_) and the CoolTool subfolder with all the CFG files (CorelDRAW 11) or (XML files in CorelDRAW 12).
  18. Make sure you do not distrubute any INI files which might be in the workspace folders (Fig 8a for CorelDRAW 11 and Fig 8b for CorelDRAW 12).
  19. Now, all you need to do is to copy the CW_ file into the CorelDRAW workspace folder, create CoolTool subfolder and copy the CFG/XML files to your client.
  20. Finally, to automate the setup process, your setup program must point CorelDRAW to the new workspace. CorelDRAW uses the following registry key to specify last workspace used, so next time it is launched, it will load the workspace specified:
    HKEY_CURRENT_USER\Software\Corel\CorelDRAW\11.0\CorelDRAW -> LastWorkspaceUsed - CorelDRAW 11
    HKEY_CURRENT_USER\Software\Corel\CorelDRAW\12.0\CorelDRAW -> LastWorkspaceUsed - CorelDRAW 12
  21. This key should point to the full path of the CW_ file. (Fig 9)

Now this should do it
Attached Images
          
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
run a macro at startup with Corel 12 ? beny04 CorelDRAW/Corel DESIGNER VBA 2 26-04-2005 14:57
Run a macro at startup with Corel 12 ? -=HKLC=- CorelDRAW/Corel DESIGNER VBA 8 08-04-2005 02:07
Corel 11 Macro arollgen CorelDRAW/Corel DESIGNER VBA 1 17-08-2004 16:10
New macro to clip curves w.r.t. a border Gerard Hermans Macros/Add-ons 0 09-06-2003 07:50
Corel Capture 8 and Corel Script Helix CorelDRAW CS 0 13-12-2002 18:10


All times are GMT -5. The time now is 05:09.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com