some more checkbox fixes

ugfx_release_2.6
Joel Bodenmann 2013-06-02 18:52:42 +02:00
parent 809b8ccc60
commit 446f41297d
2 changed files with 4 additions and 2 deletions

View File

@ -36,8 +36,9 @@
/*===========================================================================*/
typedef struct GEventGWinCheckbox_t {
GEventType type; // The type of this event (GEVENT_GWIN_CHECKBOX)
GHandle checkbox; // The checkbox that has been depressed (actually triggered on release)
GEventType type; // The type of this event (GEVENT_GWIN_CHECKBOX)
GHandle checkbox; // The checkbox that has been depressed (actually triggered on release)
bool_t state // Is the checkbox currently checked or unchecked?
} GEventGWinCheckbox;
typedef enum GCheckboxShape_e {

View File

@ -88,6 +88,7 @@ static void gwinCheckboxCallback(void *param, GEvent *pe) {
continue;
pbe->type = GEVENT_GWIN_CHECKBOX;
pbe->checkbox = gh;
pbe->state = gbw->state;
geventSendEvent(psl);
}