[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TSelectionChangeEvent

Specifies an event handler for change notifications from a list box control.

Declaration

Source position: stdctrls.pp line 528

type TSelectionChangeEvent = procedure(

  Sender: TObject;

  User: Boolean

) of object;

Arguments

Sender

  

The list box control for the notification.

User

  

True if the user changed the selection, False if changed by code.

Description

TSelectionChangeEvent is an object procedure type which specifies an event handler signalled when the select is changed in a list box control. Arguments passed to the handler identify the list box control, and the origin of the change notification.

TSelectionChangeEvent is the type used to implement the OnSelectionChange property in TCustomListBox. The application must implement and assign an object procedure using the signature for the handler to respond to the event notification.


Version 3.2 Generated 2024-02-25 Home