![]() |
|
|
|
#1
|
|||
|
|||
|
Hi all,
I am using code that's basically straight from the help files to get a user click and do certain actions, however for some reason with this code ESC does not break the cycle (it actually triggers the click action) and neither does the timeout. Code:
Sub SmoothSeg()
Dim X As Double, Y As Double
B = False
Dim Seg As Segment, S As Shape
Set S = ActiveSelection.Shapes.First
While Not B
B = ActiveDocument.GetUserClick(X, Y, 0, 1, False, cdrCursorSmallcrosshair)
If Not B Then
Set Seg = S.Curve.FindSegmentAtPoint(X, Y, 0, 0.1)
If Not Seg Is Nothing Then
Seg.EndNode.Type = cdrSmoothNode
Seg.StartNode.Type = cdrSmoothNode
Seg.Type = cdrCurveSegment
Seg.EndNode.Type = cdrSmoothNode
Seg.StartNode.Type = cdrSmoothNode
Seg.Type = cdrCurveSegment
End If
End If
Wend
End Sub
Any ideas? |
|
#3
|
|||
|
|||
|
That's what I get for kinda copying out just the "most important parts" from the examples... Gonna go and bow my head in shame...
Thanks, Shelby!
|
![]() |
| Tags |
| curves, getuserclick, vba |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Default word wrapping behavior on Paragraph Textbox | Janga | CorelDRAW/Corel DESIGNER VBA | 1 | 12-02-2010 22:08 |
| Default word wrapping behavior on Paragraph Textbox | Janga | General | 0 | 11-02-2010 11:41 |
| GetUserClick | Webster | CorelDRAW/Corel DESIGNER VBA | 2 | 09-11-2006 01:03 |
| GetUserClick? | ssskurt | CorelDRAW CS | 0 | 23-12-2002 11:46 |