Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic MouseHover Event (urgnet) (Read 1850 times)
jemi
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 2
Joined: Apr 24th, 2007
MouseHover Event (urgnet)
Apr 24th, 2007 at 12:17pm
Print Post  
Hi I have this code I will like to use the mouseHover event instead of a boxclicked but I don't see any OnMouseHover event for the box. How can i do that  and keep my current code to show the contextmenu 
when the user hovers over the box instead of  the right click
void fcMain_BoxClicked(object sender, MindFusion.FlowChartX.BoxMouseArgs e)
       {
           if (locked)
               return;

           if ((string)e.Box.Tag == "Ignore")
               return;

           this.mnuContext_Closing(null, null);

           TreeItem item;
           item = Root.FindItemByBox(e.Box);
           if (item != null && this.OnTreeItemClicked != null)
               this.OnTreeItemClicked(new TreeItemEventArgs(item));
    
           selectedBox = e.Box;
           
           //selectedBox.ShadowColor = System.Drawing.Color.Gray;
           selectedBox.FillColor = Color.FromArgb(127, 153, 178);
           selectedBox.TextColor = System.Drawing.Color.White;
           selectedBox.FrameColor = Color.FromArgb(127, 153, 178);

           Point p = fcMain.DocToClient(new PointF(selectedBox.BoundingRect.X + selectedBox.BoundingRect.Width, selectedBox.BoundingRect.Y));

           int x = p.X;
           int y = p.Y;

           //mnuContext.DropShadowEnabled = true;
           mnuContext.Tag = selectedBox;
           if (Root.Type != "Valuation")
           {
               mnuContext.Items["mnuStripApprove"].Visible = false;
               mnuStripCheck.Visible = false;
               mnuStripRun.Visible = false;
               markFinalToolStripMenuItem.Visible = false;
               assetsToolStripMenuItem.Visible = false;
               liabilitiesToolStripMenuItem.Visible = false;
               costProcessingToolStripMenuItem.Visible = false;
               clientReportToolStripMenuItem.Visible = false;
           }
           else
           {
               mnuStripApprove.Visible = true;
               mnuStripCheck.Visible = true;
               mnuStripRun.Visible = true;
               markFinalToolStripMenuItem.Visible = true;
               assetsToolStripMenuItem.Visible = true;
               liabilitiesToolStripMenuItem.Visible = true;
               costProcessingToolStripMenuItem.Visible = true;
               clientReportToolStripMenuItem.Visible = true;
           }

           if (e.Button == MouseButtons.Right)
               mnuContext.Show(this.fcMain, x, y);
        
       }
Thank you so much in advance
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: MouseHover Event (urgnet)
Reply #1 - Apr 24th, 2007 at 12:30pm
Print Post  
Hi,

You can detect mouse hover as shown here -

http://mindfusion.org/cgi/Forum/YaBB.pl?board=fcnet_disc;action=display;num=1160...

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint