Guarded, quick and trill switches


VBTkit contains three variations on ordinary buttons (called switches in VBTKit). The program Switches.m3 constructs these three switches:

Four views of the application appear in the following images:

The first image shows normal appearance of the program. The guarded switch is covered with diagonal lines, indicating that the guard is on. Clicking in the switch removes the guard and calls the callback (shown in the second image). Pressing a mouse button in the quick switch immediately invokes the call back. This is shown in the third image, although this behavior does not exhibit any different appearance than a normal switch. In the four image, the trill switch is shown in action, the callback is called continually while the button on the mouse is pressed.