Back to Devexpress

TdxGanttControlTaskEndMoveEvent Type

vcl-dxganttcontrolviewchart-78db78d2.md

latest1.7 KB
Original Source

TdxGanttControlTaskEndMoveEvent Type

Performs a set of actions in response to task movement completion.

Declaration

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

Parameters

NameTypeDescription
SenderTObject

The Chart View that raised the event.

| | ATask | TdxGanttControlTask |

The moved task.

|

Remarks

You can open the Features Demo and modify its code. Handle the OnTaskEndMove event and use the following code snippet to display the message that shows the rearranged task’s new start date:

delphi
procedure TFeaturesDemoMainForm.GanttControlViewChartTaskEndMove(Sender: TObject;
  ATask: TdxGanttControlTask);
begin
  ShowMessage('The "' + ATask.Name + '" task starts on ' + DateTimeToStr(ATask.Start) + 'now');
end;
cpp
void __fastcall TFeaturesDemoMainForm::GanttControlViewChartTaskEndMove(TObject *Sender,
          TdxGanttControlTask *ATask)
{
  ShowMessage("The '" + ATask->Name + "' task starts on " + DateTimeToStr(ATask->Start) + " now");
}

See Also

TdxGanttControlTaskStartMoveEvent

TdxGanttControlTaskMoveEvent

dxGanttControlViewChart Unit