Unit 'MUIClass.List' Package
[Overview][Types][Classes][Index] [#MUIClass]

TMUIList.OnMultiTest

Check if an Entry can be selected in a multiselection

Declaration

Source position: MUIClass.List.pas line 131

published property TMUIList.OnMultiTest : TMultiTestEvent
  read FOnMultiTest
  write SetOnMultiTest;

Description

If you plan to have a multi selecting list but not all of your entries are actually multi selectable (e.g. in a file requester), you can connect the OnMultiTest event.

Return True if the entry is multi selectable, False otherwise.

Example:

function TMyWindow.MultiTestEvent(Sender: Objecty: PChar): Boolean;
var
  fib: PFileInfoBlock;
begin
  Result := True;
  if Assigned(Entry) then
  begin
    fib := PFileInfoBlock(Entry);
    Result := fib^.fib_DirEntryType < 0;
  end;
end;

Documentation generated on: 2024-11-21