OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24-04-2008, 06:56
friendly_man
Guest
 
Posts: n/a
Default howto add a new customized icon to start my vb6 addin (DLL) ?

Hi,

I am new in creating addins for CorelDraw with VB6 (DLLs). I have tried out the CropMarks example, compiled to DLL, and this addin is accessable from Menu_Extras_Visual Basic_Add-Ins_CropMarks
But this way is not very comfortable. How can I generate an icon into the workspace and activate the extended workspace ?

I am sure, there are some guys out there, who are familiar with that stuff !

Thank you for your help.

Reply With Quote
  #2  
Old 24-04-2008, 10:25
SteveDude SteveDude is offline
Senior Member
 
Join Date: Dec 2005
Location: Salina, Kansas USA
Posts: 149
Default ...

What version of Corel are using?
Reply With Quote
  #3  
Old 24-04-2008, 10:46
friendly_man
Guest
 
Posts: n/a
Default

i am using CorelDraw 11, and my AddIn is working within CorelDraw if I call it from the submenu Visual Basic AddIns...
but I would like to start it from an icon in the toolbar...
Reply With Quote
  #4  
Old 25-04-2008, 10:39
SteveDude SteveDude is offline
Senior Member
 
Join Date: Dec 2005
Location: Salina, Kansas USA
Posts: 149
Default ...

I can't help you with Version 11.

X3 or X4 is a different story as there are a couple of whays to do it. There is a problem with v11 or v12 plugins (Can't remember which one), but you can not create no more than 3 add-ons (Draw Bug) and then when you do they will be visible in other versions of DRAW, but won't work.

When using VB DLL's I prefer to do it this way and call it from a plain old GMS file...

Code:
    Dim Plugin As Object
    Set Plugin = CreateObject("MyVB6DLL.VB6Class")
    VB6Class.MySuborFuntion
    Set Plugin = Nothing
Basically, forget about the Add-on designer, but add a refernce to the CorelDRAW TLB.

Create a Public Class and place a public sub or function in that Class.

MyVB6DLL=Whatever Name you give the DLL in VB Project Properties.
VB6Class = Name of Class
MySuborFuntion = Name of Sub or Function.

Customize your version of CorelDRAW with a button, save the workspace and then make note of the changes in Corel Configuration files. When you install it write your changes to those files. Just be careful, because some people change there stuff around. In older versions of Corel, I would make a completely new workspace with my settings and then install that.
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


All times are GMT -5. The time now is 14:00.


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