+ script {
+ public check_is_on = 0;
+ public text_show = 1;
+ public checkon() {
+ set_state(PART:"check", "visible", 0.0);
+ if(get_int(text_show) == 1)
+ set_state(PART:"elm.text", "checked", 0.0);
+ else if(get_int(text_show) == 0)
+ set_state(PART:"elm.text", "hide", 0.0);
+ set_int(check_is_on, 1);
+ }
+ public checkoff() {
+ set_state(PART:"check", "default", 0.0);
+ if(get_int(text_show) == 1)
+ set_state(PART:"elm.text", "default", 0.0);
+ else if(get_int(text_show) == 0)
+ set_state(PART:"elm.text", "hide", 0.0);
+ set_int(check_is_on, 0);
+ }
+ public show_check_text() {
+ if(get_int(check_is_on) == 1)
+ set_state(PART:"elm.text", "checked", 0.0);
+ else if(get_int(check_is_on) == 0)
+ set_state(PART:"elm.text", "default", 0.0);
+ set_int(text_show, 1);
+ }
+ public hide_check_text() {
+ set_state(PART:"elm.text", "hide", 0.0);
+ set_int(text_show, 0);
+ }
+ }