Back to Devexpress

TdxGanttControlTaskEndResizeEvent Type

vcl-dxganttcontrolviewchart-f4eef491.md

latest1.7 KB
Original Source

TdxGanttControlTaskEndResizeEvent Type

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

Declaration

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

Parameters

NameTypeDescription
SenderTObject

The Chart View that raised the event.

| | ATask | TdxGanttControlTask |

The resized task.

|

Remarks

You can open the Features Demo and modify its code. Handle the OnTaskEndResize event and use the following code snippet to display a message that notifies a user of the task’s new finish date:

delphi
procedure TFeaturesDemoMainForm.GanttControlViewChartEndResizeTask(Sender: TObject; ATask: TdxGanttControlTask);
begin
  ShowMessage('The '' + ATask.Name + '' task''s finish date is changed to ' + DateTimeToStr(ATask.Start));
end;
cpp
void __fastcall TFeaturesDemoMainForm::GanttControlViewChartTaskEndResize(TObject *Sender,
          TdxGanttControlTask *ATask)
{
  ShowMessage("The '" + ATask->Name + "' task's finish date is changed to " + DateTimeToStr(ATask->Start));
}

See Also

TdxGanttControlTaskStartResizeEvent

TdxGanttControlTaskResizeEvent

dxGanttControlViewChart Unit