GUIX checkbox help

What i would like to do is that if the panic button gets pressed it goes into the switch case and then enables the checkbox rather than clicking the check to check it,

 

any ideas?

 

 

case GX_SIGNAL(ID_CHECK_BOX1, GX_EVENT_TOGGLE_ON) :
tx_data_flag = 1; // set UART send flag

break;

case GX_SIGNAL(ID_CHECK_BOX1, GX_EVENT_TOGGLE_OFF) :

tx_data_flag = 0; // reset UART send flag

break;

case GX_SIGNAL(ID_PANIC_BT, GX_EVENT_CLICKED) :

if(panic_button_set==0)
{
panic_flag=1;
//g_timer1.p_api->open(g_timer1.p_ctrl, g_timer1.p_cfg);
//g_timer1.p_api->start(g_timer1.p_ctrl);
panic_led=1;
panic_button_set=1;


//tx_data_flag = 1;

}

Thanks