if(!nexacro.StatusBar){nexacro.StatusBar_Style=function(_a){this._target=_a||null;this.gripimage=null;this.progressbarheight=null;this.progressbarwidth=null;this.progressbargab=null;this.progressbargap=null;this.zoomcomboheight=null;this.zoomcombowidth=null;this.zoomcombogab=null;this.zoomcombogap=null;};var _pStatusBarStyle=nexacro._createPrototype(nexacro.Style,nexacro.StatusBar_Style);nexacro.StatusBar_Style.prototype=_pStatusBarStyle;eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","gripimage"));eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","progressbarheight"));eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","progressbarwidth"));eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","progressbargab"));eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","progressbargap"));eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","zoomcomboheight"));eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","zoomcombowidth"));eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","zoomcombogab"));eval(nexacro._createValueAttributeEvalStr("_pStatusBarStyle","zoomcombogap"));_pStatusBarStyle.__custom_emptyObject=function(){this.gripimage=null;this.progressbarheight=null;this.progressbarwidth=null;this.progressbargab=null;this.progressbargap=null;this.zoomcomboheight=null;this.zoomcombowidth=null;this.zoomcombogab=null;this.zoomcombogap=null;};_pStatusBarStyle.__get_custom_style_value=function(){var _a="";if(this.gripimage&&!this.gripimage._is_empty){_a+="gripimage:"+this.gripimage._value+"; ";}if(this.progressbarheight&&!this.progressbarheight._is_empty){_a+="progressbarheight:"+this.progressbarheight._value+"; ";}if(this.progressbarwidth&&!this.progressbarwidth._is_empty){_a+="progressbarwidth:"+this.progressbarwidth._value+"; ";}if(this.progressbargab&&!this.progressbargab._is_empty){_a+="progressbargab:"+this.progressbargab._value+"; ";}if(this.progressbargap&&!this.progressbargap._is_empty){_a+="progressbargap:"+this.progressbargap._value+"; ";}if(this.zoomcomboheight&&!this.zoomcomboheight._is_empty){_a+="zoomcomboheight:"+this.zoomcomboheight._value+"; ";}if(this.zoomcombowidth&&!this.zoomcombowidth._is_empty){_a+="zoomcombowidth:"+this.zoomcombowidth._value+"; ";}if(this.zoomcombogab&&!this.zoomcombogab._is_empty){_a+="zoomcombogab:"+this.zoomcombogab._value+"; ";}if(this.zoomcombogap&&!this.zoomcombogap._is_empty){_a+="zoomcombogap:"+this.zoomcombogap._value+"; ";}return _a;};nexacro.StatusBar_CurrentStyle=function(){this.gripimage=null;this.progressbarheight=null;this.progressbarwidth=null;this.progressbargab=null;this.progressbargap=null;this.zoomcomboheight=null;this.zoomcombowidth=null;this.zoomcombogab=null;this.zoomcombogap=null;};var _pStatusBarCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.StatusBar_CurrentStyle);nexacro.StatusBar_CurrentStyle.prototype=_pStatusBarCurrentStyle;_pStatusBarCurrentStyle.__custom_emptyObject=_pStatusBarStyle.__custom_emptyObject;_pStatusBarCurrentStyle.__get_custom_style_value=_pStatusBarStyle.__get_custom_style_value;delete _pStatusBarStyle;delete _pStatusBarCurrentStyle;nexacro.StatusBar=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Form.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.progressbar=null;this.zoomcombo=null;this.showzoomcombo=false;this._is_nc_control=true;this._text_elem=null;this._gripimage_elem=null;this._gripimage_size={};this._statustext="";this._resizable=false;this._is_scrollable=false;};var _pStatusBar=nexacro._createPrototype(nexacro.Form,nexacro.StatusBar);nexacro.StatusBar.prototype=_pStatusBar;_pStatusBar._type_name="StatusBar";nexacro.StatusBar._default_align=nexacro.Component._default_left_align;nexacro.StatusBar._default_gripimage="";nexacro.StatusBar._default_progressbarwidth=new nexacro.Style_value("200");nexacro.StatusBar._default_progressbarheight=new nexacro.Style_value("20");nexacro.StatusBar._default_progressbargab=new nexacro.Style_value("1");nexacro.StatusBar._default_progressbargap=new nexacro.Style_value("1");nexacro.StatusBar._default_zoomcombowidth=new nexacro.Style_value("70");nexacro.StatusBar._default_zoomcomboheight=new nexacro.Style_value("20");nexacro.StatusBar._default_zoomcombogap=new nexacro.Style_value("1");nexacro.StatusBar._default_zoomcombogab=nexacro.StatusBar._default_zoomcombogap;_pStatusBar.on_create_custom_style=function(){return new nexacro.StatusBar_Style(this);};_pStatusBar.on_create_custom_currentStyle=function(){return new nexacro.StatusBar_CurrentStyle();};_pStatusBar.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_gripimage(_a);if(_e!=_b.gripimage){_b.gripimage=_e;this.on_apply_style_gripimage(_e);}};_pStatusBar.on_find_CurrentStyle_gripimage=function(_a){var _b=this._find_pseudo_obj("gripimage",_a,"value");return _b?_b:nexacro.StatusBar._default_gripimage;};_pStatusBar.on_find_CurrentStyle_progressbarwidth=function(_a){return this._find_pseudo_obj("progressbarwidth",_a,"value")||nexacro.StatusBar._default_progressbarwidth;};_pStatusBar.on_find_CurrentStyle_progressbarheight=function(_a){return this._find_pseudo_obj("progressbarheight",_a,"value")||nexacro.StatusBar._default_progressbarheight;};_pStatusBar.on_find_CurrentStyle_progressbargab=function(_a){return this._find_pseudo_obj("progressbargab",_a,"value")||nexacro.StatusBar._default_progressbargab;};_pStatusBar.on_find_CurrentStyle_progressbargap=function(_a){return this._find_pseudo_obj("progressbargap",_a,"value")||nexacro.StatusBar._default_progressbargap;};_pStatusBar.on_find_CurrentStyle_zoomcombowidth=function(_a){return this._find_pseudo_obj("zoomcombowidth",_a,"value")||nexacro.StatusBar._default_zoomcombowidth;};_pStatusBar.on_find_CurrentStyle_zoomcomboheight=function(_a){return this._find_pseudo_obj("zoomcomboheight",_a,"value")||nexacro.StatusBar._default_zoomcomboheight;};_pStatusBar.on_find_CurrentStyle_zoomcombogab=function(_a){return this._find_pseudo_obj("zoomcombogab",_a,"value")||nexacro.StatusBar._default_zoomcombogab;};_pStatusBar.on_find_CurrentStyle_zoomcombogap=function(_a){return this._find_pseudo_obj("zoomcombogap",_a,"value")||nexacro.StatusBar._default_zoomcombogap;};_pStatusBar.on_update_style_gripimage=function(){this.on_apply_style_gripimage(this.currentstyle.gripimage=this.on_find_CurrentStyle_gripimage(this._pseudo));};_pStatusBar.on_update_style_progressbarwidth=function(){this.on_apply_style_progressbarwidth(this.currentstyle.progressbarwidth=this.on_find_CurrentStyle_progressbarwidth(this._pseudo));};_pStatusBar.on_update_style_progressbarheight=function(){this.on_apply_style_progressbarheight(this.currentstyle.progressbarheight=this.on_find_CurrentStyle_progressbarheight(this._pseudo));};_pStatusBar.on_update_style_progressbargab=function(){this.on_apply_style_progressbargab(this.currentstyle.progressbargab=this.on_find_CurrentStyle_progressbargab(this._pseudo));};_pStatusBar.on_update_style_progressbargap=function(){this.on_apply_style_progressbargap(this.currentstyle.progressbargap=this.on_find_CurrentStyle_progressbargap(this._pseudo));};_pStatusBar.on_update_style_zoomcombowidth=function(){this.on_apply_style_zoomcombowidth(this.currentstyle.zoomcombowidth=this.on_find_CurrentStyle_zoomcombowidth(this._pseudo));};_pStatusBar.on_update_style_zoomcomboheight=function(){this.on_apply_style_zoomcomboheight(this.currentstyle.zoomcomboheight=this.on_find_CurrentStyle_zoomcomboheight(this._pseudo));};_pStatusBar.on_update_style_zoomcombogab=function(){this.on_apply_style_zoomcombogab(this.currentstyle.zoomcombogab=this.on_find_CurrentStyle_zoomcombogab(this._pseudo));};_pStatusBar.on_update_style_zoomcombogap=function(){this.on_apply_style_zoomcombogap(this.currentstyle.zoomcombogap=this.on_find_CurrentStyle_zoomcombogap(this._pseudo));};_pStatusBar.on_apply_style_gripimage=function(_a){if(this.gripimage==null&&this._gripimage_elem){this._gripimage_elem.setElementImageUrl(_a.value);}};_pStatusBar.on_apply_style_progressbarwidth=function(_a){if(this.progressbar&&this.progressbar.visible&&this._is_created){this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_apply_style_progressbarheight=function(_a){if(this.progressbar&&this.progressbar.visible&&this._is_created){this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_apply_style_progressbargab=function(_a){if(this.progressbar&&this.progressbar.visible&&this._is_created){this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_apply_style_progressbargap=function(_a){if(this.progressbar&&this.progressbar.visible&&this._is_created){this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_apply_style_zoomcombowidth=function(_a){if(this.zoomcombo&&this.zoomcombo.visible&&this._is_created){this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_apply_style_zoomcomboheight=function(_a){if(this.zoomcombo&&this.zoomcombo.visible&&this._is_created){this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_apply_style_zoomcombogab=function(_a){if(this.zoomcombo&&this.zoomcombo.visible&&this._is_created){this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_apply_style_zoomcombogap=function(_a){if(this.zoomcombo&&this.zoomcombo.visible&&this._is_created){this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_apply_style_font=function(_a){if(this._text_elem){this._text_elem.setElementFont(_a);}};_pStatusBar.on_apply_style_color=function(_a){if(this._text_elem){this._text_elem.setElementColor(_a);}};_pStatusBar.on_create_contents=function(){var _a=this.getElement();if(_a){var _b=this.currentstyle;var _c=this._text_elem=new nexacro.TextBoxElement(_a);if(this._statustext){_c.setElementText(this._statustext);}_c.setElementAlign(_b.align?_b.align:nexacro.StatusBar._default_align);_c.setElementFont(_b.font);_c.setElementColor(_b.color);var _d=this.progressbar=new nexacro.ProgressBarCtrl("progressbar","absolute",0,0,0,0,null,null,this);var _e=this.zoomcombo=new nexacro.ComboCtrl("zoomcombo","absolute",0,0,0,0,null,null,this);if(_e){var _f=new nexacro.Dataset("dszoomlist",_e);_f.addColumn("code","int","10");_f.addColumn("data","string","255");var _g=_f.addRow();_f.setColumn(_g,"code","50");_f.setColumn(_g,"data","50%");_g=_f.addRow();_f.setColumn(_g,"code","75");_f.setColumn(_g,"data","75%");_g=_f.addRow();_f.setColumn(_g,"code","100");_f.setColumn(_g,"data","100%");_g=_f.addRow();_f.setColumn(_g,"code","125");_f.setColumn(_g,"data","125%");_g=_f.addRow();_f.setColumn(_g,"code","150");_f.setColumn(_g,"data","150%");_g=_f.addRow();_f.setColumn(_g,"code","200");_f.setColumn(_g,"data","200%");_g=_f.addRow();_f.setColumn(_g,"code","400");_f.setColumn(_g,"data","400%");_e.setInnerDataset(_f);_e.set_codecolumn("code");_e.set_datacolumn("data");}var _h=this._gripimage_elem=new nexacro.AlignImageElement(_a);_h.setElementAlignXY("right","bottom");var _i=_b.gripimage.value;_h.setElementImageUrl(_i?_i:this._default_gripimage);var _j=this.getOwnerFrame();if(_j){_e._setEventHandler("onitemchanged",this.on_zoomcombo_itemchanged,this);}_d.createComponent();if(_e){_e.createComponent();}this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar.on_created_contents=function(){this._text_elem.create();this.progressbar.on_created();if(this.zoomcombo){this.zoomcombo.on_created();}this._gripimage_elem.create();this._setResizable(this._resizable);};_pStatusBar.on_destroy_contents=function(){var _a=this._text_elem;var _b=this.progressbar;var _c=this.zoomcombo;var _d=this._gripimage_elem;if(_a){_a.destroy();this._text_elem=null;}if(_b){_b.destroy();this.progressbar=null;}if(_c){_c.destroy();this.zoomcombo=null;}if(_d){_d.destroy();this.gripimageElem=null;}};_pStatusBar.on_zoomcombo_itemchanged=function(_a,_b){var _c=this.zoomcombo;if(_c){var _d=_c.value;this._allFrameSetZoom(application.mainframe,_d);}};_pStatusBar.on_change_containerRect=function(_a,_b){this._updateControlPosition(_a,_b);};_pStatusBar.set_statustext=function(_a){this._statustext=_a;if(this._text_elem){this._text_elem.setElementText(_a);}};_pStatusBar.set_gripimage=function(_a){this.gripimage=_a;if(this._gripimage_elem){if(!_a){this.currentstyle.gripimage._value=_a;}this._gripimage_elem.setElementImageUrl(_a);}};_pStatusBar.set_showzoomcombo=function(_a){if(this.showzoomcombo!=_a){this.showzoomcombo=_a;this._updateControlPosition(this._client_width,this._client_height);}};_pStatusBar._refreshZoomCombo=function(_a){if(!_a){_a=application.getActiveForm();}if(_a){var _b=_a.getZoom();var _c=this.zoomcombo;if(_c){_c.set_value(_b);}}};_pStatusBar._setResizable=function(_a){var _b=this.getOwnerFrame();if(_b&&this._gripimage_elem){if(!this._gripimage_elem._handle){this._resizable=_a;return;}this._gripimage_elem._is_track=_a;var _c;if(_a){_c=new nexacro.Style_value("se-resize");}else{_c=new nexacro.Style_value("arrow");}if(_a&&_b._is_window){hittest_type="resizingborder_bottomright";}else{hittest_type=undefined;}nexacro.ControlElementBase.prototype.setElementCursor.call(this._gripimage_elem,_c);nexacro.ControlElementBase.prototype.setElementHittestType.call(this._gripimage_elem,hittest_type);if(this._gripimage_elem._on_starttrack==undefined){this._gripimage_elem._on_starttrack=function(){_b._on_border_starttrack(_c);};this._gripimage_elem._on_endtrack=function(_d,_e,_f){_b._on_border_endtrack(_d,_e,_f);};this._gripimage_elem._on_movetrack=function(_d,_e,_f){_b._on_border_movetrack(_d,_e,_f);};}}};_pStatusBar._allFrameSetZoom=function(_a,_b){if(_a){if(_a instanceof nexacro.MainFrame||_a instanceof nexacro.FrameSetBase){var _c=_a.all;var _d=(_c)?_c.length:0;for(var _e=0;_e<_d;_e++ ){this._allFrameSetZoom(_c[_e],_b);}}else if(_a instanceof nexacro.ChildFrame){_a.form.setZoom(_b);}}};_pStatusBar._updateControlPosition=function(_a,_b){var _c=20;var _d=((_b-_c)/2)|0;if(_d<0){_d=0;}var _e=5;var _f=_a;if(_f<0){_f=0;}var _g=this._text_elem;_g.setElementPosition(_e,_d);_g.setElementSize(_f,_b-_d-_d);var _h=this._gripimage_elem;_e=_a-_c;_h.setElementPosition(_e,0);_h.setElementSize(_c,_b);var _i=_e;if(this.zoomcombo){if(this.showzoomcombo&&this._movezoomcombo){_i=this._movezoomcombo(_e,_d,_a,_b);this.zoomcombo.set_visible("true");}else{this.zoomcombo.move(_e,_d,0,0);this.zoomcombo.set_visible("false");}}var _j=this.currentstyle;var _k=this.on_find_CurrentStyle_progressbarwidth(this._pseudo);var _l=this.on_find_CurrentStyle_progressbarheight(this._pseudo);var _m=this.on_find_CurrentStyle_progressbargap(this._pseudo);_e=_i-_k-_m;if(_e<0){_e=0;_k=(_i-_m);}_d=((_b-_l)/2)|0;if(_d<0){_d=0;}if((_d+_l)<_b){_l=_b-_d;}this.progressbar.move(_e,_d,_k,_l);};delete _pStatusBar;nexacro.StatusBarCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.StatusBar.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pStatusBarCtrl=nexacro._createPrototype(nexacro.StatusBar,nexacro.StatusBarCtrl);nexacro.StatusBarCtrl.prototype=_pStatusBarCtrl;_pStatusBarCtrl._type_name="StatusBarControl";nexacro._setForTypedControlStyleFinder(_pStatusBarCtrl);delete _pStatusBarCtrl;}