Ejemplo n.º 1
0
 private void RexWidget_MouseMove(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.None)
     {
         mActiveControl = GetActiveControl(e.Location);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Draws all switches of the parallel port.
 /// </summary>
 /// <param name="g"></param>
 private void DrawSwitches(Graphics g)
 {
     for (int i = 0; i < mSwitchLoc.Length; i++)
     {
         ControlWithFocus controlToTest = (ControlWithFocus)((int)(ControlWithFocus.Switch0) << i);
         Brush            b             = (mActiveControl == controlToTest)     ? Brushes.LightGray : Brushes.White;
         DrawSwitch(g, mSwitchLoc[i], b, i);
     }
 }
Ejemplo n.º 3
0
 private void RexWidget_MouseMove(object sender, MouseEventArgs e)
 {
     mActiveControl = GetActiveControl(e.Location);
 }