div class="discussion">
    
<p>The toggle button provides a two-state button, which toggles between the on and the off state each time it is pressed.  For each state, the toggle button has a unique icon and text label.</p>

<h3 id="label-Events">Events</h3>

<p>The following messages are sent by FXToggleButton to its target:</p>
<dl class="rdoc-list note-list"><dt><code>SEL_COMMAND</code>
<dd>
<p>sent when the toggle button is pressed.</p>
</dd><dt><code>SEL_KEYPRESS</code>
<dd>
<p>sent when a key goes dow