class PtToggleButton PtLabel { indicator_color; // color (Pt_ARG_INDICATOR_COLOR) indicator_depth; // unsigned short (Pt_ARG_INDICATOR_DEPTH) indicator_height; // unsigned short (Pt_ARG_INDICATOR_HEIGHT) indicator_type; // unsigned char (Pt_ARG_INDICATOR_TYPE) indicator_width; // unsigned short (Pt_ARG_INDICATOR_WIDTH) set_color; // color (Pt_ARG_SET_COLOR) set_fill; // unsigned char (Pt_ARG_SET_FILL) spacing; // unsigned short (Pt_ARG_SPACING) }
This widget is a button that toggles ON and OFF, made up of an on/off indicator and a text label. Its instance variables control the size, shape, and color of the on/off indicator, as well as the font size of the corresponding label text.
![]() | For detailed information, please refer to PtToggleButton in the Photon documentation. |
| Constant | Description |
|---|---|
| Pt_N_OF_MANY | Gives the on/off indicator a diamond shape. |
| Pt_ONE_OF_MANY | Gives the on/off indicator a square shape. |
| Pt_RADIO | Makes the on/off indicator a round, radio-button style. |
| Pt_ROUND | Gives the on/off indicator a round shape. |
Copyright © 1995-2006 by Cogent Real-Time Systems, Inc. All rights reserved.