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
 Textlayer and miRotateLayers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Aug 30 2017 :  09:53:09  Show Profile  Reply
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

xequte

39053 Posts

Posted - Aug 30 2017 :  17:55:37  Show Profile  Reply
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
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 05 2017 :  04:09:31  Show Profile  Reply
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
Go to Top of Page

xequte

39053 Posts

Posted - Sep 05 2017 :  23:09:17  Show Profile  Reply
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
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 08 2017 :  17:45:42  Show Profile  Reply
Hi Nigel,
tank you for the tip.
This is helpful.
Klaus

Klaus
www.klausdoege.de
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: