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
 ImageEnMView. How to show all text withou cutting
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graph_man

326 Posts

Posted - Aug 23 2017 :  12:31:42  Show Profile  Reply
If filename is long I see "longfilename..."
Is ability to show All file name using several strings?

longfilename-end
filename.ext

xequte

38222 Posts

Posted - Aug 23 2017 :  22:39:20  Show Profile  Reply
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
Go to Top of Page

graph_man

326 Posts

Posted - Aug 24 2017 :  10:34:47  Show Profile  Reply
But how to create a multi-line text under thumbnail?
Go to Top of Page

xequte

38222 Posts

Posted - Aug 24 2017 :  20:07:15  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: