DateTimePicker.addOnFormatQuery

Overview | Methods | This Package | All Packages

DateTimePicker.addOnFormatQuery

Assigns a delegate to the formatQuery event.

Syntax

public final void addOnFormatQuery( DateTimeFormatQueryEventHandler value )

Parameters

value

The DateTimeFormatQueryEventHandler delegate to be notified when the event occurs.

Remarks

Passing an event handler as a parameter to this method is equivalent to setting the formatQuery event to that method in the Properties window. The formatQuery event occurs when the DateTimePicker control needs to determine the dimensions of the string that would be displayed for a specified date and time value.

See Also   removeOnFormatQuery