Tinkr2/4.2/AphelionCore/AphelionCommonControls/Controls/Containers/VKB.cs
/// <summary>
/// Called when a touch up occurs and the control is active
/// </summary>
/// <param name="sender">Sending object</param>
/// <param name="point">Location of touch</param>
Called when a touch up occurs and the control is active
Called when a touch up occurs and the control is active
public void SendTouchUp(object sender, point point)
      {
         if (!_enabled || !_visible || _suspended)
         {
            _mDown = false;
            return;
         }
         if (_txtDown || _rTxt.Contains(point))
            TextUp(point);
         if (_iSel != -1)
            ButtonsUp(point);
         if (_mDown)
         {
            if (new rect(Left, Top, Width, Height).Contains(point))
            {
               if (DateTime.Now.Ticks - _lastTap < (TimeSpan.TicksPerMillisecond * 500))
               {
                  OnDoubleTap(this, new point(point.X - Left, point.Y - Top));
                  _lastTap = 0;
               }
               else
               {
                  OnTap(this, new point(point.X - Left, point.Y - Top));
                  _lastTap = DateTime.Now.Ticks;
               }
            }
            _mDown = false;
            OnTouchUp(this, point);
         }
      }
public void SendTouchUp ( object sender , point point ) { if ( ! _enabled || ! _visible || _suspended ) { _mDown = false ; return ; } if ( _txtDown || _rTxt . Contains ( point ) ) TextUp ( point ) ; if ( _iSel != - 1 ) ButtonsUp ( point ) ; if ( _mDown ) { if ( new rect ( Left , Top , Width , Height ) . Contains ( point ) ) { if ( DateTime . Now . Ticks - _lastTap < ( TimeSpan . TicksPerMillisecond * 500 ) ) { OnDoubleTap ( this , new point ( point . X - Left , point . Y - Top ) ) ; _lastTap = 0 ; } else { OnTap ( this , new point ( point . X - Left , point . Y - Top ) ) ; _lastTap = DateTime . Now . Ticks ; } } _mDown = false ; OnTouchUp ( this , point ) ; } }
Called when a touch up occurs and the control is active
Called when a touch up occurs and the control is active
// Allow Override // Perform normal tap
sender
object
None
point
point
Location of touch
Location of touch