public override bool OnMouseDown(System.Windows.Forms.Design.Behavior.Glyph g, MouseButtons button, Point mouseLoc)
        {
            if (button == MouseButtons.Left)
            {
                switch (((WizardPageDesignerGlyph)g).LastHit)
                {
                case WizardPageDesignerGlyph.ClickState.FirstBtn:
                    Designer.Control.Owner.SelectedPage = Designer.Control.Owner.Pages[0];
                    break;

                case WizardPageDesignerGlyph.ClickState.PrevBtn:
                    Designer.Control.Owner.PreviousPage();
                    break;

                case WizardPageDesignerGlyph.ClickState.NextBtn:
                    Designer.Control.Owner.NextPage();
                    break;

                case WizardPageDesignerGlyph.ClickState.LastBtn:
                    Designer.Control.Owner.SelectedPage = Designer.Control.Owner.Pages[Designer.Control.Owner.Pages.Count - 1];
                    break;

                case WizardPageDesignerGlyph.ClickState.Control:
                    break;

                default:
                    throw new ArgumentOutOfRangeException();
                }
            }
            return(base.OnMouseDown(g, button, mouseLoc));
        }
Exemple #2
0
 /// <summary>
 /// Called when any mouse-down message enters the adorner window of the BehaviorService.
 /// </summary>
 /// <param name="g">A Glyph.</param>
 /// <param name="button">A MouseButtons value indicating which button was clicked.</param>
 /// <param name="mouseLoc">The location at which the click occurred.</param>
 /// <returns>true if the message was handled; otherwise, false. </returns>
 public override bool OnMouseDown(System.Windows.Forms.Design.Behavior.Glyph g, MouseButtons button, Point mouseLoc)
 {
     if ((m_xpanderPanel != null) && (m_xpanderPanel.Expand == false))
     {
         var xpanderPanelList = m_xpanderPanel.Parent as XPanderPanelList;
         if (xpanderPanelList != null)
         {
             xpanderPanelList.Expand(m_xpanderPanel);
             m_xpanderPanel.Invalidate(false);
         }
     }
     return(true); // indicating we processed this event.
 }
 /// <summary>
 /// Called when any mouse-down message enters the adorner window of the BehaviorService.
 /// </summary>
 /// <param name="g">A Glyph.</param>
 /// <param name="button">A MouseButtons value indicating which button was clicked.</param>
 /// <param name="mouseLoc">The location at which the click occurred.</param>
 /// <returns>true if the message was handled; otherwise, false. </returns>
 public override bool OnMouseDown(System.Windows.Forms.Design.Behavior.Glyph g, MouseButtons button, Point mouseLoc)
 {
     if ((this.m_PanderPanelW != null) && (this.m_PanderPanelW.Expand == false))
     {
         PanderPanelListW PanderPanelListW = this.m_PanderPanelW.Parent as PanderPanelListW;
         if (PanderPanelListW != null)
         {
             PanderPanelListW.Expand(this.m_PanderPanelW);
             this.m_PanderPanelW.Invalidate(false);
         }
     }
     return(true);            // indicating we processed this event.
 }
Exemple #4
0
 public virtual void OnQueryContinueDrag(System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.QueryContinueDragEventArgs e)
 {
 }
Exemple #5
0
 public virtual void OnDragOver(System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.DragEventArgs e)
 {
 }
Exemple #6
0
 public virtual void OnGiveFeedback(System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.GiveFeedbackEventArgs e)
 {
 }
Exemple #7
0
 public virtual bool OnMouseUp(System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.MouseButtons button)
 {
 }
Exemple #8
0
 public virtual bool OnMouseMove(System.Windows.Forms.Design.Behavior.Glyph g, System.Windows.Forms.MouseButtons button, System.Drawing.Point mouseLoc)
 {
 }
Exemple #9
0
 public virtual bool OnMouseLeave(System.Windows.Forms.Design.Behavior.Glyph g)
 {
 }
Exemple #10
0
 public virtual bool OnMouseHover(System.Windows.Forms.Design.Behavior.Glyph g, System.Drawing.Point mouseLoc)
 {
 }
Exemple #11
0
 public virtual void OnLoseCapture(System.Windows.Forms.Design.Behavior.Glyph g, System.EventArgs e)
 {
 }