2 Replies Latest reply on Apr 16, 2012 8:34 PM by sovain

    PBSymLib.Trend  / Double Click Event / parameters

    sovain

      Hi,

       

      I am trying to handle the event when an user DoubleClick on my trend in C# Application.

       

      The main purpose is that I need to maximize the trend in a form.

       

      When writing my delegate on the event BeforeDoubleClick I cannot find the excact parameters to this event to handle.

       

      Can anybody help me with that, where to look at ?

       

      Thanks

       

      Oleg

       

      My code is:

       

      ....

       

      PBSymLib.Trend MyTrend;

       

       ....

       

      MyTrend.AddTrace(v_PItagName);

       

      MyTrend.SetFormat(mytrendFormat);

       

      MyTrend.SetTimeRange("*-8h", "*");

       

      MyTrend.BeforeDoubleClick += delegate( ?, ?, ?, ) { }

        • Re: PBSymLib.Trend  / Double Click Event / parameters
          Ahmad Fattahi

          Oleg,

           

          Here is the description of the event and its parameters (you are working with batches, right?):

           

          Symbol BeforeDoubleClick Event

           

          Member of PIBTPB.BatchGantt, PIBTPB.BatchGroup, PIBTPB.BatchTrend.

           

          The Symbol.BeforeDoubleClick event executes when you double-click on a symbol.

           

          Format

           

          Private Sub Symbol_BeforeDoubleClick(CancelDefault, ByVal varX, ByVal varY)

           

          Arguments

           

          CancelDefault:

           

          Boolean. Indicates whether or not to continue the processing that follows double-click. True will cancel the action.

           

          varX:

           

          Long. The mouse pointer's X position at the point where the mouse was clicked. The position is given in logical display coordinates.

           

          varY:

           

          Long. The mouse pointer's Y position at the point where the mouse was clicked. The position is given in logical display coordinates.