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!

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


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

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

This can be specified using TextMargin:

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

Xequte Software
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

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).

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

Xequte Software