BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MetaDraw 3 OCX

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Andy Stephenson
Guest





PostPosted: Wed Sep 27, 2006 9:12 pm    Post subject: MetaDraw 3 OCX Reply with quote



Hi,

Has anyone used this ocx in Delphi - either D5 or 2005?

I hit a compiler directive when trying to install it, and the Bennet tec
guys aren't able to help.

The error I get is:
[Error] MetaDrawLib_TLB.pas(32): Invalid compiler directive: 'VARPROPSETTER'
[Warning] MetaDrawLib_TLB.pas(1234): Method 'SetBounds' hides virtual
method of base type 'TOleControl'
[Warning] MetaDrawLib_TLB.pas(1396): Redeclaration of 'PictureChanged'
hides a member in the base class
[Warning] MetaDrawLib_TLB.pas(1405): Redeclaration of 'Repaint' hides a
member in the base class
[Fatal Error] dclusr.dpk(37): Could not compile used unit
'..\Imports\MetaDrawLib_TLB.pas'

Thanks.

....Andy
Back to top
Nils Haeck
Guest





PostPosted: Thu Sep 28, 2006 4:33 am    Post subject: Re: MetaDraw 3 OCX Reply with quote



Hi Andy,

There's only one error, the rest are warnings.. what about trying to remove
the invalid compiler directive manually from the XXX_TLB.pas file? Did you
try that?

Nils

"Andy Stephenson" <info2004 (AT) asamicros (DOT) com> schreef in bericht
news:451aa2d2$1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi,

Has anyone used this ocx in Delphi - either D5 or 2005?

I hit a compiler directive when trying to install it, and the Bennet tec
guys aren't able to help.

The error I get is:
[Error] MetaDrawLib_TLB.pas(32): Invalid compiler directive:
'VARPROPSETTER'
[Warning] MetaDrawLib_TLB.pas(1234): Method 'SetBounds' hides virtual
method of base type 'TOleControl'
[Warning] MetaDrawLib_TLB.pas(1396): Redeclaration of 'PictureChanged'
hides a member in the base class
[Warning] MetaDrawLib_TLB.pas(1405): Redeclaration of 'Repaint' hides a
member in the base class
[Fatal Error] dclusr.dpk(37): Could not compile used unit
'..\Imports\MetaDrawLib_TLB.pas'

Thanks.

...Andy
Back to top
Andy Stephenson
Guest





PostPosted: Thu Sep 28, 2006 3:27 pm    Post subject: Re: MetaDraw 3 OCX Reply with quote



Nils,

I tried and was prompted for some extra additions to the package to make
it work. I'll give it a go. What's the worst that could happen?

How are you doing with your 2D lib? I may well be interested.

I need to load a dxf file, and at run time, I need to add some simple
shapes, zoom/pan, and then change the fill/colour of the shape
programatically. Will your lib do this?

The TCAD XP codeidea guys only read R12 DXF.

....Andy


Nils Haeck wrote:
Quote:
Hi Andy,

There's only one error, the rest are warnings.. what about trying to remove
the invalid compiler directive manually from the XXX_TLB.pas file? Did you
try that?

Nils

"Andy Stephenson" <info2004 (AT) asamicros (DOT) com> schreef in bericht
news:451aa2d2$1 (AT) newsgroups (DOT) borland.com...
Hi,

Has anyone used this ocx in Delphi - either D5 or 2005?

I hit a compiler directive when trying to install it, and the Bennet tec
guys aren't able to help.

The error I get is:
[Error] MetaDrawLib_TLB.pas(32): Invalid compiler directive:
'VARPROPSETTER'
[Warning] MetaDrawLib_TLB.pas(1234): Method 'SetBounds' hides virtual
method of base type 'TOleControl'
[Warning] MetaDrawLib_TLB.pas(1396): Redeclaration of 'PictureChanged'
hides a member in the base class
[Warning] MetaDrawLib_TLB.pas(1405): Redeclaration of 'Repaint' hides a
member in the base class
[Fatal Error] dclusr.dpk(37): Could not compile used unit
'..\Imports\MetaDrawLib_TLB.pas'

Thanks.

...Andy

Back to top
Nils Haeck
Guest





PostPosted: Sat Sep 30, 2006 1:15 am    Post subject: Re: MetaDraw 3 OCX Reply with quote

Hi Andy,

Well I already posted an example with source code on how to use the Pyro lib
directly. What's missing is the import of DXF and DWG, I have these but in a
different form. It might be one week of solid work to connect it all
together. Unfortunately, I have been extremely busy with some very big
customer projects in the past half year, so all the library work has
suffered from that.

I'd be interested to receive some sample DXF/DWG files from you, so I can
test if the import library can read them. My DXF/DWG import is not limited
to R12, but some shape types may be missing. It would be helpful if you
could give me a sample file with at least 1 object of each shape type you
require. I can then perhaps puzzle out how to import the missing types. Note
that DWG is a closed format, and only very little info floats around the
internet. Therefore, I cannot guarantee import to import each and every
shape. However the most common shapes are imported fine. DXF is easier,
though even that it's an open format, parameters might not make sense if you
don't know exactly what they're for.

Btw I also have an IGES import/export filter, would you be interested in
that too?

Kind regards,

Nils Haeck
www.simdesign.nl

"Andy Stephenson" <info2004 (AT) asamicros (DOT) com> schreef in bericht
news:451ba38b (AT) newsgroups (DOT) borland.com...
Quote:
Nils,

I tried and was prompted for some extra additions to the package to make
it work. I'll give it a go. What's the worst that could happen?

How are you doing with your 2D lib? I may well be interested.

I need to load a dxf file, and at run time, I need to add some simple
shapes, zoom/pan, and then change the fill/colour of the shape
programatically. Will your lib do this?

The TCAD XP codeidea guys only read R12 DXF.

...Andy


Nils Haeck wrote:
Hi Andy,

There's only one error, the rest are warnings.. what about trying to
remove the invalid compiler directive manually from the XXX_TLB.pas file?
Did you try that?

Nils

"Andy Stephenson" <info2004 (AT) asamicros (DOT) com> schreef in bericht
news:451aa2d2$1 (AT) newsgroups (DOT) borland.com...
Hi,

Has anyone used this ocx in Delphi - either D5 or 2005?

I hit a compiler directive when trying to install it, and the Bennet tec
guys aren't able to help.

The error I get is:
[Error] MetaDrawLib_TLB.pas(32): Invalid compiler directive:
'VARPROPSETTER'
[Warning] MetaDrawLib_TLB.pas(1234): Method 'SetBounds' hides virtual
method of base type 'TOleControl'
[Warning] MetaDrawLib_TLB.pas(1396): Redeclaration of 'PictureChanged'
hides a member in the base class
[Warning] MetaDrawLib_TLB.pas(1405): Redeclaration of 'Repaint' hides a
member in the base class
[Fatal Error] dclusr.dpk(37): Could not compile used unit
'..\Imports\MetaDrawLib_TLB.pas'

Thanks.

...Andy
Back to top
Nils Haeck
Guest





PostPosted: Sat Sep 30, 2006 1:18 am    Post subject: Re: MetaDraw 3 OCX Reply with quote

Quote:
I tried and was prompted for some extra additions to the package to make
it work. I'll give it a go. What's the worst that could happen?

Forgot to answer this..

Well if some properties are perhaps not imported 100% correctly it could
still mean you can use the OCX, if you just don't use these properties.

Basically, I'd try to compile the "mutilated" TLB file and if it works, just
test out how well you can work with the OCX. If you experience crashes, then
you might have to reconsider using it :)

Nils
Back to top
Andy Stephenson
Guest





PostPosted: Mon Oct 02, 2006 8:11 am    Post subject: Re: MetaDraw 3 OCX Reply with quote

Nils,

I'll get back to you on all points.

Laid up at the moment after a shoulder op.

....Andy
Nils Haeck wrote:
Quote:
I tried and was prompted for some extra additions to the package to make
it work. I'll give it a go. What's the worst that could happen?

Forgot to answer this..

Well if some properties are perhaps not imported 100% correctly it could
still mean you can use the OCX, if you just don't use these properties.

Basically, I'd try to compile the "mutilated" TLB file and if it works, just
test out how well you can work with the OCX. If you experience crashes, then
you might have to reconsider using it :)

Nils

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.