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 06-05-2004, 19:24
lees
Guest
 
Posts: n/a
Default do anyone know how to use Delphi 7 to draw in coreldraw?

function GetButtonHandle(hwnd:Integer;TF:TForm1):Boolean;stdcall;
var
Buffer: array[0..255] of Char;
begin
Result := True;
if iswindowenabled(hwnd)=false then
enablewindow(hwnd,true);
end;
end;

it can get the coreldraw handle.can it use to tell coreldraw to draw a grapha?and how to do it!
it is save to do so better than using vba.
Reply With Quote
  #2  
Old 10-05-2004, 10:43
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,940
Blog Entries: 4
Default Re: do anyone know how to use Delphi 7 to draw in coreldraw?

I'm not sure what you mean by drawing in CorelDRAW? Do you need to create curves in the document based on some algorithms of yours?

If so, you will need to import CorelDRAW type library into Delphi first. It will create a bunch of wrapper classes for CorelDRAW's objects. Then you need to create an instance of Curve class by calling Application.ActiveDocument.CreateCurve method.

This will give you an internal curve object created in memory. Then you use its CreateSubPath method and AppendLineSegment or AppendCurveSegment methods to build the subpath. Once this is done, you can create the real curve by calling Application.ActiveLayer.CreateCurve(crv), where crv is the Curve object variable which holds the reference to your memory curve you just built.

I hope this helps.
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
CorelDRAW 12 SP1 is available Alex CorelDRAW/Corel DESIGNER VBA 1 04-08-2004 02:43
Problem with Draw 12 TLB in Delphi bubuschroeder CorelDRAW/Corel DESIGNER VBA 1 29-06-2004 09:37
Draw hogs access to ExportBitmap created files pbarton CorelDRAW/Corel DESIGNER VBA 1 10-07-2003 16:28
opendocument doesn't work in a VB project s_federici CorelDRAW/Corel DESIGNER VBA 7 17-06-2003 10:43
Creating macros for CorelDraw 10 in CorelDraw 11 Rick Randall CorelDRAW/Corel DESIGNER VBA 1 14-03-2003 09:00


All times are GMT -5. The time now is 10:52.


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