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

TCustomControlFilterEdit.IdleConnected

Indicates if OnIdle has been connected to the Application singleton.

Declaration

Source position: editbtn.pas line 276

public property TCustomControlFilterEdit.IdleConnected : Boolean
  read fIdleConnected
  write SetIdleConnected;

Description

IdleConnected is a Boolean property which indicates if the OnIdle event handler in the class instance has been connected to the Application singleton. When set to True, the Filter in the control will be applied when the application is in an idle state.

Changing the value in the property causes the Application singleton to be updated by calling either the AddOnIdleHandler or the RemoveOnIdleHandler method. The address for the OnIdle method in the class is passed as an argument.

IdleConnected is set to True in the InvalidateFilter method.

IdleConnected is set to False in the OnIdle method after the Filter has been applied for the control.

The default value for the property is False.

See also

TCustomControlFilterEdit.Filter

  

The textual representation for the filter.

TCustomControlFilterEdit.InvalidateFilter

  

Should be called when data was changed and it must be filtered again.

TCustomControlFilterEdit.ApplyFilter

  

Filters the data and updates the container.

Application

  

The TApplication singleton.

TApplication

  

Application management and configuration for a GUI application.

TApplication.AddOnIdleHandler

  

Adds an application Idle handler to the list of handlers for the type.

TApplication.RemoveOnIdleHandler

  

Removes an application Idle handler for the list of handlers for the type.