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
 TImageEnMView.Filter on Thumbnail.TopText, InfoText, BottomText?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

864 Posts

Posted - Dec 22 2022 :  10:06:56  Show Profile  Reply
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?

xequte

38222 Posts

Posted - Dec 22 2022 :  21:54:24  Show Profile  Reply
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
Go to Top of Page

PeterPanino

864 Posts

Posted - Dec 26 2022 :  08:44:17  Show Profile  Reply
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
Go to Top of Page

xequte

38222 Posts

Posted - Dec 26 2022 :  16:09:03  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: