
MySlider.ToolTipText = "Rectanlge Selector Tooltip"

Var myButton = .AddCustomControl("CoreDrawPoC.ButtonSample", controlAssembly) MySlider.ToolTipText = "Border Sizing Slider Tooltip" MySlider.Caption = "Border Sizing Slider Caption" String controlAssembly = mySlider = .AddCustomControl("CoreDrawPoC.MySlider", controlAssembly) For example, if you want to add a button and a slider, add this method: First you will need to open Macro Manager in Corel and edit the VSTAGlobal solution. There is a way to use only C# (I tested this in Corel X8 but it should work in any version that has VSTA). I obtained that the Count of Controls is increasing, but still M圜ustomControl does not show up in the toolbar. I did some experiments with this last line of code. Controls.AddCustomControl("M圜ustomControlClass") Maybe this is the place where I should add something like this: this constructor probably gets an instanceĪpp = _app as This class has a constructor (note, default and provided by CorelDraw): So, my question is: is there any way to do this using only VSTA?įor example, in the default solution VSTAGlobal there is a Main class with attribute: 'ĪddCustomControl("MyNameSpace.M圜ustomControlClass", ' The problem is, both guys there create their CustomControl (a buton for example) and simply build it as *.dll and then use VBA script to add the CustomControl to CorelDraw toolbar like this Sub addLineWidthControl()Ĭall FrameWork.CommandBars("Standard").Controls. I googled a lot and found a few links: some forum post and YouTube video tutorial. Unfortunately, there is NO official documentation (WTF!!!!!) for VSTA in CorelDraw, instead we have VBA (Visual Basic for Applications) documentation and CorelDraw Object Model. For that I use predefined solution VSTAGlobal, that is there for me when I start CorelDraw.

I would like to have a button in CorelDraw toolbar, so when a user clicks this button some action happens, for example, a form is showed. I am in the process of creating a plugin (or addin) for CorelDraw X6 using VSTA (Visual Studio for Applications) because I like C# and.
