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
 SetStyleEx

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
jenswahl Posted - Apr 05 2017 : 05:23:10
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
5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 06 2017 : 23:08:27
Hi

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


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
jenswahl Posted - Apr 06 2017 : 03:25:12
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
xequte Posted - Apr 06 2017 : 02:07:06
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
jenswahl Posted - Apr 06 2017 : 01:30:30
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
xequte Posted - Apr 05 2017 : 20:05:20
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