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
 Textlayer and miRotateLayers

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
klausdoege Posted - Aug 30 2017 : 09:53:09
Hi,
when i use the Textleyer and set ImageEnView1.MouseInteract := [miRotateLayers],
Then i can't correct see the text when not autosize = true.
Left the nomal text without autosize, down normal without autosize but rotate.
Right text with autosize an rotate.
Could not you display the text while rotating so when autosize is turned on?

See Picture


Klaus
www.klausdoege.de
4   L A T E S T    R E P L I E S    (Newest First)
klausdoege Posted - Sep 08 2017 : 17:45:42
Hi Nigel,
tank you for the tip.
This is helpful.
Klaus

Klaus
www.klausdoege.de
xequte Posted - Sep 05 2017 : 23:09:17
Hi Klaus

You should be able to do this using the LayerNotify event:

procedure TMainForm.ImageEnView1LayerNotify(Sender: TObject; layer: Integer;
    event: TIELayerEvent);
begin
  // Auto-size text only after rotation
  if ( ImageEnView1.Layers[ layer ] is TIETextLayer ) and ( event is ielRotated ) then
  begin
    TIETextLayer( ImageEnView1.Layers[ layer ]).SizeToText();
    ImageEnView1.Update();
  end;
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
klausdoege Posted - Sep 05 2017 : 04:09:31
Hello Nigel,
I think the following is better.
If autosize is off, and I change the angle, then still should be the entire text to be seen. Not as now, be cut off.
So while changing the angle, autosize turn on.
best regards
Klaus

Klaus
www.klausdoege.de
xequte Posted - Aug 30 2017 : 17:55:37
Hi Klaus

Am I misunderstanding, or are you wanting it to auto-size when you turn off autosize?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com