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
 Suggestion: TIEMetaListView.CollapseGroups/ExpandGroups etc.

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 19 2022 : 07:01:21
Using this HACK, I managed to collapse the TIEMetaListView Groups:

type
  TMyIEMetaListView = class(TIEMetaListView);

  IEMetaListViewImage.Items.BeginUpdate;
  try
    for var i := 0 to TMyIEMetaListView(IEMetaListViewImage).Groups.Count - 1 do
      TMyIEMetaListView(IEMetaListViewImage).Groups[i].State :=
        TMyIEMetaListView(IEMetaListViewImage).Groups[i].State + [lgsCollapsed];
  finally
    IEMetaListViewImage.Items.EndUpdate;
  end;


In this way, in my app I can toggle between expanded and collapsed metadata Groups:
https://www.screencast.com/t/szS0aDGZr8hj
https://www.screencast.com/t/NQuVGwP4Elz

1. Please implement TIEMetaListView.CollapseGroups/ExpandGroups methods

2. Please implement user click on Group headers to expand/collapse a single Group

3. Please mark Headers of Groups containing fields with metadata (e.g., with a specific icon or with an asterisk)
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Dec 20 2022 : 00:12:17
Hi

I have added all these features to the latest beta.

Note: You will need to use the OnGetHeadingText event to mark headers...

procedure TMainForm.IEMetaListGetHeadingText(Sender: TObject; MetaType: TIEMetaType; var Title: string; var Skip: Boolean);
begin
  // Add asterisk to the title if the file contains that type
  if IEContainsMetaData( ImageEnView1.IO.Params, MetaType ) then
    Title := Title + '*';
end;


Nigel
Xequte Software
www.imageen.com