![]() |
#1
|
|||
|
|||
![]()
Hello
I originally posted this question at the Corel user forums but it was suggested that it may be better here if anyone may be able to help. I am trying to emulate something similar to the Corel Designer behavior in which a keypress can be used to enforce a particular type of snapping. This doesn't seem possible in Corel Draw and as a workaround I hoped to write several VBA scripts to allow toggling on and off the components of snapping. I've found that I can toggle snapping to grid using Application.ActiveWindow.Document.Grid.Snap = Not (Application.ActiveWindow.Document.Grid.Snap) and assigned this macro to the letter G. I would now like to write additional scripts to turn on Quadrant snapping (Q), midpoint snapping (M), tangent snapping (T) and so on, but I am having trouble locating the appropriate code in the VBA object model. Can anyone help point me to this? I'm imagining something like Document.SnaptoTangents = True Document.SnaptoMidpoints = False etc. i.e. I am hoping to find a way to set the values within View, Setup, Snap to Objects dialog box (Modes section) using code Many thanks if anyone is able to help ! |
#2
|
||||
|
||||
![]()
As for as I know this settings are not accessible. They are saved to the registry upon CorelDRAW closing, but you would have to make your changes and reset CorelDRAW for them to be picked up, don't think that is a good solution.
-Shelby |
#3
|
|||
|
|||
![]()
Many thanks for your help in confirming this !
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help needed using Visual Editor | Snoman | SecuriDesign | 0 | 26-01-2011 04:42 |
Urgent Help: Alex: with Corel VBA and Visual basic program | amollondhe | CorelDRAW/Corel DESIGNER VBA | 1 | 23-11-2006 09:57 |
Visual Basic 2005 | shelbym | CorelDRAW/Corel DESIGNER VBA | 5 | 03-11-2006 22:30 |
Visual basic and text box | Mark Hockert | CorelDRAW/Corel DESIGNER VBA | 0 | 08-06-2006 15:19 |
Curveworks Fillet Gives Visual Basic Error | wetpuppy | CurveWorks | 2 | 05-08-2005 11:08 |