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
 TImageEnMView top and bottom info text
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - Mar 04 2018 :  06:38:44  Show Profile  Reply
Is there a way to customize the top and bottom info text arbitrarily? I am manually inserting images using insertImageEx, but it seems like it only takes text from those pre-defined categories like file size, dimensions, etc.

Thanks

Andy

w2m

USA
1990 Posts

Posted - Mar 04 2018 :  10:11:59  Show Profile  Reply
The text can be set to whatever you want it to be:
procedure TForm1.Open1Click(Sender: TObject);
var
  i: Integer;
  iFilename: string;
begin
  if OpenPictureDialog1.Execute then
  begin
    Screen.Cursor := crHourGlass;
    try
      for i := 0 to OpenPictureDialog1.Files.Count - 1 do
      begin
        iFilename := OpenPictureDialog1.Files[i];
        if FileExists(iFilename) then
        begin
          ImageEnMView1.AppendImage(iFilename);
          ImageEnMView1.ImageTopText[i] := iFilename;
          ImageEnMView1.ImageBottomText[i] := JustName(iFilename);
        end;
      end;
      ImageEnMView1.SelectedImage := 0;
    finally
      Screen.Cursor := crDefault;
    end;
  end;
  StatusBar1.Panels[2].Text := 'Pictures: ' +
    IntToStr(ImageEnMView1.ImageCount);
end;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

39053 Posts

Posted - Mar 04 2018 :  14:02:51  Show Profile  Reply
You can also set it on-the-fly using the OnGetText event:

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


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

AndyColmes

USA
351 Posts

Posted - Mar 18 2018 :  12:20:37  Show Profile  Reply
Thanks Bill and Nigel. Both solutions helped a lot.

Andy
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: