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
 TIELineLayer LabelText

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
c.basso Posted - May 21 2020 : 05:52:45
Hi,
I'm setting the LabelText for a line layer:
TIELineLayer(Layers[idx1]).LabelText:= 'My label text'
TIELineLayer(Layers[idx1]).LabelPosition:= ielpAbove;
TIELineLayer(Layers[idx1]).TextOverflow:= ieoShrink;
ImageEnView.Update;

But after that,
only the first part of label is shown (ex. "My la"),
the text appear truncated.
I've tryed to use lockupdate/unlockupdate lockpaint/unlockpaint,
but always same issue,
i'm unable to set a label text with more that 5-6 characters.

If I add some fake text suffix, example
TIELineLayer(Layers[idx1]).LabelText:= 'My label text' + '. .'

The first part ('My label text') is shown.



Claudio
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 05 2020 : 02:45:07
Sorry Claudio, I missed that earlier. I have found the issue. Please email me for a fixed version.


Nigel
Xequte Software
www.imageen.com
c.basso Posted - Jun 04 2020 : 04:38:54
Hi,
I've made a lot of tests,
finally I've find the way to reproduce.
The trick is the zoom. If you set zoom to 50%, and you resize a LineLayer, label is not resized correctly.

Here a sample project (https://easyupload.io/daxvog).
1. Create a line layer
2. Set zoom to 50%
3. Resize line layer



Claudio
xequte Posted - Jun 01 2020 : 00:26:51
Sorry, I cannot reproduce that. Do you see it in any of our demos? If so, please give me the exact steps to take.



Nigel
Xequte Software
www.imageen.com
c.basso Posted - May 22 2020 : 03:02:31
Hi,
yes, I'm using latest version,
try with an inclined line,
with horiz or vert line it's ok.
I think that the problem is that the label goes wordwrap,
and text is not resized to fit.

See screenshot here: https://file.io/qpCaSKRa

Claudio
xequte Posted - May 21 2020 : 22:29:49
Hi Claudio

Is this in 9.0.0? I cannot reproduce that using the following, can you give me more information?


ImageEnView1.LayersAdd( Point( 100, 100), Point( 200, 200 ));
TIELineLayer(ImageEnView1.CurrentLayer).LabelText:= 'My label text';
TIELineLayer(ImageEnView1.CurrentLayer).LabelPosition:= ielpAbove;
TIELineLayer(ImageEnView1.CurrentLayer).TextOverflow:= ieoShrink;
TIELineLayer(ImageEnView1.CurrentLayer).LabelFont.Size := 30;
ImageEnView1.Update;


Nigel
Xequte Software
www.imageen.com