(1) If there are different bars/tasks of the GANTT chart connected among them, when I reposition or resize a bar, the other connected bars are not repositioned automatically. If I move a bar that represents a task to perform until its end finish after the start of the following task to perform, that the following tasks are not repositioned automatically to start just in the end of the prevoius task. This automatic repositioning is possible to perform with the component?
(2) I need to show a popup menu when press rightclick mouse button on a concrete bar. The problem is that, when select a menu item, the bar is repositioned while moves the mouse pointer, and it's necessary to click again to finish the repositioning.
I try to avoid this bad functionality deactivating drag and resize, but without success. I show you an example:
Code: Select all
procedure TForm1.SerieGanttClick(Sender: TChartSeries; ValueIndex: Integer;
Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
if Button = mbRight then
begin
Gantt.AllowDrag := False;
Gantt.AllowResize := False;
Try
PopupMenu.PopUp(X, Y + 100);
Finally
Gantt.AllowDrag := True;
Gantt.AllowResize := True;
End;
end;
end;
It is possible to deactivate this funcionality when show a popup menu and select an item without the repositioning problem?
Regards
Jose