ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 LayersAdd(ielkText) doesn't compile
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

80 Posts

Posted - Sep 12 2021 :  08:52:41  Show Profile  Reply
Hi,

the following code creates correctly a TextLayer:

ImageEnView1.LayersAdd('Double-click to edit Text', 40, clBlack, 'Arial', [], 0, 0);


meanwhile the following doesn't compile generating the error "There is no overload version of "LayersAdd' that can be called with these arguments."

ImageEnView1.LayersAdd(ielkText);


I remember that I used the second, short version in the past. What am I missing?

Al

xequte

6332 Posts

Posted - Sep 12 2021 :  16:41:08  Show Profile  Reply
Hi Al

That should certainly work (and does when I test it here). What version of Delphi are you using?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

aleatprog

80 Posts

Posted - Sep 12 2021 :  16:46:32  Show Profile  Reply
Delphi 10.3 and ImageEn 10.1.0
Go to Top of Page

xequte

6332 Posts

Posted - Sep 13 2021 :  16:47:37  Show Profile  Reply
Hi Al

I cannot see a good reason for that (assuming ielkText is not a type that you define somewhere in your own code).



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

aleatprog

80 Posts

Posted - Sep 14 2021 :  04:44:41  Show Profile  Reply
Hi Nigel,

I created a new project with only ImageEnView1.LayersAdd(ielkText) and it works, so the problem is inside the specific Delphi project I'm working on. I'll investigate and let you know.

Al
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: