class PtOnOffButton PtToggleButton { onoff_state; // short (Pt_ARG_ONOFF_STATE) }
This widget is a button that can be set to ON or OFF. It has an indicator box that turns green to indicate an ON state, and grey to indicate an OFF state. A PtOnOffButton can be used inclusively or exclusively in a group with other PtOnOffButtons.
For detailed information, please refer to PtOnOffButton and PtToggleButton in the Photon documentation. |
An integer indicating the state of the button. 0 (the default) is OFF. 1 or any non-zero value is ON.
Copyright © 1995-2010 by Cogent Real-Time Systems, Inc. All rights reserved.