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
 SetStyleEx
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jenswahl

Germany
71 Posts

Posted - Apr 05 2017 :  05:23:10  Show Profile  Reply
Hello,

if I set for a TImageEnMView:

iemvPDFImg.SetStyleEx(iemsColumns, iedtFileName, iedtImageDimAndSize, iedtFileCreateDate);


then I will get the following (see image):



I wanted Filename, DimAndSize and CreateDate but I get two times the filename.
I tried it in a lot of other constellations, all times the same.
What have I to change?

Kind Regards

Jens

xequte

38611 Posts

Posted - Apr 05 2017 :  20:05:20  Show Profile  Reply
Hi Jens

I expect you have already set the Bottom text to the filename, so iedtFileCreateDate is ignored.

Try

procedure TMainForm.Button1Click(Sender: TObject);
var
  I: Integer;
begin
  for I := 0 to ImageEnMView1.ImageCount - 1 do
    ImageEnMView1.ImageBottomText[ i ] := '' ;
  ImageEnMView1.SetStyleEx(iemsColumns, iedtFileName, iedtImageDimAndSize, iedtFileCreateDate);
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jenswahl

Germany
71 Posts

Posted - Apr 06 2017 :  01:30:30  Show Profile  Reply
Hello Nigel,

thank you, it was one part of the solution. The other was that I firstly loaded the images AFTER calling SetStyleEx. If I first load the images and than call SetStyleEx it works perfectly.

Kind Regards

Jens
Go to Top of Page

xequte

38611 Posts

Posted - Apr 06 2017 :  02:07:06  Show Profile  Reply
Hi Jens

I assume you are using the FillFromDirectory method? If you don't see the relevant parameter it will automatically set ImageBottomText

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jenswahl

Germany
71 Posts

Posted - Apr 06 2017 :  03:25:12  Show Profile  Reply
Hello Nigel,

no, I use (because I have a stringlist with filenames)

iemvPDFImg.MIO.LoadFromFiles(sFilenames);

where sFilenames is:

iCount := slImgList.Count;
sFilenames := slImgList[0];
Dec(iCount);
for iLoop := 1 to iCount do begin
   sFilenames := sFilenames + '|' + slImgList[iLoop];
end;

But it works now.Thank you.

Kind Regards,

Jens
Go to Top of Page

xequte

38611 Posts

Posted - Apr 06 2017 :  23:08:27  Show Profile  Reply
Hi

Yes, unfortunately that also sets ImageBottomText (for historical reasons).


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: