The OnOffButton is a custom gadget for Pure Basic. The original concept developed by Pure Basic forum member StarGate.
The button is an animated three state button with on, off and hover states.
This button is a fixed size and does not react to the ResizeGadget() PB procedure except when you need to move the gadget on a window. The the ResizeGadget() PB procedure can be used to move the button on the window.
When added to a window the button looks as figure 1 below.
Figure 1. OnOffButton