touchgfx::ToggleButton::forceState() method
@fn void ToggleButton::forceState(bool activeState); Force the button into a specific state. Use this function to force the button in one of the two possible states. If button is forced to the active state, then the pressed bitmap from the last call to setBitmaps becomes the one displayed when button is not pressed.
Arguments
activeState
If true, display the bmpPressed bitmap when not pressed. If false display the bmpReleased bitmap.