event ChartEndChanging (Operation as BarOperationEnum)
Occurs when the chart is about to be changed.

 TypeDescription 
   Operation as BarOperationEnum A BarOperationEnum expression that specifies the operation that ends  
The ChartEndChanging event notifies your application once the user ends resizing or moving a bar at runtime using the mouse. The ChartStartChanging event occurs once the operation beings. The ChartEndChaning event is fired in the following cases:

Syntax for ChartEndChanging event, /NET version, on:

private void ChartEndChanging(object sender,exontrol.EXG2ANTTLib.BarOperationEnum Operation)
{
}

Private Sub ChartEndChanging(ByVal sender As System.Object,ByVal Operation As exontrol.EXG2ANTTLib.BarOperationEnum) Handles ChartEndChanging
End Sub

Syntax for ChartEndChanging event, /COM version, on:

private void ChartEndChanging(object sender, AxEXG2ANTTLib._IG2anttEvents_ChartEndChangingEvent e)
{
}

void OnChartEndChanging(long Operation)
{
}

void __fastcall ChartEndChanging(TObject *Sender,Exg2anttlib_tlb::BarOperationEnum Operation)
{
}

procedure ChartEndChanging(ASender: TObject; Operation : BarOperationEnum);
begin
end;

procedure ChartEndChanging(sender: System.Object; e: AxEXG2ANTTLib._IG2anttEvents_ChartEndChangingEvent);
begin
end;

begin event ChartEndChanging(long Operation)
end event ChartEndChanging

Private Sub ChartEndChanging(ByVal sender As System.Object, ByVal e As AxEXG2ANTTLib._IG2anttEvents_ChartEndChangingEvent) Handles ChartEndChanging
End Sub

Private Sub ChartEndChanging(ByVal Operation As EXG2ANTTLibCtl.BarOperationEnum)
End Sub

Private Sub ChartEndChanging(ByVal Operation As Long)
End Sub

LPARAMETERS Operation

PROCEDURE OnChartEndChanging(oG2antt,Operation)
RETURN

Syntax for ChartEndChanging event, /COM version (others), on:

<SCRIPT EVENT="ChartEndChanging(Operation)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function ChartEndChanging(Operation)
End Function
</SCRIPT>

Procedure OnComChartEndChanging OLEBarOperationEnum llOperation
	Forward Send OnComChartEndChanging llOperation
End_Procedure

METHOD OCX_ChartEndChanging(Operation) CLASS MainDialog
RETURN NIL

void onEvent_ChartEndChanging(int _Operation)
{
}

function ChartEndChanging as v (Operation as OLE::Exontrol.G2antt.1::BarOperationEnum)
end function

function nativeObject_ChartEndChanging(Operation)
return

For instance, you can use the ChartStartChanging event to shows the grid lines while resizing, and use the ChartEndChaning to hide the grid lines.

Use the StartBlockUndoRedo / EndBlockUndoRedo methods to collect the user operations as a block, so next time the Undo/Redo operation is performed, the entire block of operations is performed or restored at once. For instance, if you have a bar related to several other bars, and so moving a bar implies moving several other bars, each moving is recorded as a single undo/redo operation, so the operations are restored once at the time. Instead, if you use the StartBlockUndoRedo / EndBlockUndoRedo methods when your operation starts / ends, the collection of operations is recorded as a block of instructions, so the next time Undo operation is called the entire block is restored or performed at once.


Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.