Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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?
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;
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