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 03-05-2007, 16:26
simplicitylabs
Guest
 
Posts: n/a
Default Add function to 3 point arc macro

How can I get the cursor in this macro to snap like every other cursor when snap is activated?

I.E. I need it to snap to nodes the way the freehand tool cursor does when Snap to Objects is selected. Anyone have some nifty code I can add to this macro to make that happen? Or suggestions?
Reply With Quote
  #2  
Old 03-05-2007, 21:29
simplicitylabs
Guest
 
Posts: n/a
Default

I'd also like to colorize the circles at the points...how would I do that?
Reply With Quote
  #3  
Old 03-05-2007, 22:05
simplicitylabs
Guest
 
Posts: n/a
Default

Ok. I figured out the red circle thingy...

Place this just under where it's creating the ellipses:

ActiveDocument.Selection.Fill.UniformColor.RGBAssign 255, 0, 0

I think it adds a nice touch to the tool. I made an icon that looks like the tool in use, and placed it in the Freehand Curve Flyout:



Now, if I could just get some help with the snap issue...
Reply With Quote
  #4  
Old 07-05-2007, 00:45
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 Its in the code...

If you look at the line...
Code:
If ActiveDocument.GetUserClick(px(i), py(i), Shift, 100, True, cdrCursorPickOvertarget) <> 0 Then
the snap is set for True or on. I just don't think it works, or at least no well enough that you can tell.

I do agree that snap is very very handy and it would be very useful if it would work like one would expect.

Shelby
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
Cannot use Curveworks macros in a user witten macro??? jon46089 CurveWorks 2 02-03-2006 14:18
Printing Raw Prn Files Mark Code Critique 2 16-09-2004 16:15
New macro to clip curves w.r.t. a border Gerard Hermans Macros/Add-ons 0 09-06-2003 07:50
takes Draw a long time to start a new document! bbolte CorelDRAW/Corel DESIGNER VBA 5 14-05-2003 09:09
Speeding up a macro Rick Randall CorelDRAW/Corel DESIGNER VBA 2 12-12-2002 10:51


All times are GMT -5. The time now is 06:41.


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