ImageEn, unit iemview

TImageEnMView.OnSelectionChanged

TImageEnMView.OnSelectionChanged


Declaration

property OnSelectionChanged: TNotifyEvent;


Description

Occurs after any change of selection. It is useful to display the selection status.
Unlike OnSelectionChanging this event occurs for programmatic changes as well as user action (i.e. mouse or keyboard).
Also, OnSelectionChanging occurs during the selection process, whereas OnSelectionChanged occurs after the change (so the selection index and count will be valid).


Example

procedure TMainForm.ImageEnMView1SelectionChanged(Sender: TObject);
begin
  StatusBar.Caption := Format( 'Image #%d (Selected %d of %d)', [ ImageEnMView1.SelectedImage + 1, ImageEnMView1.MultiSelectedImagesCount, ImageEnMView1.ImageCount ]);
end;