![]() |
#1
|
|||
|
|||
![]()
Hi,
I have come accross a querious problem, I'm drawing a line in corel designer 12 with the help of VBA using the builtin line drawing function. The steps are as follows : 1) Get a user click for first point(X,Y) 2) Get second User click (X1,Y1) 3) Provide this to CreateLineSegment method and draw the line. Now the problem is user wants to draw a line that has the magnetic property like the way corel designer draws a line using the line drawing tool. In short below is what i want to do: 1) Get 1 user click. 2) Show a growing or shrinking line depending upon the mouse position. 3) take the 2 user click and draw the line from 1 user click to second user click. Is it possible to write a macro that will allow a line to be drawn just like the corel built in linr drawing tool. All genious guys in this forum plz help(specialy Alex and His genious Team). Thanks for all previous answer's. Thank You Amol ![]() |
#2
|
||||
|
||||
![]()
There is no easy way of doing it. You are hitting an area which is quite poorly developed yet - live user interaction through a macro.
There is no way of making this work, unless your are a hardcore programmer and can spend a lot of subclassing CorelDESIGNER windows, intercepting windows messages and stuff like that on Windows API level. It is a hacking way of doing it, though, and you must know exactly what you are doing. Hopefully, the future versions of CorelDRAW/Designer will rectify this shortcoming... |
![]() |
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 |
Problem with VBA in Draw X3 | LGD | CorelDRAW/Corel DESIGNER VBA | 8 | 19-01-2006 09:14 |
CD11 Convert to Bitmap -> CMYK to Gray scale problem | xenio | General | 7 | 24-07-2005 21:46 |
range problem | chinkyk | CorelDRAW/Corel DESIGNER VBA | 0 | 20-10-2004 10:00 |
a problem... | CorelUser | General | 2 | 20-06-2004 02:21 |
Problem with Export (or Save as) in AI-Format | LOT | CorelDRAW/Corel DESIGNER VBA | 3 | 10-02-2004 14:28 |