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
 ImageEnMView. How to show all text withou cutting

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
graph_man Posted - Aug 23 2017 : 12:31:42
If filename is long I see "longfilename..."
Is ability to show All file name using several strings?

longfilename-end
filename.ext
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Aug 24 2017 : 20:07:15
Hi

You can use the ImageInfoText, ImageBottomText properties to get two lines.

For example:

ImageEnMView1.DefaultImageInfoText := iedtFilename;
ImageEnMView1.DefaultImageBottomText := iedtFilename;

// Display the file index above the frame
procedure TForm1.IEFolderMViewGetText(Sender: TObject; Index: Integer; Position: TIEMTextPos; var Text: WideString);
begin
  if Position = iemtpInfo then
  begin
    // Show first 20 chars of filename
    if Length( Text ) > 20 then
    begin
      SetLength( Text, 20 );
      Text := Text + '...';
  end
  else
  if Position = iemtpBottom then
  begin
    // Show second 20 chars of filename
    if Length( Text ) > 20 then
    begin
      Delete( Text, 1, 20 );
      Text := '...' + Text;
  end;
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
graph_man Posted - Aug 24 2017 : 10:34:47
But how to create a multi-line text under thumbnail?
xequte Posted - Aug 23 2017 : 22:39:20
In TImageEnMView? It is not handled automatically, but you could split text across two lines using the OnGetText event:

https://www.imageen.com/help/TImageEnMView.OnGetText.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com