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 can't change the DefaultBottomText, and always shows iedtFileName
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Sybren

32 Posts

Posted - Apr 06 2022 :  14:08:58  Show Profile  Reply
I'm using the ImageEnMView quite a bit and I just discovered that I can't change the DefaultBottomText any more. The bottom text is always set to the iedtFilename.
To this purpose I've written a most simple application to see what's going on. This test app confirmed that I can change the DefaultTopText both in design mode and in runtime, but whatever I try, I can't seem to change the DefaultBottomText (design nor runtime). Attached the test app code with the .pas, .dfm and the .dpr/.dproj files. The test app uses all the default component parameters to allow anyone who wants to replicate my effort.

I hope to understand what I'm doing wrong, or perhaps there is another explanation?

Thanks for any response that helps me understand and solve the issue,

Sybren

Rio 10.3.3, Win7/10
ImageEn 10.3.0

attach/Sybren/202246135720_mview_error_bottomtext.zip
6.22 KB

xequte

38610 Posts

Posted - Apr 06 2022 :  18:23:29  Show Profile  Reply
Hi Sybren

Setting ImageEnMView1.DefaultBottomText only changes the default text value, i.e. for thumbnails that don't have text.

However the default behavior for FillFromDirectory() is to fill bottom text with the filename.

You should specify iedtNone for the text props when filling and then assign the default values:

ImageEnMView1.FillFromDirectory( DirectoryListBox1.Directory, iefAllImages, '', True, iedtNone, iedtNone, iedtNone );
ImageEnMView1.DefaultTopText    := iedtFilename;
ImageEnMView1.DefaultInfoText   := iedtNone;
ImageEnMView1.DefaultBottomText := iedtImageDimAndSize;


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

Sybren

32 Posts

Posted - Apr 07 2022 :  03:54:48  Show Profile  Reply
Thanks Nigel. Works like a charm.
Sybren
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: