Skip to main content

cxShowGoToDateDialog(TcxCustomScheduler,TcxLookAndFeel,TDateTime,TcxSchedulerViewMode) Method

Invokes the Go To Date dialog for the specified scheduler.

Declaration

function cxShowGoToDateDialog(AScheduler: TcxCustomScheduler; ALookAndFeel: TcxLookAndFeel; var ADate: TDateTime; out AViewMode: TcxSchedulerViewMode): Boolean;

Parameters

Name Type
AScheduler TcxCustomScheduler
ALookAndFeel TcxLookAndFeel
ADate TDateTime
AViewMode TcxSchedulerViewMode

Returns

Type
Boolean

Remarks

The Go To Date dialog allows an end-user to display a specific date in the scheduling area and (optionally) switch its view mode:

{Image}

The cxShowGoToDateDialog global function returns True if an end-user closes the Go To Date dialog by clicking the OK button; otherwise – False.

The AScheduler parameter specifies a Scheduler control instance for which the dialog is invoked.

The ALookAndFeel parameter specifies the look and feel settings of the displayed dialog.

The ADate and AViewMode parameters return the date and view mode specified in the dialog, respectively. For detailed information on view modes available for the scheduling area, refer to the TcxSchedulerViewMode type description.

If you need to programmatically display a specific date within the Date Navigator and/or scheduling area, call the scheduler’s GoToDate function.

To allow an end-user to invoke the Go To Date dialog, you can link the GoToDate command to a UI element in your application.

See Also