Button Controls
Posted: Tue Sep 11, 2018 7:30 am
I have an Image_Toggle (GTT2.5) object on my screen, and it has states like Toggled, Enabled and Selected. The enum shows
/*! enum eButtonState */
typedef enum eButtonState {
eButtonState_Up = 0, /*!< Up */
eButtonState_Down = 1, /*!< Down */
eButtonState_Disabled = 2, /*!< Disabled */
} eButtonState;
It seems I cannot disable the button in the down state? Meaning if i want to change the background pic to the down pic, without enabling the button for the user yet, it seems I cannot. When i run the Button down command, the button gets enabled.
Also when i need to disable the button, it seems I need to change the state to Up, then Disable. So sending 2 commands.
Is this the expected behavior? Do you have any sample code which help with detailed control of the Image buttons?
Thanks,
Haz
/*! enum eButtonState */
typedef enum eButtonState {
eButtonState_Up = 0, /*!< Up */
eButtonState_Down = 1, /*!< Down */
eButtonState_Disabled = 2, /*!< Disabled */
} eButtonState;
It seems I cannot disable the button in the down state? Meaning if i want to change the background pic to the down pic, without enabling the button for the user yet, it seems I cannot. When i run the Button down command, the button gets enabled.
Also when i need to disable the button, it seems I need to change the state to Up, then Disable. So sending 2 commands.
Is this the expected behavior? Do you have any sample code which help with detailed control of the Image buttons?
Thanks,
Haz