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
 ImageEnMView can't change the DefaultBottomText, and always shows iedtFileName

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
Sybren Posted - Apr 06 2022 : 14:08:58
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
2   L A T E S T    R E P L I E S    (Newest First)
Sybren Posted - Apr 07 2022 : 03:54:48
Thanks Nigel. Works like a charm.
Sybren
xequte Posted - Apr 06 2022 : 18:23:29
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