class PtButton PtLabel { arm_color; // color (Pt_ARG_ARM_COLOR) arm_fill; // unsigned char (Pt_ARG_ARM_FILL) arm_image; // PhImage (Pt_ARG_ARM_DATA) }
This widget is a button that can be used to initiate actions in Gamma, usually through callbacks. When a button is pressed (the mouse button is held down on it), it is armed, and its color becomes shaded. As a child of the PtLabel class, a PtButton inherits the label_type variable, which allows you to put text strings, images, and bitmaps on it. What's more, you can have a PtButton change its color or image when it is armed, by setting its own instance variables.
![]() | For detailed information, please refer to PtButton in the Photon documentation. |