Check if an Entry can be selected in a multiselection
Source position: MUIClass.List.pas line 131
published property TMUIList.OnMultiTest : TMultiTestEvent |
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;