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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 LayersAdd(ielkText) doesn't compile

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
aleatprog Posted - Sep 12 2021 : 08:52:41
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
6   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 06 2021 : 16:53:30
Thanks for the update, Al

Nigel
Xequte Software
www.imageen.com
aleatprog Posted - Oct 05 2021 : 08:23:00
Hi Nigel,

your thought was right, the string ielkText was erroneaously passed as object variable. Once corrected, ImageEnView1.LayersAdd(ielkText) works perfectly as usual.

Al
aleatprog Posted - Sep 14 2021 : 04:44:41
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
xequte Posted - Sep 13 2021 : 16:47:37
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
aleatprog Posted - Sep 12 2021 : 16:46:32
Delphi 10.3 and ImageEn 10.1.0
xequte Posted - Sep 12 2021 : 16:41:08
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