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
 Set margins for ImageInfoText
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Saeid2019

7 Posts

Posted - Nov 12 2023 :  07:42:01  Show Profile  Reply
Hello,

Like RightGap, LeftGap is it possible to set left margin and right margin for ImageInfoText?

xequte

38682 Posts

Posted - Nov 12 2023 :  18:53:03  Show Profile  Reply
Hi

No, it just fills available space within the thumbnail.

However you can use the OnGetTextEx event to change the text that is output (e.g. shorten it to fit a smaller area and add ellipses).

http://www.imageen.com/help/TImageEnMView.OnGetTextEx.html

// Make text no wider than half the thumbnail width
procedure TForm1.ImageEnMViewGetText(Sender: TObject; Index: Integer; Position: TIEMTextPos; var Text: WideString);
begin
  Text := IETruncateStr( Text, TruncSide, ImageEnMView1.GetCanvas, ImageEnMView1.ThumbWidth div 2 );
end;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Saeid2019

7 Posts

Posted - Nov 14 2023 :  08:44:40  Show Profile  Reply
Thank you.

Another question: how to set bottom margin for ImageBottomText?
Go to Top of Page

xequte

38682 Posts

Posted - Nov 14 2023 :  21:18:48  Show Profile  Reply
Hi

This can be specified using TextMargin:

http://www.imageen.com/help/TImageEnMView.TextMargin.html


Also the space between the text and the image is set with BottomGap:

http://www.imageen.com/help/TImageEnMView.BottomGap.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: