Back to Devexpress

TdxGanttControlTaskEndCreateEvent Type

vcl-dxganttcontrolviewchart-b1c4d81f.md

latest1.6 KB
Original Source

TdxGanttControlTaskEndCreateEvent Type

Performs a set of actions when task creation (with the mouse) is completed.

Declaration

delphi
TdxGanttControlTaskEndCreateEvent = procedure(Sender: TObject; ATask: TdxGanttControlTask) of object;

Parameters

NameTypeDescription
SenderTObject

The Chart View that raised the event.

| | ATask | TdxGanttControlTask |

The created task.

|

Remarks

You can open the Features Demo and modify its code. Handle the OnTaskEndCreate event and use the following code snippet to display the message that a task is created:

delphi
procedure TFeaturesDemoMainForm.GanttControlViewChartTaskEndCreate(Sender: TObject;
  ATask: TdxGanttControlTask);
begin
  ShowMessage('The new task is created');
end;
cpp
void __fastcall TFeaturesDemoMainForm::GanttControlViewChartTaskEndCreate(TObject *Sender,
          TdxGanttControlTask *ATask)
{
  ShowMessage("The new task is created");
}

See Also

TdxGanttControlTaskStartCreateEvent

TdxGanttControlTaskCreateEvent

dxGanttControlViewChart Unit