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 11-10-2009, 14:48
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 154
Default Toggle Snap t object by VBA

hi
Can snap to object turned on & off by VBA
Also can the "treat all object filled property of Pick tool be change by VBA Code
Thanks
Reply With Quote
  #2  
Old 11-10-2009, 23:34
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 10
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 and Treat as Filled

The only way I know to do it is like this:
Code:
Sub SnapToObjects()
    Application.FrameWork.Automation.InvokeItem "d8a02807-b934-4618-8c2d-a0145fd088f6"
End Sub

Sub TreatAsFilled()
    Application.FrameWork.Automation.InvokeItem "b73ed810-911c-40a0-bb1f-52ba7beffda1"
End Sub
Best of luck,

-Shelby
Reply With Quote
  #3  
Old 12-10-2009, 11:18
aakkaarr aakkaarr is offline
Senior Member
 
Join Date: Jan 2009
Posts: 154
Default Thanks the codes of Toggling, works great

hi Shelby
Thanks for the help.
Sometimes these codes when put in context menu are great convince
Like I have put "Outline None" on the right click.
So there might be other code which are not available otherwise
Also will you please tell me what is this key "d8a02807-b934-4618-8c2d-a0145fd088f6"
Are there any more keys and how to get help regarding this

Once again thanks
Reply With Quote
  #4  
Old 12-10-2009, 21:40
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,769
Blog Entries: 10
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 and Treat as Filled

Quote:
Originally Posted by aakkaarr View Post
hi Shelby
Also will you please tell me what is this key "d8a02807-b934-4618-8c2d-a0145fd088f6"
Are there any more keys and how to get help regarding this
Once again thanks
That key is "Snap to Objects"

Yes there are many many more, they can be found in. C:\Program Files\Corel\CorelDRAW Graphics Suite 13\Programs\UIConfig\CorelDRAW\DrawUI.xml
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
toggle pick state in PP Jeff Harrison Corel Photo-Paint VBA 2 09-10-2009 18:10
Event needed for color toggle CWCN CorelDRAW/Corel DESIGNER VBA 2 20-10-2008 11:17
Oh Snap! Booker General 3 20-09-2006 17:45
4DR Alex:) turn on/off "Snap to objects" & "snap location marks" from VBA wOxxOm CorelDRAW/Corel DESIGNER VBA 1 14-06-2005 12:12
Snap to guidelines ddonnahoe CorelDRAW/Corel DESIGNER VBA 2 22-11-2004 12:21


All times are GMT -5. The time now is 17:34.


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