if(!nexacro.CheckBox){nexacro.CheckBoxChangedEventInfo=function(_a,_b,_c,_d){this.id=this.eventid=_b||"onchanged";this.prevalue=_c;this.postvalue=_d;this.fromobject=this.fromreferenceobject=_a;};var _pCheckBoxChangedEventInfo=nexacro._createPrototype(nexacro.ChangedEventInfo,nexacro.CheckBoxChangedEventInfo);nexacro.CheckBoxChangedEventInfo.prototype=_pCheckBoxChangedEventInfo;_pCheckBoxChangedEventInfo._type_name="CheckBoxChangedEventInfo";delete _pCheckBoxChangedEventInfo;_pCheckBoxChangedEventInfo=null;nexacro.CheckBox_Style=function(_a,_b){nexacro.Style.call(this,_a,_b);this.buttonalign=null;this.buttonimage=null;this.textpadding=null;this.buttonborder=null;this.buttonbordertype=null;this.buttonsize=null;this.buttonbackground=null;this.buttongradation=null;this.buttonbackgroundimagemode=null;};_pCheckBoxStyle=nexacro.CheckBox_Style.prototype=nexacro._createPrototype(nexacro.Style,nexacro.CheckBox_Style);nexacro.CheckBox_Style.prototype=_pCheckBoxStyle;eval(nexacro._createAlignAttributeEvalStr("_pCheckBoxStyle","buttonalign"));eval(nexacro._createValueAttributeEvalStr("_pCheckBoxStyle","buttonimage"));eval(nexacro._createPaddingAttributeEvalStr("_pCheckBoxStyle","textpadding"));eval(nexacro._createBorderAttributeEvalStr("_pCheckBoxStyle","buttonborder"));eval(nexacro._createBordertypeAttributeEvalStr("_pCheckBoxStyle","buttonbordertype"));eval(nexacro._createValueAttributeEvalStr("_pCheckBoxStyle","buttonsize"));eval(nexacro._createBackgroundAttributeEvalStr("_pCheckBoxStyle","buttonbackground"));eval(nexacro._createGradationAttributeEvalStr("_pCheckBoxStyle","buttongradation"));eval(nexacro._createValueAttributeEvalStr("_pCheckBoxStyle","buttonbackgroundimagemode"));_pCheckBoxStyle.__custom_emptyObject=function(){this.buttonalign=null;this.buttonimage=null;this.textpadding=null;this.buttonborder=null;this.buttonbordertype=null;this.buttonsize=null;this.buttonbackground=null;this.buttongradation=null;this.buttonbackgroundimagemode=null;this.accessibility=null;};_pCheckBoxStyle.__get_custom_style_value=function(){var _a="";if(this.buttonalign&&this.buttonalign._is_empty){_a+="buttonalign:"+this.buttonalign._value+"; ";}if(this.buttonimage&&this.buttonimage._is_empty){_a+="buttonimage:"+this.buttonimage._value+"; ";}if(this.textpadding&&this.textpadding._is_empty){_a+="textpadding:"+this.textpadding._value+"; ";}if(this.buttonborder&&this.buttonborder._is_empty){_a+="buttonborder:"+this.buttonborder._value+"; ";}if(this.buttonbordertype&&this.buttonbordertype._is_empty){_a+="buttonbordertype:"+this.buttonbordertype._value+"; ";}if(this.buttonsize&&this.buttonsize._is_empty){_a+="buttonsize:"+this.buttonsize._value+"; ";}if(this.buttonbackground&&this.buttonbackground._is_empty){_a+="buttonbackground:"+this.buttonbackground._value+"; ";}if(this.buttongradation&&this.buttongradation._is_empty){_a+="buttongradation:"+this.buttongradation._value+"; ";}if(this.buttonbackgroundimagemode&&this.buttonbackgroundimagemode._is_empty){_a+="buttonbackgroundimagemode:"+this.buttonbackgroundimagemode._value+"; ";}if(this.accessibility&&this.accessibility._is_empty){_a+="accessibility:"+this.accessibility._value+"; ";}return _a;};nexacro.CheckBox_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.buttonalign=null;this.buttonimage=null;this.textpadding=null;this.buttonborder=null;this.buttonbordertype=null;this.buttonsize=null;this.buttonbackground=null;this.buttongradation=null;this.buttonbackgroundimagemode=null;};_pCheckBoxCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.CheckBox_CurrentStyle);nexacro.CheckBox_CurrentStyle.prototype=_pCheckBoxCurrentStyle;_pCheckBoxCurrentStyle.__get_custuom_style_value=_pCheckBoxStyle.__get_custuom_style_value;_pCheckBoxCurrentStyle.__custom_emptyObject=_pCheckBoxStyle.__custom_emptyObject;delete _pCheckBoxStyle;_pCheckBoxStyle=null;delete _pCheckBoxCurrentStyle;_pCheckBoxCurrentStyle=null;nexacro.CheckBox=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Component.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.text_elem=null;this.chkimg=null;this.value=false;this.binddataset=null;this.readonly=false;this.falsevalue=null;this.truevalue=null;this._event_list={"canchange":1,"onchanged":1,"onclick":1,"ondrag":1,"ondragenter":1,"ondragleave":1,"ondragmove":1,"ondrop":1,"ongesture":1,"onkeydown":1,"onkeyup":1,"onkillfocus":1,"onlbuttondown":1,"onlbuttonup":1,"onmouseenter":1,"onmouseleave":1,"onmousemove":1,"onmove":1,"onrbuttondown":1,"onrbuttonup":1,"onsetfocus":1,"onsize":1,"ontouchstart":1,"ontouchmove":1,"ontouchend":1,"onflingstart":1,"onfling":1,"onflingend":1,"onpinchstart":1,"onpinch":1,"onpinchend":1,"onlongpress":1,"onslidestart":1,"onslide":1,"onslideend":1};this._accessibility_role="checkbox";this._is_usetextbox=true;};_pCheckBox=nexacro._createPrototype(nexacro.Component,nexacro.CheckBox);nexacro.CheckBox.prototype=_pCheckBox;_pCheckBox._type_name="CheckBox";nexacro.CheckBox._default_buttonsize=nexacro._getCachedStyleObj("buttonsize",13);nexacro.CheckBox._default_textpadding=nexacro._getCachedStyleObj("padding","5 2 5 2");_pCheckBox.on_apply_custom_pseudo=function(_a){if(_a){this._pseudo=_a;}else if(this._pseudo){_a=this._pseudo;}var _b=this.currentstyle;var _c=this.on_find_CurrentStyle_buttonalign(_a);var _d=this.on_find_CurrentStyle_buttonimage(_a);var _e=this.on_find_CurrentStyle_textpadding(_a);var _f=this.on_find_CurrentStyle_buttonborder(_a);var _g=this.on_find_CurrentStyle_buttonbordertype(_a);var _h=this.on_find_CurrentStyle_buttonsize(_a);var _i=this.on_find_CurrentStyle_buttonbackground(_a);var _j=this.on_find_CurrentStyle_buttonbackgroundimagemode(_a);var _k=this.on_find_CurrentStyle_buttongradation(_a);var _l=this.on_find_CurrentStyle_font(_a);var _m=this.on_find_CurrentStyle_color(_a);var _n=this.on_find_CurrentStyle_align(_a);var _o=this.on_find_CurrentStyle_accessibility(_a);if(this._apply_client_border||_c!=_b.buttonalign){_b.buttonalign=_c;this.on_apply_style_buttonalign(_c);this._apply_client_border=false;}if(_d!=_b.buttonimage){_b.buttonimage=_d;this.on_apply_style_buttonimage(_d);}if(_e!=_b.textpadding){_b.textpadding=_e;this.on_apply_style_textpadding(_e);}if(_f!=_b.buttonborder){_b.buttonborder=_f;if(this.chkimg){this.chkimg.on_apply_pseudo(_a);}this.on_apply_style_buttonborder(_f);}if(_g!=_b.buttonbordertype){_b.buttonbordertype=_g;if(this.chkimg){this.chkimg.on_apply_pseudo(_a);}this.on_apply_style_buttonbordertype(_g);}if(_h!=_b.buttonsize){_b.buttonsize=_h;this.on_apply_style_buttonsize(_h);}if(_i!=_b.buttonbackground){_b.buttonbackground=_i;if(this.chkimg){this.chkimg.on_apply_pseudo(_a);}this.on_apply_style_buttonbackground(_i);}if(_k!=_b.buttongradation){_b.buttongradation=_k;if(this.chkimg){this.chkimg.on_apply_pseudo(_a);}this.on_apply_style_buttongradation(_k);}if(_j!=_b.buttonbackgroundimagemode){_b.buttonbackgroundimagemode=_j;if(this.chkimg){this.chkimg.on_apply_pseudo(_a);}this.on_apply_style_buttonbackgroundimagemode(_j);}if(_l!=_b.font){_b.font=_l;this.on_apply_style_font(_l);}if(_m!=_b.color){_b.color=_m;this.on_apply_style_color(_m);}if(_n!=_b.align){_b.align=_n;this.on_apply_style_align(_n);}var _p=this.on_find_CurrentStyle_rtlimagemirroring(_a);if(_p!=_b.rtlimagemirroring){_b.rtlimagemirroring=_p;this.on_apply_style_rtlimagemirroring(_p);}};_pCheckBox.on_create_custom_style=function(){return new nexacro.CheckBox_Style(this);};_pCheckBox.on_create_custom_currentStyle=function(){return new nexacro.CheckBox_CurrentStyle(this);};_pCheckBox.on_find_CurrentStyle_buttonalign=function(_a){var _b=nexacro.Component._default_left_align;return this._find_pseudo_obj("buttonalign",_a,"align")||_b;};_pCheckBox.on_find_CurrentStyle_buttonimage=function(_a){return this._find_pseudo_obj("buttonimage",_a);};_pCheckBox.on_find_CurrentStyle_textpadding=function(_a){return this._find_pseudo_obj("textpadding",_a)||nexacro.CheckBox._default_textpadding;};_pCheckBox.on_find_CurrentStyle_buttonborder=function(_a){return this._find_pseudo_obj("buttonborder",_a,"border");};_pCheckBox.on_find_CurrentStyle_buttonbordertype=function(_a){return this._find_pseudo_obj("buttonbordertype",_a);};_pCheckBox.on_find_CurrentStyle_buttonsize=function(_a){return this._find_pseudo_obj("buttonsize",_a)||nexacro.CheckBox._default_buttonsize;};_pCheckBox.on_find_CurrentStyle_buttonbackground=function(_a){return this._find_pseudo_obj("buttonbackground",_a);};_pCheckBox.on_find_CurrentStyle_buttongradation=function(_a){return this._find_pseudo_obj("buttongradation",_a);};_pCheckBox.on_find_CurrentStyle_buttonbackgroundimagemode=function(_a){return this._find_pseudo_obj("buttonbackgroundimagemode",_a);};_pCheckBox.on_find_CurrentStyle_align=function(_a){var _b=nexacro.Component._default_left_align;return this._find_pseudo_obj("align",_a)||_b;};_pCheckBox.on_update_style_buttonalign=function(){var _a=this.currentstyle;var _b=_a.buttonalign=this.on_find_CurrentStyle_buttonalign(this._pseudo);this.on_apply_style_buttonalign(_b);};_pCheckBox.on_update_style_buttonimage=function(){var _a=this.currentstyle;var _b=_a.buttonimage=this.on_find_CurrentStyle_buttonimage(this._pseudo);this.on_apply_style_buttonimage(_b);};_pCheckBox.on_update_style_textpadding=function(){var _a=this.currentstyle;var _b=_a.textpadding=this.on_find_CurrentStyle_textpadding(this._pseudo);this.on_apply_style_textpadding(_b);};_pCheckBox.on_update_style_buttonborder=function(){var _a=this.currentstyle;var _b=_a.buttonborder=this.on_find_CurrentStyle_buttonborder(this._pseudo);this.on_apply_style_buttonborder(_b);};_pCheckBox.on_update_style_buttonbordertype=function(){var _a=this.currentstyle;var _b=_a.buttonbordertype=this.on_find_CurrentStyle_buttonbordertype(this._pseudo);this.on_apply_style_buttonbordertype(_b);};_pCheckBox.on_update_style_buttonsize=function(){var _a=this.currentstyle;var _b=_a.buttonsize=this.on_find_CurrentStyle_buttonsize(this._pseudo);this.on_apply_style_buttonsize(_b);};_pCheckBox.on_update_style_buttonbackground=function(){var _a=this.currentstyle;var _b=_a.buttonbackground=this.on_find_CurrentStyle_buttonbackground(this._pseudo);this.on_apply_style_buttonbackground(_b);};_pCheckBox.on_update_style_buttongradation=function(){var _a=this.currentstyle;var _b=_a.buttongradation=this.on_find_CurrentStyle_buttongradation(this._pseudo);this.on_apply_style_buttongradation(_b);};_pCheckBox.on_update_style_buttonbackgroundimagemode=function(){var _a=this.currentstyle;var _b=_a.buttonbackgroundimagemode=this.on_find_CurrentStyle_buttonbackgroundimagemode(this._pseudo);this.on_apply_style_buttonbackgroundimagemode(_b);};_pCheckBox.on_apply_style_align=function(_a){if(this.text_elem){var _b=(_a.halign==""?"center":_a._halign);var _c=(_a.valign==""?"middle":_a._valign);this.text_elem.setElementAlignXY(_b,_c);}};_pCheckBox.on_apply_style_buttonalign=function(_a){var _b=this.currentstyle;if(_b&&_b.buttonalign&&this.chkimg){var _c=_b.buttonalign;var _d=this._client_width;var _e=this._client_height;var _f=_c.toString().trim().split(" ");var _g=_f.length;var _h=0,_i=0,_j=0,_k=0;var _l=0,_m=0,_n=0,_o=0,_p=0,_q=0;var _r="";var _s=_b.buttonsize;var _t="left",_u="middle";var _v=_s?(parseInt(_s._value)|0):13;for(var _w=0;_w<_g;_w++ ){switch(_f[_w]){case "center":_t="center";break;case "right":_t="right";break;case "top":_u="top";break;case "bottom":_u="bottom";break;default:break;}}var _x=_b.textpadding;var _y,_z;if(_x){if(_x.left){_l=_x.left;}if(_x.right){_n=_x.right;}if(_x.top){_m=_x.top;}if(_x.bottom){_o=_x.bottom;}}_z=_d-_v;if(_t=="left"||_t=="center"){_l+=_v;_h=0;_j=_v;}else if(_t=="right"){_j=_d;_h=_j-_v;}if(_u=="top"){_i=0;_k=_v;}else if(_u=="bottom"){_k=_e;_i=_k-_v;}else{_i=(_e-_v)/2;_k=_i+_v;}this.chkimg.move(_h,_i,_j-_h,_k-_i);if(this.text_elem){_p=_d-_n-_l;_q=_e-_o-_m;_p=(_p<0)?0:_p;_q=(_q<0)?0:_q;_l=this._convertLeftForRtlLayout(_l,_p);this.text_elem.setElementPosition(_l,_m);this.text_elem.setElementSize(_p,_q);}}};_pCheckBox.on_apply_style_color=function(_a){if(this.text_elem){this.text_elem.setElementColor(_a);}};_pCheckBox.on_apply_style_padding=function(_a){var _b=this.getElement();if(_b){_b.setElementPadding(_a);}};_pCheckBox.on_apply_expr=function(){this.on_apply_text();};_pCheckBox.on_apply_style_font=function(_a){if(this.text_elem){this.text_elem.setElementFont(_a);}};_pCheckBox.on_apply_style_buttonimage=function(_a){if(_a&&this.value==true){if(this.chkimg){this.chkimg.image=_a;this.chkimg._load_image(_a);}this.on_apply_value();}};_pCheckBox.on_apply_style_textpadding=function(_a){if(this.text_elem&&this.currentstyle.textpadding){this.on_apply_style_buttonalign(_a);}};_pCheckBox.on_apply_style_buttonborder=function(_a){if(this.chkimg){this.chkimg.currentstyle.border=_a;this.chkimg.on_update_style_border();}};_pCheckBox.on_apply_style_buttonbordertype=function(_a){if(this.chkimg){this.chkimg.currentstyle.bordertype=_a;this.chkimg.on_update_style_bordertype();}};_pCheckBox.on_apply_style_buttonsize=function(_a){this.on_apply_style_buttonalign(_a);};_pCheckBox.on_apply_style_buttongradation=function(_a){if(this.chkimg){this.chkimg.currentstyle.buttongradation=_a;this.chkimg.on_update_style_gradation();}};_pCheckBox.on_apply_style_buttonbackground=function(_a){if(this.chkimg){this.chkimg.currentstyle.buttonbackground=_a;this.chkimg.on_update_style_background();}};_pCheckBox.on_apply_style_buttonbackgroundimagemode=function(_a){};_pCheckBox.on_apply_style_cursor=function(_a){var _b=nexacro.Component.prototype.on_apply_style_cursor.call(this,_a);if(this.chkimg){this.chkimg.on_apply_style_cursor(_a);}return _b;};_pCheckBox.on_get_style_accessibility_label=function(){return this.text?this.text:"";};_pCheckBox.on_apply_prop_rtldirection=function(){nexacro.Component.prototype.on_apply_prop_rtldirection.call(this);this.on_change_containerRect();var _a=this._rtldirection;if(this.chkimg){var _b=this.chkimg._img_elem;if(_b){_b.setElementImageMirror(null,true);}}};_pCheckBox.on_create_contents=function(){var _a=this._control_element;if(_a){this.chkimg=new nexacro.CheckBoxImageCtrl("chkimg",this.position,0,0,0,0,null,null,this);this.chkimg.createComponent();var _b=this.currentstyle;if(this._is_usetextbox){var _c=new nexacro.TextBoxElement(_a);var _d=((!_b.align||_b.align.halign=="")?"center":_b.align._halign);var _e=((!_b.align||_b.align.valign=="")?"middle":_b.align._valign);_c.setElementSize(this._client_width,this._client_height);_c.setElementColor(_b.color);_c.setElementFont(_b.font);_c.setElementAlignXY(_d,_e);this.text_elem=_c;_c=null;}if(_b.buttonimage){this.chkimg._load_image(_b.buttonimage);}}};_pCheckBox.on_created_contents=function(){if(this.chkimg){this.chkimg.on_created();var _a=this.chkimg._img_elem;if(_a){_a.create();}}if(this.text_elem){this.text_elem.create();}this.on_apply_text();if(this.expr){this.on_apply_expr();}this._reCalcValue();this.on_apply_style_buttonalign(this.currentstyle.buttonalign);this.on_apply_style_buttonimage(this.currentstyle.buttonimage);this.on_apply_style_buttonbackground(this.currentstyle.buttonbackground);this.on_apply_style_textpadding(this.currentstyle.textpadding);this._setEventHandler("onkeyup",this.on_notify_checkbox_onkeyup,this);this.on_apply_prop_rtldirection();};_pCheckBox.on_destroy_contents=function(){if(this.text_elem){this.text_elem.destroy();this.text_elem=null;}if(this.chkimg){this.chkimg.destroy();this.chkimg=null;}this.binddataset=null;this.falsevalue=null;this.truevalue=null;};_pCheckBox.on_change_containerRect=function(_a,_b){var _c=this.text_elem;var _d=this._pseudo;var _e=this.on_find_CurrentStyle_align(_d);if(_c){_c.setElementSize(_a,_b);this.on_apply_style_align(_e);}var _f=this.on_find_CurrentStyle_buttonalign(_d);this.on_apply_style_buttonalign(_f);};_pCheckBox.on_getBindableProperties=function(){return "value";};_pCheckBox.__getBindableProperties=function(){return "value";};_pCheckBox.on_init_bindSource=function(_a,_b,_c){if(_b=="value"){this._setValue(undefined,false,false);return true;}};_pCheckBox.on_change_bindSource=function(_a,_b,_c,_d,_e){this.binddataset=_b;if(_a=="value"){this._setValue(_b.getColumn(_c,_d),false,false);return true;}return false;};_pCheckBox.on_apply_prop_enable=function(_a){nexacro.Component.prototype.on_apply_prop_enable.call(this,_a);var _b=_a;if(_a==undefined){_b=this.enable;}if(this.chkimg){this.chkimg._setEnable(_b);}};_pCheckBox.set_value=function(_a){if(this.value!=_a){this._setValue(_a,true,false);}};_pCheckBox.on_apply_value=function(){if(this.chkimg){if(this.isChecked()==true){var _a="theme://images/checked.gif";if(this.currentstyle.buttonimage){_a=this.currentstyle.buttonimage._value;this.chkimg.set_image(_a);this.chkimg.set_imagealign("center middle");}}else{this.chkimg.set_image("");}this.chkimg.on_apply_style_cursor(this.currentstyle.cursor);}};_pCheckBox.set_readonly=function(_a){_a=nexacro._toBoolean(_a);if(_a!=this.readonly){this.readonly=_a;this.on_apply_readonly();}};_pCheckBox.on_apply_readonly=function(){var _a=this.readonly;if(_a){this._stat_change("readonly",this._pseudo);}else{this._stat_change("writable",this._pseudo=="readonly"?"normal":this._pseudo);}};_pCheckBox.set_text=function(_a){var _b=_a;if(_a===undefined||_a===null){_b="";}else{_b=_a.toString();}if(_b!=this.text){this.text=_b;this.on_apply_text();}return this.text;};_pCheckBox.on_apply_text=function(){if(this.text_elem){var _a=this.expr;if(_a&&_a.length>0){_a=_a.trim().split(":");var _b=_a.length;var _c=new nexacro.ExprParser();var _d,_e;var _f;if(_b==1){_f=_a[0];}else{if(_a[0].trim().toUpperCase()!="EXPR"){_f=_a.join(":");}else{_f=_a.slice(1).join(":");}}_d=_c.makeExpr(this,_f);_c=null;_e=nexacro._createInlineFunc(_d,["comp"]);if(_e){try{var _g=nexacro._toString(_e.call(null,this));if(_g!=this.displaytext){this.displaytext=_g;}}catch(e){_c=null;return;}}_c=null;}else{this.displaytext=this.text;}this.text_elem.setElementText(this.displaytext);}};_pCheckBox.set_truevalue=function(_a){if(this.truevalue!=_a){if(this.isChecked()){this.value=_a;}this.truevalue=_a;this._reCalcValue();return this.truevalue;}};_pCheckBox.set_falsevalue=function(_a){if(this.falsevalue!=_a){if(!this.isChecked()){this.value=_a;}this.falsevalue=_a;this._reCalcValue();return this.falsevalue;}};_pCheckBox.isChecked=function(){return this._isChecked(this.value);};_pCheckBox.updateToDataset=function(){return this.applyto_bindSource("value",this.value);};_pCheckBox.on_fire_onclick=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(!this.enable){return false;}if(this.readonly==false){if(this._isChecked(this.value)){if(this.falsevalue!=undefined&&this.falsevalue!=""){this._setValue(this.falsevalue,true);}else{this._setValue(false,true);}}else{if(this.truevalue!=undefined&&this.truevalue!=""){this._setValue(this.truevalue,true);}else{this._setValue(true,true);}}}if(this.onclick&&this.onclick._has_handlers){var _m=new nexacro.ClickEventInfo(this,"onclick",_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onclick._fireEvent(this,_m);}return false;};_pCheckBox.on_fire_onsize=function(_a,_b){this.on_update_style_buttonalign();return nexacro.Component.prototype.on_fire_onsize.call(this,_a,_b);};_pCheckBox.on_fire_onchanged=function(_a,_b,_c){if(this.onchanged&&this.onchanged._has_handlers){var _d=new nexacro.CheckBoxChangedEventInfo(this,"onchanged",_b,_c);return this.onchanged._fireEvent(this,_d);}return false;};_pCheckBox.on_fire_canchange=function(_a,_b,_c){if(this.canchange&&this.canchange._has_handlers){var _d=new nexacro.CheckBoxChangedEventInfo(this,"canchange",_b,_c);return this.canchange._fireEvent(this,_d);}return true;};_pCheckBox.on_notify_checkbox_onkeyup=function(_a,_b){if(_b.keycode==nexacro.Event.KEY_SPACE){this.on_fire_onclick("",_b.altKey,_b.ctrlKey,_b.shiftKey, -1, -1, -1, -1, -1, -1,this.parent,this);}};_pCheckBox._on_hotkey=function(_a,_b,_c,_d){this.on_fire_onclick("",e.alt_key,e.ctrl_key,e.shift_key, -1, -1, -1, -1, -1, -1,this.parent,this);};_pCheckBox._setValue=function(_a,_b,_c){var _d;if(this.isChecked()==this._isChecked(_a)){return this.value;}if(_c!==false){_d=this.on_fire_canchange(this,this.value,_a);}if(_d||_d===undefined){var _e=this.value;this.value=_a;this._reCalcValue();this._setAccessibilityStatChecked(this.isChecked());if(_e!==this.value){if(_c!==false){this.on_fire_onchanged(this,_e,this.value);}}if(_b==true){var _f=this.applyto_bindSource("value",_a);if(_f==false){this.value=_e;this._reCalcValue();}}}return this.value;};_pCheckBox._isChecked=function(_a){if(this.truevalue!=null){if(this.falsevalue!=null){if(_a==this.falsevalue||_a===undefined){return false;}if(_a==this.truevalue||nexacro._toBoolean(_a)){return true;}return false;}else{if(_a==this.truevalue||nexacro._toBoolean(_a)){return true;}else{return false;}}}else{if(this.falsevalue!=null){if(_a==this.falsevalue){return false;}else{return true;}}else{return nexacro._toBoolean(_a);}}};_pCheckBox._verticalalign=function(_a){};_pCheckBox._reCalcValue=function(){if(!this._control_element){return;}if(this.isChecked()){if(!this.truevalue){if(parseInt(this.value)!=1){this.value=true;}else{this.value=1;}}}else{if(!this.falsevalue){if(parseInt(this.value)!=0){this.value=false;}else{this.value=0;}}}this._setAccessibilityStatChecked(this.isChecked());this.on_apply_value();};delete _pCheckBox;nexacro.CheckBoxCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.CheckBox.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};_pCheckBoxCtrl=nexacro._createPrototype(nexacro.CheckBox,nexacro.CheckBoxCtrl);nexacro.CheckBoxCtrl.prototype=_pCheckBoxCtrl;_pCheckBoxCtrl._type_name="CheckBoxControl";nexacro._setForControlStyleFinder(_pCheckBoxCtrl);delete _pCheckBoxCtrl;nexacro.CheckBoxImageCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ImageViewerCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);};_pCheckBoxImageCtrl=nexacro._createPrototype(nexacro.ImageViewerCtrl,nexacro.CheckBoxImageCtrl);nexacro.CheckBoxImageCtrl.prototype=_pCheckBoxImageCtrl;_pCheckBoxImageCtrl.on_find_CurrentStyle_background=function(_a){return this.parent.on_find_CurrentStyle_buttonbackground(_a);};_pCheckBoxImageCtrl.on_find_CurrentStyle_buttonbackgroundimagemode=function(_a){return this.parent.on_find_CurrentStyle_buttonbackgroundimagemode(_a);};_pCheckBoxImageCtrl.on_find_CurrentStyle_image=function(_a){return this.parent.on_find_CurrentStyle_buttonimage(_a);};_pCheckBoxImageCtrl.on_find_CurrentStyle_border=function(_a){return this.parent.on_find_CurrentStyle_buttonborder(_a);};_pCheckBoxImageCtrl.on_find_CurrentStyle_bordertype=function(_a){return this.parent.on_find_CurrentStyle_buttonbordertype(_a);};_pCheckBoxImageCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent.on_find_CurrentStyle_buttongradation(_a);};_pCheckBoxImageCtrl.on_find_CurrentStyle_cursor=function(_a){return this.parent.on_find_CurrentStyle_cursor(_a);};_pCheckBoxImageCtrl.on_fire_onclick=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){this.parent.on_fire_onclick(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,this.parent,this);};_pCheckBoxImageCtrl.on_fire_ondblclick=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){this.parent.on_fire_ondblclick(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,this.parent,this);};delete _pCheckBoxImageCtrl;};