Tinkr2/4.2/AphelionCore/AphelionCommonControls/Controls/Button.cs
/// <summary>
/// Override this message to handle button released events internally.
/// </summary>
/// <param name="buttonId">Integer ID corresponding to the affected button</param>
/// <param name="handled">true if the event is handled. Set to true if handled.</param>
/// <remarks>
/// On button id <see cref="ButtonIDs.Select"/> or <see cref="ButtonIDs.Click"/> the button is switched back to <see cref="PressState.Normal"/> state
/// and the <see cref="Control.Tap"/> event is fired.
/// </remarks>
Override this message to handle button released events internally.
Override this message to handle button released events internally .
protected override void ButtonReleasedMessage(int buttonId, ref bool handled)
      {
         if (_state == PressState.Pressed && (buttonId == (int)ButtonIDs.Select || buttonId == (int)ButtonIDs.Click))
         {
            _state = PressState.Normal;
            Invalidate();
            OnTap(this, new point(X, Y));
         }
         base.ButtonReleasedMessage(buttonId, ref handled);
      }
protected override void ButtonReleasedMessage ( int buttonId , ref bool handled ) { if ( _state == PressState . Pressed && ( buttonId == ( int ) ButtonIDs . Select || buttonId == ( int ) ButtonIDs . Click ) ) { _state = PressState . Normal ; Invalidate ( ) ; OnTap ( this , new point ( X , Y ) ) ; } base . ButtonReleasedMessage ( buttonId , ref handled ) ; }
Override this message to handle button released events internally.
Override this message to handle button released events internally .
buttonId
int
Integer ID corresponding to the affected button
Integer ID corresponding to the affected button
bool
ref
handled
true if the event is handled. Set to true if handled.
true if the event is handled . Set to true if handled .
remarks
On button id  or  the button is switched back to  state
and the  event is fired.
On button id or the button is switched back to state and the event is fired .