if(!nexacro.Button){nexacro.Button_Style=function(_a){nexacro.Style.call(this);if(_a){this._target=_a;}};var _pButtonStyle=nexacro._createPrototype(nexacro.Style,nexacro.Button_Style);nexacro.Button_Style.prototype=_pButtonStyle;eval(nexacro._createValueAttributeEvalStr("_pButtonStyle","image"));eval(nexacro._createAlignAttributeEvalStr("_pButtonStyle","imagealign"));_pButtonStyle.__custom_emptyObject=function(){this.image=null;this.imagealign=null;};_pButtonStyle.__get_custom_style_value=function(){var _a="";if(this.image&&!this.image._is_empty){_a+="image:"+this.image._value+"; ";}if(this.imagealign&&!this.imagealign._is_empty){_a+="imagealign:"+this.imagealign._value+"; ";}return _a;};nexacro.Button_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.image=null;this.imagealign=null;};var _pButtonCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.Button_CurrentStyle);nexacro.Button_CurrentStyle.prototype=_pButtonCurrentStyle;_pButtonCurrentStyle.__custom_emptyObject=_pButtonStyle.__custom_emptyObject;_pButtonCurrentStyle.__get_custom_style_value=_pButtonStyle.__get_custom_style_value;delete _pButtonStyle;delete _pButtonCurrentStyle;nexacro.Button=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Component.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.defaultbutton=false;this.escapebutton=false;this.selectStatus=false;this.wordwrap="none";this._apply_pushed_pseudo=true;this._text_elem=null;this._img_elem=null;this._text_width= -1;this._text_height= -1;this._image_width=0;this._image_height=0;this._is_hotkey_click=false;this._accessibility_role="button";};var _pButton=nexacro._createPrototype(nexacro.Component,nexacro.Button);nexacro.Button.prototype=_pButton;_pButton._type_name="Button";nexacro.Button._default_image_align=nexacro.Component._default_buttonimg_align;_pButton.on_apply_custom_pseudo=function(_a){var _b=this.currentstyle;var _c=this.on_find_CurrentStyle_font(_a);if(_b.font!=_c){_b.font=_c;this.on_apply_style_font(_c);}var _d=this.on_find_CurrentStyle_color(_a);if(_b.color!=_d){_b.color=_d;this.on_apply_style_color(_d);}var _e=this.on_find_CurrentStyle_image(_a);if(_e){var _g=this.on_find_CurrentStyle_align(_a);var _h=this.on_find_CurrentStyle_imagealign(_a);_b.align=_g;_b.imagealign=_h;if(_e!=_b.image){_b.image=_e;this._load_image(_e);}else{this._updateElementPositions(_g,_h);}}else{if(_b.image){_b.image=null;this._load_image(null);}var _g=this.on_find_CurrentStyle_align(_a);if(_g!=_b.align){_b.align=_g;this.on_apply_style_align(_g);}}var _f=this.on_find_CurrentStyle_rtlimagemirroring(_a);if(_f!=_b.rtlimagemirroring){_b.rtlimagemirroring=_f;this.on_apply_style_rtlimagemirroring(_f);}};_pButton.on_create_custom_style=function(){return new nexacro.Button_Style(this);};_pButton.on_create_custom_currentStyle=function(){return new nexacro.Button_CurrentStyle();};_pButton.on_find_CurrentStyle_image=function(_a){return this._find_pseudo_obj("image",_a);};_pButton.on_find_CurrentStyle_imagealign=function(_a){var _b=this._find_pseudo_obj("imagealign",_a,"align");return (_b)?_b:nexacro.Button._default_image_align;};_pButton.on_update_style_image=function(){this.on_apply_style_image(this.currentstyle.image=this.on_find_CurrentStyle_image(this._pseudo));};_pButton.on_update_style_imagealign=function(){this.on_apply_style_imagealign(this.currentstyle.imagealign=this.on_find_CurrentStyle_imagealign(this._pseudo));};_pButton.on_update_style_padding=function(){var _a=this.currentstyle.padding=this.on_find_CurrentStyle_padding(this._pseudo);this._control_element.setElementPadding(_a);this._updateClientSize(this._control_element);};_pButton.on_apply_style_color=function(_a){if(this._text_elem&&_a){this._text_elem.setElementColor(_a);}};_pButton.on_apply_style_font=function(_a){if(this._text_elem&&_a){this._text_elem.setElementFont(_a);this._text_width= -1;this._text_height= -1;if(this._img_elem){var _b=this.currentstyle;if(this._img_elem&&_b.align&&_b.imagealign){this._updateElementPositions(_b.align,_b.imagealign);}}}};_pButton.on_apply_style_align=function(_a){if(this._text_elem&&_a){if(this._img_elem&&this.currentstyle.imagealign){this._updateElementPositions(_a,this.currentstyle.imagealign);}else{var _b=(_a.halign==""?"center":_a._halign);var _c=(_a.valign==""?"middle":_a._valign);this._text_elem.setElementAlignXY(_b,_c);nexacro._updateTextElementPositions(this);}}};_pButton.on_apply_style_image=function(_a){this._load_image(this.currentstyle.image);};_pButton.on_apply_style_imagealign=function(_a){if(this._img_elem){this._updateElementPositions(this.currentstyle.align,_a);}};_pButton.on_create_contents=function(){var _a=this.getElement();if(_a){var _b=this.currentstyle;if(this.text){var _c=(_b.align.halign==""?"center":_b.align._halign);var _d=(_b.align.valign==""?"middle":_b.align._valign);var _e=new nexacro.TextBoxElement(_a);_e.setElementSize(this._client_width,this._client_height);_e.setElementFont(_b.font);_e.setElementColor(_b.color);_e.setElementAlignXY(_c,_d);this._text_elem=_e;_e=null;}if(_b.image){this._load_image(_b.image);}var _f=this._getMainForm();if(_f&&_f._defaultbutton==this){this._setAccessibilityFlagDefaultButton(true);}_f=null;}};_pButton.on_created_contents=function(){var _a=this.getElement();if(_a){var _b=this._text_elem;var _c=this._img_elem;if(_c){_c.create();}if(_b){_b.create();}if(this.expr){this.on_apply_expr();}this.on_apply_wordwrap();this.on_apply_prop_rtldirection();_b=null;_c=null;}_a=null;this._preloadImage();};if(nexacro.Browser=="IE"&&nexacro.BrowserVersion>=10){_pButton._preloadImage=function(){var _a=["mouseover","disabled","focused","pushed","selected"];var _b=_a.length;for(var _c=0;_c<_b;_c++ ){var _d=this.on_find_CurrentStyle_image(_a[_c]);var _e=_d?_d._value:"";if(_e){_e=nexacro._getURIValue(_e);_e=nexacro._getImageLocation(_e,this._getRefFormBaseUrl());nexacro._getImageSize(_e,function(){},this);}}};}else{_pButton._preloadImage=function(){};}_pButton.destroyComponent=function(){if(!this._is_alive){return;}var _a=this._getMainForm();if(_a){if(_a._defaultbutton==this){_a._defaultbutton=null;}if(_a._escapebutton==this){_a._escapebutton=null;}}return nexacro.Component.prototype.destroyComponent.call(this);};_pButton.on_destroy_contents=function(){var _a=this._text_elem;var _b=this._img_elem;if(_a){_a.destroy();this._text_elem=null;}if(_b){_b.destroy();this._img_elem=null;}};_pButton.on_change_containerRect=function(_a,_b){var _c=this._text_elem;var _d=this._img_elem;if(_c){_c.setElementSize(_a,_b);if(_d){this._updateElementPositions(this.currentstyle.align,this.currentstyle.imagealign);}else{nexacro._updateTextElementPositions(this);}}else if(_d){this._updateElementPositions(this.currentstyle.align,this.currentstyle.imagealign);}this.on_apply_custom_pseudo(this._pseudo);};_pButton._getDlgCode=function(_a,_b,_c,_d){return {want_tab:false,want_return:true,want_escape:false,want_chars:false,want_arrows:false};};_pButton._img_load_completed=function(_a){var _b=this.currentstyle;var _c=_b.imagealign?_b.imagealign:this.on_find_CurrentStyle_imagealign(this._pseudo);_b.imagalign=_c;this._updateElementPositions(_b.align,_c);this._img_elem.setElementImageUrl(_a);_c=null;_b=null;};_pButton._on_loadImg=function(_a,_b,_c){if(!this._is_alive){return;}if(this._lastest_imgurl!=_a){return;}this._image_width=_b;this._image_height=_c;this._img_load_completed(_a);this.on_apply_custom_pseudo(this._pseudo);};_pButton._load_image=function(_a){var _b=this._control_element;if(_b&&_a){var _c=_a?_a._value:"";if(_c){_c=nexacro._getURIValue(_c);_c=nexacro._getImageLocation(_c,this._getRefFormBaseUrl());var _d=this._img_elem;if(!_d){_d=new nexacro.ImageElement(_b);this._img_elem=_d;if(this._is_created){_d.create();}}this._lastest_imgurl=_c;var _e=nexacro._getImageSize(_c,this._on_loadImg,this);if(_e){this._image_width=_e.width;this._image_height=_e.height;this._img_load_completed(_c);}_d=null;}else{if(this._img_elem){this._img_elem.destroy();this._img_elem=null;this._image_width=0;this._image_height=0;this._lastest_imgurl="";if(this._text_elem){var _f=this.currentstyle.align;var _g=(_f.halign==""?"center":_f._halign);var _h=(_f.valign==""?"middle":_f._valign);this._text_elem.setElementAlignXY(_g,_h);}}}}};_pButton._updateElementPositions=function(_a,_b){if(!this._is_created_contents){return;}var _c=this._text_elem;var _d=this._img_elem;if(_c&&_d&&_a&&_b){var _e=this._client_width;var _f=this._client_height;var _g=(_a.halign==""?"center":_a.halign);var _h=(_a.valign==""?"middle":_a.valign);var _i=_b.halign;var _j=_b.valign;var _k,_l;if(this._text_width<0){var _m=this.currentstyle.font||nexacro.Component._default_font;var _n=nexacro._getTextSize(this.text,_m);_k=this._text_width=_n[0];_l=this._text_height=_n[1];}else{_k=this._text_width;_l=this._text_height;}var _o=this._image_width;var _p=this._image_height;var _q;var _r,_s;var _t,_u;switch(_i){case "lefttext":if(_g=="left"){_q=0;}else if(_g=="right"){_q=_e-_k-_o;}else{_q=((_e-_k-_o)/2)|0;}_r=_q;_q+=_o;_t=_q;_g="left";break;case "righttext":if(_g=="left"){_q=0;}else if(_g=="right"){_q=_e-_k-_o;}else{_q=((_e-_k-_o)/2)|0;}_t=_q;_q+=_k;_r=_q;_g="left";break;case "left":_r=0;_t=0;break;case "right":_q=_e-_o;_r=_q;_t=0;break;default:_q=((_e-_o)/2)|0;_r=_q;_t=0;break;}switch(_j){case "toptext":if(_h=="top"){_q=0;}else if(_h=="bottom"){_q=_f-_l-_p;}else{_q=((_f-_l-_p)/2)|0;}_s=_q;_q+=_p;_u=_q;_h="top";break;case "bottomtext":if(_h=="top"){_q=0;}else if(_h=="bottom"){_q=_f-_l-_p;}else{_q=((_f-_l-_p)/2)|0;}_u=_q;_q+=_l;_s=_q;_h="top";break;case "top":_s=0;_u=0;break;case "bottom":_q=_f-_p;_s=_q;_u=0;break;default:_q=((_f-_p)/2)|0;_s=_q;_u=0;break;}_t=_t<0?0:_t;_u=_u<0?0:_u;_r=this._convertLeftForRtlLayout(_r,_o);_d.setElementPosition(_r,_s);_d.setElementSize(_o,_p);_c.setElementAlignXY(_g,_h);_c.setElementPaddingXY(_t,_u,0,0);}else if(_c&&_a){var _g=(_a.halign==""?"center":_a._halign);var _h=(_a.valign==""?"middle":_a._valign);_c.setElementAlignXY(_g,_h);}else if(_d&&_b){var _e=this._client_width;var _f=this._client_height;var _g="center";var _h="middle";if(_a){_g=_a.halign==""?"center":_a.halign;_h=_a.valign==""?"middle":_a.valign;}var _i=_b.halign;var _j=_b.valign;var _o=this._image_width;var _p=this._image_height;var _q;var _r,_s;switch(_i){case "lefttext":case "righttext":if(_g=="left"){_r=0;}else if(_g=="right"){_r=_e-_o;}else{_r=((_e-_o)/2)|0;}break;case "left":_r=0;break;case "right":_r=_e-_o;break;default:_r=((_e-_o)/2)|0;break;}switch(_j){case "toptext":case "bottomtext":if(_h=="top"){_s=0;}else if(_h=="bottom"){_s=_f-_p;}else{_s=((_f-_p)/2)|0;}break;case "top":_s=0;break;case "bottom":_s=_f-_p;break;default:_s=((_f-_p)/2)|0;break;}_r=this._convertLeftForRtlLayout(_r,_o);_d.setElementPosition(_r,_s);_d.setElementSize(_o,_p);}_c=null;_d=null;};_pButton.on_apply_text=function(){var _a=this._control_element;if(_a){var _b=this.currentstyle;var _c=this._text_elem;if(!_c){_c=new nexacro.TextBoxElement(_a);this._text_elem=_c;this.on_apply_wordwrap();var _d,_e;if(_b.align){_d=(_b.align.halign==""?"center":_b.align._halign);_e=(_b.align.valign==""?"middle":_b.align._valign);}else{_d="center";_e="middle";}_c.setElementSize(this._client_width,this._client_height);_c.setElementColor(_b.color);_c.setElementFont(_b.font);_c.setElementAlignXY(_d,_e);if(this._is_created){_c.create();}}var _f=this.expr;if(_f&&_f.length>0){_f=_f.trim().split(":");var _g=new nexacro.ExprParser();var _h,_i;var _j;if(_f.length==1){_j=_f[0];}else{if(_f[0].trim().toUpperCase()!="EXPR"){_j=_f.join(":");}else{_j=_f.slice(1).join(":");}}_h=_g.makeExpr(this,_j);_g=null;_i=nexacro._createInlineFunc(_h,["comp"]);if(_i){try{var _k=nexacro._toString(_i.call(null,this));if(_k!=this.displaytext){this.displaytext=_k;}}catch(e){return;}}}else{this.displaytext=this.text;}_f=null;_c.setElementText(this.displaytext);if(this.displaytext&&this.displaytext!=""){this._text_width= -1;this._text_height= -1;}else{this._text_width=0;this._text_height=0;}if(this._img_elem){this._updateElementPositions(_b.align,_b.imagealign);}else{nexacro._updateTextElementPositions(this);}_c=null;_b=null;this._refreshAccessibilityValue();}};_pButton.on_apply_expr=function(){this.on_apply_text();};_pButton.on_apply_prop_rtldirection=function(){var _a=this.getElement();var _b=this._rtldirection;if(_a){_a.setElementRtlDirection(_b);if(this._img_elem){this._updateElementPositions(this.currentstyle.align,this.currentstyle.imagealign);this._img_elem.setElementImageMirror(null,true);}else{nexacro._updateTextElementPositions(this);}}};_pButton._on_hotkey=function(_a,_b,_c,_d){this._is_hotkey_click=true;this.click();};_pButton.set_defaultbutton=function(_a){this.defaultbutton=nexacro._toBoolean(_a);var _b=this._getMainForm();if(_b){if(nexacro._toBoolean(_a)==true){_b._defaultbutton=this;this._setAccessibilityFlagDefaultButton(true);}else{if(_b._defaultbutton==this){_b._defaultbutton=null;this._setAccessibilityFlagDefaultButton(false);}}}};_pButton.set_escapebutton=function(_a){this.escapebutton=nexacro._toBoolean(_a);var _b=this._getMainForm();if(_b){var _c=!(this.parent==_b||this._is_created);if(nexacro._toBoolean(_a)==true){if(!_c){_b._escapebutton=this;}}else{if(_b._escapebutton==this){_b._escapebutton=null;}}}};_pButton.click=function(){this.on_fire_onclick("none",false,false,false, -1, -1, -1, -1, -1, -1,this,this);};_pButton.on_fire_sys_onkeyup=function(_a,_b,_c,_d,_e,_f){var _g=nexacro.Component.prototype.on_fire_sys_onkeyup.call(this,_a,_b,_c,_d,_e,_f);var _h=this._getWindow();var _i=_h._cur_ldown_elem||_h._keydown_element;if(!this._is_subcontrol&&!this._is_hotkey_click){if(_i==this._cur_ldown_elem){if(_a==13||_a==32){this.click();}}}this._cur_ldown_elem=null;this._is_hotkey_click=false;return _g;};_pButton._cur_ldown_elem=null;_pButton.on_fire_sys_onkeydown=function(_a,_b,_c,_d,_e,_f){var _g=nexacro.Component.prototype.on_fire_sys_onkeydown.call(this,_a,_b,_c,_d,_e,_f);var _h=this._getWindow();this._cur_ldown_elem=_h._cur_ldown_elem||_h._keydown_element;return _g;};_pButton.getSelectStatus=function(){return this.selectStatus;};_pButton.setSelectStatus=function(_a){var _b=this.selectStatus;if(_a){this._stat_change("select","selected");}else{this._stat_change("notselect","normal");}this.selectStatus=_a;return _b;};_pButton.toggleSelectStatus=function(){var _a=this.selectStatus;this.setSelectStatus(!_a);return _a;};_pButton.on_getBindableProperties=function(){return "value";};_pButton.set_wordwrap=function(_a){if(typeof (_a)=="string"){_a=_a.toLowerCase();}if(_a!=this.wordwrap){this.wordwrap=_a;this.on_apply_wordwrap();}};_pButton.on_apply_wordwrap=function(){if(this._text_elem){this._text_elem.setElementWordWrap(this.wordwrap);}};delete _pButton;nexacro.ImageButton=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Button.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.defaultbutton=false;this.escapebutton=false;this.selectStatus=false;this._img_elem=null;this._apply_pushed_pseudo=true;this._is_simple_control=true;};var _pImageButton=nexacro._createPrototype(nexacro.Button,nexacro.ImageButton);nexacro.ImageButton.prototype=_pImageButton;_pImageButton.on_create_custom_style=function(){return new nexacro.Button_Style(this);};_pImageButton.on_create_custom_currentStyle=function(){return new nexacro.Button_CurrentStyle();};_pImageButton.on_find_CurrentStyle_image=function(_a){return this._find_pseudo_obj("image",_a);};_pImageButton.on_find_CurrentStyle_imagealign=function(_a){var _b=this._find_pseudo_obj("imagealign",_a,"align");return (_b)?_b:nexacro.Button._default_image_align;};_pImageButton.on_update_style_image=function(){this.on_apply_style_image(this.currentstyle.image=this.on_find_CurrentStyle_image(this._pseudo));};_pImageButton.on_update_style_imagealign=function(){this.on_apply_style_imagealign(this.currentstyle.imagealign=this.on_find_CurrentStyle_imagealign(this._pseudo));};_pImageButton.on_apply_custom_pseudo=function(_a){var _b=this.currentstyle;var _c=this.on_find_CurrentStyle_image(_a);if(_c!=_b.image){_b.image=_c;this._load_image(_c);}var _d=this.on_find_CurrentStyle_align(_a);var _e=this.on_find_CurrentStyle_imagealign(_a);if(_d!=_b.align||_e!=_b.imagealign){_b.align=_d;_b.imagealign=_e;this._update_align(_d,_e);}var _f=this.on_find_CurrentStyle_rtlimagemirroring(_a);if(_f!=_b.rtlimagemirroring){this.on_apply_style_rtlimagemirroring(_b.rtlimagemirroring=_f);}_b=null;};_pImageButton.on_apply_style_image=function(_a){this._load_image(_a);};_pImageButton.on_apply_style_align=function(_a){this._update_align(_a,this.currentstyle.imagealign);};_pImageButton.on_apply_style_imagealign=function(_a){this._update_align(_a,this.currentstyle.imagealign);};_pImageButton.on_create_contents=function(){var _a=this._control_element;var _b=new nexacro.AlignImageElement(_a);var _c=this.currentstyle;_b.setElementPosition(this._client_left,this._client_top);_b.setElementSize(this._client_width,this._client_height);this._img_elem=_b;this._update_align(_c.align,_c.imagealign);this._load_image(_c.image);_b=null;_a=null;_c=null;};_pImageButton.on_created_contents=function(){this._img_elem.create();};_pImageButton.on_destroy_contents=function(){if(this._img_elem){this._img_elem.destroy();this._img_elem=null;}};_pImageButton.on_change_containerPos=function(_a,_b){if(this._img_elem&&!(this.getElement()._vml_elem)){this._img_elem.setElementPosition(_a,_b);}};_pImageButton.on_change_containerRect=function(_a,_b){if(this._img_elem){this._img_elem.setElementSize(_a,_b);}};_pImageButton._load_image=function(_a){var _b=this._img_elem;if(_b){var _c=_a?_a._value:"";if(_c){_c=nexacro._getURIValue(_c);_c=nexacro._getImageLocation(_c,this._getRefFormBaseUrl());_b.setElementImageUrl(_c);}else{_b.setElementImageUrl("");}}_b=null;};_pImageButton._update_align=function(_a,_b){if(_a==null||_b==null){return;}var _c=this._img_elem;if(_c){var _d=this._client_width;var _e=this._client_height;var _f=_a.halign==""?"center":_a.halign;var _g=_a.valign==""?"middle":_a.valign;var _h=_b.halign;var _i=_b.valign;switch(_h){case "left":case "right":_f=_h;break;}switch(_i){case "top":case "bottom":_g=_i;break;}_c.setElementAlignXY(_f,_g);}_c=null;};_pImageButton.on_apply_text=function(){};_pImageButton.on_apply_expr=function(){};_pImageButton.on_apply_prop_rtldirection=function(){var _a=this.getElement();var _b=this._rtldirection;if(_a){_a.setElementRtlDirection(_b);var _c=this._img_elem;if(_c){var _d=_a.client_left;var _e=_a.client_top;var _f=_a.client_width;_d=this._convertLeftForRtlLayout(_d,_f);_c.setElementImageMirror(null,true);_c.setElementPosition(_d,_e);}}};_pImageButton.click=function(){this.on_fire_onclick("none",false,false,false, -1, -1, -1, -1, -1, -1,this,this);};_pImageButton.getSelectStatus=function(){return this.selectStatus;};_pImageButton.setSelectStatus=function(_a){var _b=this.selectStatus;if(_a){this._stat_change("select","selected");}else{this._stat_change("notselect","normal");}this.selectStatus=_a;return _b;};_pImageButton.toggleSelectStatus=function(){var _a=this.selectStatus;this.selectStatus=!_a;return _a;};_pImageButton._setRealEnable=function(_a){if(_a==undefined){_a=this.enable;}if(this._real_enable!=_a){var _b=this._control_element;this._real_enable=_a;if(_a){this._status="enable";this._pseudo="normal";}else{this._status="disable";this._pseudo="disabled";}if(this.visible&&_b){this._updateControl(_b,this._pseudo);this._updateContents(_b,this._pseudo);}}};delete _pImageButton;nexacro.ButtonCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Button.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pButtonCtrl=nexacro.ButtonCtrl.prototype=nexacro._createPrototype(nexacro.Button,nexacro.ButtonCtrl);_pButtonCtrl._type_name="ButtonControl";nexacro._setForControlStyleFinder(_pButtonCtrl);delete _pButtonCtrl;nexacro.TrackButtonCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ButtonCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_track=true;};var _pTrackButtonCtrl=nexacro.TrackButtonCtrl.prototype=nexacro._createPrototype(nexacro.ButtonCtrl,nexacro.TrackButtonCtrl);delete _pTrackButtonCtrl;nexacro.ImageButtonCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ImageButton.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pImageButtonCtrl=nexacro.ImageButtonCtrl.prototype=nexacro._createPrototype(nexacro.ImageButton,nexacro.ImageButtonCtrl);_pImageButtonCtrl._type_name="ButtonControl";nexacro._setForControlStyleFinder(_pImageButtonCtrl);_pImageButtonCtrl.on_apply_pseudo=function(_a){if(this.parent._set_real){return;}var _b=this.parent;var _c=this.enable;while(_b!=null){if(_b._real_enable==false||_b.enable==false){_c=false;break;}if(_b.parent&&!_b.parent._is_application&&_b._getWindow()!=_b.parent._getWindow()){break;}_b=_b.parent;}if(this._setEnable(_c)){return;}this._pseudo=_a=this._getResultPseudo(this._status,_a);var _d=this.getElement();if(this.visible&&_d){this._updateControl(_d,_a);this._updateContents(_d,_a);}_b=null;_d=null;};_pImageButtonCtrl.on_find_CurrentStyle_rtlimagemirroring=function(_a){var _b=this.parent.on_find_CurrentStyle_rtlimagemirroring(_a);if(!_b){_b=this._find_inherit_pseudo_obj("rtlimagemirroring",_a);}return _b;};delete _pImageButtonCtrl;nexacro.TrackImageButtonCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ImageButtonCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_track=true;};var _pTrackImageButtonCtrl=nexacro.TrackImageButtonCtrl.prototype=nexacro._createPrototype(nexacro.ImageButtonCtrl,nexacro.TrackImageButtonCtrl);delete _pTrackImageButtonCtrl;nexacro.StepImageButtonCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ImageButton.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pStepImageButtonCtrl=nexacro._createPrototype(nexacro.ImageButton,nexacro.StepImageButtonCtrl);nexacro.StepImageButtonCtrl.prototype=_pStepImageButtonCtrl;_pStepImageButtonCtrl.on_find_CurrentStyle_background=function(_a){return this.parent._find_pseudo_obj("buttonbackground",_a,"background");;};_pStepImageButtonCtrl.on_find_CurrentStyle_border=function(_a){return this.parent._find_pseudo_obj("buttonborder",_a,"border");;};_pStepImageButtonCtrl.on_find_CurrentStyle_bordertype=function(_a){return this.parent._find_pseudo_obj("buttonbordertype",_a,"bordertype");;};_pStepImageButtonCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent._find_pseudo_obj("buttongradation",_a,"gradation");;};_pStepImageButtonCtrl.on_find_CurrentStyle_padding=function(_a){};_pStepImageButtonCtrl.on_find_CurrentStyle_accessibility=function(_a){};_pStepImageButtonCtrl._on_getAccessibilityAdditionalLabel=function(){var _a=this.parent;if(_a){var _b=this.id+" "+_a.stepcount;return _b;}_a=null;return "";};_pStepImageButtonCtrl._on_getAccessibilityAdditionalRole=function(){return " Step";};delete _pStepImageButtonCtrl;}