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
 Set margins for ImageInfoText

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
Saeid2019 Posted - Nov 12 2023 : 07:42:01
Hello,

Like RightGap, LeftGap is it possible to set left margin and right margin for ImageInfoText?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 14 2023 : 21:18:48
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
Saeid2019 Posted - Nov 14 2023 : 08:44:40
Thank you.

Another question: how to set bottom margin for ImageBottomText?
xequte Posted - Nov 12 2023 : 18:53:03
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