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
 TImageEnMView.Filter on Thumbnail.TopText, InfoText, BottomText?

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
PeterPanino Posted - Dec 22 2022 : 10:06:56
It seems that TImageEnMView.Filter works only on FILENAMES?

I need to filter images that were not added from files but from Bitmaps and have meaningful names on Thumbnail.TopText, InfoText, BottomText added by user-context.

So how can I filter on thumbnail text?
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 26 2022 : 16:09:03
Hi

In the beta, you can use ImageGetDisplayText() which will normalize any default values, e.g.

ImageEnMView.ImageGetDisplayText( Index, iesbTopText );

Nigel
Xequte Software
www.imageen.com
PeterPanino Posted - Dec 26 2022 : 08:44:17
Hi Nigel

In the meantime (I'm back to my computer), I've implemented my own "SIMPLE UNIVERSAL MULTI-IMAGES FILTER" by using the OnFilter event handler:

procedure TformMain.ImageEnMViewMultiImagesFilter(Sender: TObject; Index:
    Integer; const Filename: string; var ShowFrame: Boolean);
begin
  if cxButtonEditMultiImagesFilter.Text <> '' then
  begin
    ShowFrame :=
      ContainsText(ImageEnMViewMultiImages.ImageTopText[Index], cxButtonEditMultiImagesFilter.Text) or
      ContainsText(ImageEnMViewMultiImages.ImageInfoText[Index], cxButtonEditMultiImagesFilter.Text) or
      ContainsText(ImageEnMViewMultiImages.ImageBottomText[Index], cxButtonEditMultiImagesFilter.Text) or
      ContainsText(Filename, cxButtonEditMultiImagesFilter.Text);
  end;
end;


It works well. What do you think? Could it be improved?

UPDATE: There is only thing that does not work: When the Thumbnail-Text has been inserted with the ImageEnMView Default Properties (e.g. DefaultBottomText) then it cannot be filtered in this way! For example:

https://app.screencast.com/mgywFOsjM3yXv
xequte Posted - Dec 22 2022 : 21:54:24
Hi Peter

Email me for an update that allows filtering by other fields, including text, size and date fields.

Nigel
Xequte Software
www.imageen.com