示例#1
0
        public void updateTooltip()
        {
            Point p = new Point(lMouse.X / (int)scale, lMouse.Y / (int)scale);

            //ifoutofbounds
            if (lMouse.X < 0 || lMouse.Y < 0 || p.X < 0 || p.Y < 0 || p.X > currentSim.X * 9 || p.Y > currentSim.Y * 9)
            {
                cX             = cY = -1;
                toolTip.Active = false;
                return;
            }
            if (p.X % 9 == 0 || p.Y % 9 == 0)
            {
                return;
            }
            if (cX != p.X / 9 || cY != p.Y)
            {
                cChanged = true;
            }
            else
            {
                cChanged = false;
            }
            cX = p.X / 9; cY = p.Y / 9;

            myStatusStripEventArgs e = new myStatusStripEventArgs(eStatusStripUdate.XYZ);

            e.X = cX;
            e.Y = cY;
            e.Z = cZ;
            ChangeStrip(this, e);
            // lLoc.setText("X=" + lastX +"Y=" + lastY + "Z=" +lyr);
            //  lLoc.setVisible(true);
            //   sLoc.setVisible(true);
        }
示例#2
0
 void  blockView_ChangeStrip(object s, myStatusStripEventArgs e)
 {
     if (e.Update.HasFlag(eStatusStripUdate.XYZ))
     {
         mainStatusStrip.setCord(e.X, e.Y, e.Z);
         //   this.cCord.Text = e.X + "x" + e.Y + "y" + e.Z + "z";
         //    this.cCord.Invalidate();
     }
 }
示例#3
0
 void blockView_ChangeStrip(object s, myStatusStripEventArgs e)
 {
     if (e.Update.HasFlag(eStatusStripUdate.XYZ))
     {
         mainStatusStrip.setCord(e.X, e.Y, e.Z);
      //   this.cCord.Text = e.X + "x" + e.Y + "y" + e.Z + "z";
     //    this.cCord.Invalidate();
     }
 }
示例#4
0
 protected void OnChangeStrip(object s, myStatusStripEventArgs e)
 {
 }                                                                   // nothing to as we are changing the strip }
        public void updateTooltip()
        {
            Point p = new Point(lMouse.X / (int)scale, lMouse.Y / (int)scale);
            //ifoutofbounds
            if (lMouse.X < 0 || lMouse.Y < 0 || p.X < 0 || p.Y < 0 || p.X > currentSim.X * 9 || p.Y > currentSim.Y * 9)
            {
                cX = cY = -1;
                toolTip.Active = false;
                return;
            }
            if (p.X % 9 == 0 || p.Y % 9 == 0)
                return;
            if (cX != p.X / 9 || cY != p.Y)
                cChanged = true;
            else
                cChanged = false;
            cX = p.X / 9; cY = p.Y / 9;

            myStatusStripEventArgs e = new myStatusStripEventArgs(eStatusStripUdate.XYZ);
            e.X = cX;
            e.Y = cY;
            e.Z = cZ;
            ChangeStrip(this,e);
            // lLoc.setText("X=" + lastX +"Y=" + lastY + "Z=" +lyr);
            //  lLoc.setVisible(true);
            //   sLoc.setVisible(true);
        }
 protected void OnChangeStrip(object s, myStatusStripEventArgs e)
 {
 }