Katalogerna
PlexityHide

Home 

Products 

Downloads 

Our Shop 

Support 

Contact 


GTP.NET FAQ 10820


How to use the OnPreCursorChangeEvent to change the cursor..... Please note that this article refers to the GTP.NET
Jump to article- 2007-02-22 20:30:00 - Email plexityHide

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;
      }
    }

 

Google
WWW plexityHide GTP.NET FAQ
Support

Support intro

Knowledgebase

FAQ phGantTimePackage

FAQ GTP.NET

FAQ general

Testimonials

"This is too GREAT. I must say you have strong support and really good programmers at your place. Your entire team is good. Just Fantastic! – 100%"
Gaurav Patole,
WebTechDevelopers
More testimonials...