Hello,I find following code in CorelDRAW X3 Help
Sub ToolActive()
If ActiveTool = cdrToolPick Then
ActiveTool = cdrToolEyeDropper
End If
End SubI try to use code to change active tool , but ActiveTool = cdrToolEyeDropper not work - nothing is happen, no error messagesActiveTool is possible to read, but not to write inAny suggestion? Or only upgrade of Corel will help?I think if Help contain this code, he must workGreetings!
you can use the object browser window in a VGCore member to see its values, to write to a property it needs to contain the "set" method, this is from X8, other versions may be different
I remember now that you started using VGCore in version X7, but it's very similar I think
Hello,Thank You for this answerHere is my VGCore windowProblem is that I can Get but can not Set ActiveTool using code aboveApplication.ActiveTool = 5 'not workApplication.ActiveTool = cdrToolDrawEllipse 'not work too
Greetings
Some todos os componentes of the qnothers tools, you can verify in filé drawui.xslt in installation folder
Hi bhbp.bg2,
cdrToolEyeDropper is not listed in cdrTools enumeration so you cannot activate as you have done above. Not sure if it is in the version you are working on.
You need to use the GUID for the tool as below:
ActiveToolStateGuid = "c109a053-50ab-4943-8edc-d374ec153e7e" 'Activate Color EyeDropper Tool
Please try and let me know if that works for you.
Suku