Back to Devexpress

TdxGanttControlTaskPercentCompleteEndChangeEvent Type

vcl-dxganttcontrolviewchart-d9310515.md

latest2.1 KB
Original Source

TdxGanttControlTaskPercentCompleteEndChangeEvent Type

Performs a set of actions in response to a task progress percentage change (with the mouse) in the chart.

Declaration

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

Parameters

NameTypeDescription
SenderTObject

The Chart View that raised the event.

| | ATask | TdxGanttControlTask |

The task whose progress is changed with a mouse drag-and-drop operation.

|

Remarks

You can open the Features Demo and modify its code. Handle the OnPercentCompleteEndChange event and use the following code snippet to show the message that notifies a user of a task’s completion percentage change:

delphi
procedure TFeaturesDemoMainForm.GanttControlViewChartEndChangePercentComplete(Sender: TObject; ATask: TdxGanttControlTask);
begin
  ShowMessage('Now the ''' + ATask.Name + ''' task''s progress is now ' + IntToStr(ATask.PercentComplete) + '%');
end;
cpp
void __fastcall TFeaturesDemoMainForm::GanttControlViewChartPercentCompleteEndChange(TObject *Sender,
          TdxGanttControlTask *ATask)
{
  ShowMessage("Now the '" + ATask->Name + "' task's progress is now " + IntToStr(ATask->PercentComplete) + "%");
}

See Also

TdxGanttControlTaskPercentCompleteStartChangeEvent

TdxGanttControlTaskPercentCompleteChangeEvent

dxGanttControlViewChart Unit