The button gadget class is used to create action buttons that are momentary, toggle and sticky. This class also supports relativity and placement within the window border.
Advantages that this class provides:
-
Centered images.
-
Centered pen-sensitive glyphs.
-
Multi-frame images animation ability (since V42).
-
Ability to change the text and background colors for normal and selected buttons.
-
Supports window relativity.
-
Supports OS 3.0 BOOPSI gadget help test.
Unfortunately, this class shares the same filename and tag range as the button gadget released by David Junod of C=, released in the GI1.lha V42 beta archive on BIX, and later the AT DevCD. We admit it, we screwed up... but it's not a majorly serious issue as this class is atleast 90% compatible.
A few rarely, possibly never, used tags of the original are NOT currently supported. The usage of BUTTON_PushButton in ReAction is not totally compatible to Junod's. Ours acts like GA_ToggleSelect of Junod's.
Please report any incompatibilities immediately.