Tinkr2/4.2/AphelionCore/AphelionCommonControls/Controls/Button.cs
/// <summary>
/// Override this message to handle button pressed 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 to <see cref="PressState.Pressed"/> state
/// </remarks>
Override this message to handle button pressed events internally.
Override this message to handle button pressed events internally .
protected override void ButtonPressedMessage(int buttonId, ref bool handled)
      {
         if (buttonId == (int)ButtonIDs.Select || buttonId == (int)ButtonIDs.Click)
         {
            _state = PressState.Pressed;
            Invalidate();
         }
         base.ButtonPressedMessage(buttonId, ref handled);
      }
protected override void ButtonPressedMessage ( int buttonId , ref bool handled ) { if ( buttonId == ( int ) ButtonIDs . Select || buttonId == ( int ) ButtonIDs . Click ) { _state = PressState . Pressed ; Invalidate ( ) ; } base . ButtonPressedMessage ( buttonId , ref handled ) ; }
Override this message to handle button pressed events internally.
Override this message to handle button pressed events internally .
buttonId
int
Integer ID corresponding to the affected button
Integer ID corresponding to the affected button
bool
ref
<not_specific>
handled
<not_specific>
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 to  state
On button id or the button is switched to state