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 28-08-2010, 05:30
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 164
Default How to turn on & off Snap to Object by Macro

hi
How to turn on & off Snap to Object programatically
Reply With Quote
  #2  
Old 28-08-2010, 08:41
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 15
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Snap to Object

You can find an example here:

Snap to Object

-Shelby
Reply With Quote
  #3  
Old 28-08-2010, 10:00
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 164
Default

is there any way of determining the state of snap as the command toggles on-off, is there any other way to turning on-off
Reply With Quote
  #4  
Old 29-08-2010, 09:35
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

HI.
If you need it for a certain function then some of the functions have it as a built in parameter, like getUserClick.
-John
Reply With Quote
  #5  
Old 29-08-2010, 10:27
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 164
Default

when i am in node edit mode I want to turn off snap to object and when out of shape tool I want snap to object to stay, I know ALT+Z is the short cut.
but I am using "1" key to go to shape edit mode so i simultaneously want snap to object be turned off
Reply With Quote
  #6  
Old 29-08-2010, 18:50
runflacruiser's Avatar
runflacruiser runflacruiser is offline
Senior Member
 
Join Date: Jun 2009
Location: Pigeon Forge, TN USA
Posts: 811
Default

Hi.
What about some event code for selection change?

Code:
Sub changeSnap()

    If ActiveTool = cdrToolNodeEdit Then
        'turn snap off
    Else
        'turn snap on
    End If
    
End Sub
-John
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
Macro for Object Nesting? excessiveforce New product ideas 9 31-05-2010 00:12
Toggle Snap t object by VBA aakkaarr CorelDRAW/Corel DESIGNER VBA 3 12-10-2009 21:40
Oh Snap! Booker General 3 20-09-2006 17:45
Snap to Objects in Oberon ThreePointArc Macro dgearl CorelDRAW/Corel DESIGNER VBA 3 05-09-2006 12:58
4DR Alex:) turn on/off "Snap to objects" & "snap location marks" from VBA wOxxOm CorelDRAW/Corel DESIGNER VBA 1 14-06-2005 12:12


All times are GMT -5. The time now is 22:12.


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