Question
Please give me the example of how to use the OnPreCursorChangeEvent to change the cursor…..
Actually i want to change the cursor while resizing the stop value of time item. bydefault it shows sizeWE cursor while resizing the stop value of the time item. i want to show my own cursor while resizing the stop value of timeitem
Answer
To do this you implement the event Gantt.TimeItemArea.OnPreCursorChangeEvent (Do this in code).
You can change the cursor based on the Gantt.MouseMoveKind value
gantt1.TimeItemArea.OnPreCursorChangeEvent += new PreCursorChangeEvent(TimeItemArea_OnPreCursorChangeEvent);
void TimeItemArea_OnPreCursorChangeEvent(OffscreenDraw aOffscreenDraw, PreCursorChangeEventArgs e)
{
if (gantt1.MouseMoveKind==MouseMoveKind.resizee)
{
e.Cursor=Cursors.Cross;
}
}