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 31-03-2006, 01:21
amollondhe
Guest
 
Posts: n/a
Exclamation Querious Problem.

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
Reply With Quote
  #2  
Old 31-03-2006, 08:40
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default

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...
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
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


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


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