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. |
A number specifying the color of the on/off indicator when the button is OFF. Default is 0xc0c0c0 (grey).
A number of pixels specifying the border width of the on/off indicator (giving the appearance of depth when the button is ON). Default is 2.
A number of pixels specifying the height of the on/off indicator. Default is adjusted according to the font size of the label text.
This instance variable controls the shape of the indicator, and may have one of the following values:
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. |
A number of pixels specifying the width of the on/off indicator. Default is adjusted according to the font size of the label text.
A number indicating the color of the indicator when the button is ON (pressed in). Default is 0xaaaaaa (dark grey).
A control bit for set_color. The default, 1, means that the color specified in set_color will be used for the on/off indicator when the button is ON. If 0 is specified here, the on/off indicator will not change color when the button is ON.
A number of pixels specifying the space between the on/off indicator and the label text. Default is 4.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.