nexacro.TabIndexChangeEventInfo=function(_a,_b,_c,_d){this.id=this.eventid=_b||"ontabindexchange";this.fromobject=this.fromreferenceobject=_a;this.postindex=_c;this.preindex=_d;};var _pTabIndexChangeEventInfo=nexacro._createPrototype(nexacro.Event,nexacro.ChangeEventInfo);nexacro.TabIndexChangeEventInfo.prototype=_pTabIndexChangeEventInfo;_pTabIndexChangeEventInfo._type_name="TabIndexChangeEventInfo";delete _pTabIndexChangeEventInfo;nexacro.TabMouseEventInfo=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o){nexacro.MouseEventInfo.call(this,_a,_b||"onextrabuttonclick",_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o);this.index=_c;};var _pTabMouseEventInfo=nexacro._createPrototype(nexacro.Event,nexacro.MouseEventInfo);nexacro.TabMouseEventInfo.prototype=_pTabMouseEventInfo;_pTabMouseEventInfo._type_name="TabMouseEventInfo";delete _pTabMouseEventInfo;if(!nexacro.TabComponent){nexacro.TabComponent=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Form.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.spinupbutton=null;this.spindownbutton=null;this.multiline=false;this.tabindex= -1;this.focusacceptable=false;this.usecontrolkey=true;this.rotatetext=false;this.tabjustify=false;this.selectchangetype="down";this.tabposition="top";this.extrabutton=null;this._org_status="";this._pre_scrollIndex= -1;this._imagewidth=0;this._imageheight=0;this._setidx=0;this._oldtabindex=0;this._tabpagearea=null;this._css_finder=null;this._tabButtons=[];this._buttonRect=[];this._tabextrabuttons=[];this._tabBorders=[];this._tabButtonBorders=[];this._tabButtonLeftBorders=[];this._buttonWidth=[];this._buttonHeight=[];this._scrollIndex= -1;this._lastIndex= -1;this._bSpin=false;this._focusobj=null;this._spinflagup=false;this._spinflagdown=false;this._is_canchange=false;this._accessibility_role="tab";};var _pTabComponent=nexacro._createPrototype(nexacro.Form,nexacro.TabComponent);nexacro.TabComponent.prototype=_pTabComponent;_pTabComponent._type_name="Tabcomponent";_pTabComponent.on_update_style_cursor=function(){var _a=this._tabButtons;var _b=_a.length;var _c;for(var _d=0;_d<_b;_d++ ){_c=_a[_d];_c.on_update_style_cursor();}for(var _d=0,_e=this.tabpages.length;_d<_e;_d++ ){this.tabpages[_d].on_update_style_cursor();}this._tabpagearea.on_apply_style_cursor(this.currentstyle.cursor=this.on_find_CurrentStyle_cursor(this._pseudo));this.on_apply_style_cursor(this.currentstyle.cursor);};_pTabComponent.on_change_containerRect=function(_a,_b){};_pTabComponent.set_visible=function(_a){var _b=this._child_list;if(_b&&_b.length==0&&nexacro._toBoolean(_a)){return;}nexacro.Component.prototype.set_visible.call(this,_a);};_pTabComponent.set_multiline=function(_a){this.multiline=nexacro._toBoolean(_a);if(this.multiline==false&&this._buttonWidth){var _b=0;for(var _c=0,_d=this._buttonWidth.length;_c<_d;_c++ ){_b+=this._buttonWidth[_c];if(this._orgwidth<_b){break;}}if(_d>0){this._scrollIndex=this.tabindex-(_c-1);}}this._recalcLayout();};_pTabComponent.set_rotatetext=function(_a){this.rotatetext=_a;};_pTabComponent.set_usecontrolkey=function(_a){this.usecontrolkey=_a;};_pTabComponent.set_focusacceptable=function(_a){if(this.focusacceptable!=_a){this.focusacceptable=_a;}};_pTabComponent.set_tabindex=function(_a){var _b=parseInt(_a)|0;this._oldtabindex=this.tabindex;this._setidx=_b;this.on_apply_tabindex();};_pTabComponent.on_apply_tabindex=function(){var _a=false;var _b=this._getForm();if(_b._getTabOrderFirst() instanceof nexacro.Tab&&this.parent._last_focused&&this.parent._last_focused.name==this.name){_a=true;}var _c=this._changeTabIndex(this._setidx,_a);if(_c&&this.enableevent&&this._is_created&&this._oldtabindex> -1){this.on_fire_onchanged(this,this._setidx,this._oldtabindex);}};_pTabComponent.set_tabjustify=function(_a){_a=nexacro._toBoolean(_a);if(this.tabjustify!=_a){this.tabjustify=_a;}else{return;}this.on_apply_tabjustify();};_pTabComponent.on_apply_tabjustify=function(){this._recalcLayout();};_pTabComponent.set_tabposition=function(_a){this.tabposition=_a.toString();var _b=this._child_list;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){var _e=_b[_d];if(_e!=null){_e._adjust_width=0;_e._adjust_height=0;}}this.on_apply_tabposition();};_pTabComponent.on_apply_tabposition=function(){this._recalcLayout();};_pTabComponent.set_selectchangetype=function(_a){this.selectchangetype=_a;};nexacro._is_enable_setting=false;_pTabComponent.set_enable=function(_a){_a=nexacro._toBoolean(_a);if(this.enable!=_a){var _b=this._getWindow();var _c;if(!this._is_subcontrol&&!_a&&this._is_created&&this.parent){if(_b&&_b._indexOfCurrentFocusPaths(this)> -1){var _d=this._getForm();var _e=this.tabstop;this.tabstop=false;_c=_d._searchNextTabFocus();this.tabstop=_e;}}var _f=this._control_element;this.enable=_a;var _g=(this.parent._real_enable&&_a);if(this._real_enable!=_g){nexacro._is_enable_setting=true;this._setEnable(_g);nexacro._is_enable_setting=false;var _h=this.parent;if(!this._is_subcontrol&&this._is_created&&_h&&_h._is_created){if(_g){if(_b&&_b._indexOfCurrentFocusPaths(_h)==_b._getCurrentFocusPathsLength()-1&&!_h._last_focused){this._on_focus(true);}}else{if(_b&&_b._indexOfCurrentFocusPaths(this)> -1){_b._removeFromCurrentFocusPath(this,false);if(_c&&_c[0]){_c[0]._on_focus(true);}}}}}}};_pTabComponent.on_notify_spinup_onclick=function(_a,_b){this._spinup();};_pTabComponent.on_notify_spindown_onclick=function(_a,_b){this._spindown();};_pTabComponent.on_fire_onextrabuttonclick=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n){if(this.onextrabuttonclick&&this.onextrabuttonclick._has_handlers){var _o=new nexacro.TabMouseEventInfo(this,"onextrabuttonclick",_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,this,this);return this.onextrabuttonclick._fireEvent(this,_o);}return true;};_pTabComponent.getOwnerFrame=function(){return this.parent.getOwnerFrame();};_pTabComponent._created=function(){this._recalcLayout();};_pTabComponent._createSubComp=function(){this.spindownbutton=new nexacro.ButtonCtrl("spindownbutton",this.position,0,0,0,0,null,null,this);this.spinupbutton=new nexacro.ButtonCtrl("spinupbutton",this.position,0,0,0,0,null,null,this);this.spinupbutton.createComponent();this.spindownbutton.createComponent();this.spinupbutton.set_visible(false);this.spindownbutton.set_visible(false);this.spinupbutton._setEventHandler("onclick",this.on_notify_spinup_onclick,this);this.spindownbutton._setEventHandler("onclick",this.on_notify_spindown_onclick,this);this._createTabBorder();};_pTabComponent._getTabPosition=function(){return this.tabposition.toString();};_pTabComponent._isMultiLine=function(){return this.multiline;};_pTabComponent._isTabButtonJustify=function(){return this.tabjustify;};_pTabComponent._isRotateText=function(){return this.rotatetext;};_pTabComponent._isUseCtrlKey=function(){return this.usecontrolkey;};_pTabComponent._isExtraButton=function(){return nexacro._toBoolean(this.currentstyle.showextrabutton?this.currentstyle.showextrabutton._value:"false");};_pTabComponent._ptInRect=function(_a,_b,_c){if(_a.left<=_b&&_a.right>=_b&&_a.top<=_c&&_a.bottom>=_c){return true;}return false;};_pTabComponent._GetTabIndex=function(_a,_b){var _c=[];var _d=[];_c[0]=_a;_c[1]=_b;var _e=this._child_list.length;if(_e<=0){return;}var _f,_g= -1;var _h=0,_i=0;var _j=this.on_find_CurrentStyle_buttonmargin(this._pseudo);if(_j){_h=_j.left;_i=_j.right;}var _k=this._client_width;var _l=this._client_height;var _m=_k-(Math.ceil(this._getToolBarSize())|0);var _n=_l-(Math.ceil(this._getToolBarSize())|0);if(!this._isTabButtonJustify()&&!this._isMultiLine()&&this._isSpinButtonVisible()){var _o=null;_o=this._getSpinSize();_m-=2*_o[0]+2;_n-=2*_o[1]+2;}switch(this._getTabPosition()){case "top":case "bottom":if(this._scrollIndex== -1){_d=_c;}else{_d[0]=_c[0]+this._buttonRect[this._scrollIndex].left-_h;_d[1]=_c[1];}for(_f=0;_f<_e;_f++ ){if(this._ptInRect(this._buttonRect[_f],_d[0],_d[1])){if(this._isMultiLine()){_g=_f;}else if(this._scrollIndex!= -1){if((this._buttonRect[_f].right-this._buttonRect[_f].left)<=_m){_g=_f;}}else{if(this._buttonRect[_f].right<=_k){_g=_f;}}break;}}break;case "left":case "right":if(this._scrollIndex== -1){_d=_c;}else{_d[0]=_c[0];_d[1]=_c[1]+this._buttonRect[this._scrollIndex].top;}for(_f=0;_f<_e;_f++ ){if(this._ptInRect(this._buttonRect[_f],_d[0],_d[1])){if(this._isMultiLine()){_g=_f;}else if(this._scrollIndex!= -1){if((this._buttonRect[_f].bottom-this._buttonRect[this._scrollIndex].top)<=_n){_g=_f;}}else{if(this._buttonRect[_f].bottom<=_l){_g=_f;}}break;}}break;}return _g;};_pTabComponent._rearrangeBorder=function(){if(this._buttonRect.length-1=_d&&this.tabindex<=_e){_h=this._buttonRect[this.tabindex];}else{_h=this._buttonRect[_d];_i=false;}var _j="";var _k=this.on_find_CurrentStyle_buttonborder(this._pseudo);var _l=0;if(_k){_l=_k._top_width;}var _m=0;var _n=this.on_find_CurrentStyle_border(this._pseudo);var _o=0,_p=0,_q=0,_r=0;if(_n){_o=_n._left_width||_n._top_width;_p=_n._top_width;_q=_n._right_width||_n._top_width;_r=_n._bottom_width||_n._top_width;}switch(_g){case "top":if(!_i||_h.left<0||(_h.left+_l-_o)==0){_a.set_visible(false);}else{_a.set_visible(true);}_a.move(0,_h.bottom,_h.left+_l,_p);if(_h.left<0||!_i){_b.move(0,_h.bottom,this._adjust_width-_q,_p);}else{_b.move(_h.right-_l,_h.bottom,this._adjust_width-_h.right,_p);}if(!_i){_c.set_visible(false);}else{_c.set_visible(true);}_c.move((_h.left+_l),_h.bottom,((_h.right-_l)-(_h.left+_l)),_p);break;case "bottom":if(!_i||_h.left<0||(_h.left+_l-_o==0)){_a.set_visible(false);}else{_a.set_visible(true);}_a.move(_o,_h.top-_l,_h.left+_l-_o,_r);if(_h.left<0||!_i){_b.move(_o,_h.top-_l,this._adjust_width-_o-_q,_r);}else{_b.move(_h.right-_l,_h.top-_l,this._adjust_width-_h.right,_r);}if(!_i){_c.set_visible(false);}else{_c.set_visible(true);}_c.move((_h.left+_l),(_h.top-_l),((_h.right-_l)-(_h.left+_l)),_r);break;case "left":if(!_i||_h.top<0){_a.set_visible(false);}else{_a.set_visible(true);}_a.move(_h.right,_p,_q,_h.top+_l-_p);if(_h.top<0||!_i){_b.move(_h.right,_p,_q,this._adjust_height-_p-_r);}else{_b.move(_h.right,_h.bottom-_l,_q,this._adjust_height-_h.bottom+_l-_r);}if(!_i){_c.set_visible(false);}else{_c.set_visible(true);}_c.move(_h.right,(_h.top+_l),_q,((_h.bottom-_l)-(_h.top+_l)));break;case "right":if(!_i||_h.top<0){_a.set_visible(false);}else{_a.set_visible(true);}_a.move(_h.left-_q,_p,_q,_h.top+_l-_p);if(_h.top<0||!_i){_b.move(_h.left-_q,_p,_q,this._adjust_height-_p-_r);}else{_b.move(_h.left-_q,_h.bottom-_l,_q,this._adjust_height-_h.bottom+_l-_r);}if(!_i){_c.set_visible(false);}else{_c.set_visible(true);}_c.move((_h.left-_q),(_h.top+_l),_q,((_h.bottom-_l)-(_h.top+_l)));break;}};_pTabComponent._rearrangeButton=function(){var _a=this._child_list.length;if(_a<=0){return;}if(this._buttonRect.length<=0){return;}switch(this._getTabPosition()){case "top":this._rearrangeTopButton();break;case "bottom":this._rearrangeBottomButton();break;case "left":this._rearrangeLeftButton();break;case "right":this._rearrangeRightButton();break;}this._resetTabPage();if(this.enable==false){if(this.spinupbutton){this.spinupbutton.set_enable(false);}if(this.spindownbutton){this.spindownbutton.set_enable(false);}}if(!this._bSpin){this._scrollIndex=0;if(this.spindownbutton){this.spindownbutton.set_visible(false);}if(this.spinupbutton){this.spinupbutton.set_visible(false);}}var _b=this.on_find_CurrentStyle_border(this._pseudo);if(_b&&_b._top_width!=0){this._rearrangeBorder();}};_pTabComponent._resetTabPage=function(){var _a=this._child_list;var _b=_a?_a.length:0;if(_b<=0||this._tabButtons.length<=0){return;}for(var _c=0;_c<_b;_c++ ){var _d=_a[_c];var _e=this._tabButtons[_c];if(_d!=null){if(!_e){break;}if(this.enable){if(_d.enable){if(_c==this.tabindex){_d.set_visible(true);_e._stat_change("select","selected");}else{_d.set_visible(false);_e._pseudo="normal";_e._status="notselect";_e._stat_change(_e._pseudo,_e._status);}}else{_e._pseudo="disable";_e._status="disabled";_e._stat_change(_e._pseudo,_e._status);}}else{_e._pseudo="disable";_e._status="disabled";_e._stat_change("disable","disabled");}}}};_pTabComponent._getToolBarSize=function(){return 0;};_pTabComponent._rearrangeTopButton=function(){var _a=this._pseudo;var _b="",_c=0,_d=0;var _e=null;var _f=this.on_find_CurrentStyle_padding(_a);var _g=this.on_find_CurrentStyle_buttonborder(_a);var _h=_g?(_g._left_width+_g._right_width):0;var _i=this.on_find_CurrentStyle_buttonpadding("normal");var _j=_i?(_i.left+_i.right):0;var _k=this.on_find_CurrentStyle_bordertype(_a);_b=_k?_k.type:"";if(_k!=null&&_b=="round"){_c=_k.radiusx;_d=_k.radiusy;}var _l=this._adjust_width;var _m=this._adjust_height;var _n=this._child_list.length;var _o=0;var _p=_l-(Math.ceil(this._getToolBarSize())|0)-_c;var _q=0;var _r=0,_s=0,_t=0,_u=0;var _v=this.on_find_CurrentStyle_buttonmargin(_a);if(_v){_r=_v.left;_s=_v.right;_u=_v.bottom;_t=_v.top;}var _w=[],_x;for(var _as=0;_as<_n;_as++ ){_x=this._getButtonSize(_as);_w[_as]=_x;_q=((_x.bottom-_x.top)>_q)?(_x.bottom-_x.top):_q;}_q+=_g?(_g._top_width+_g._bottom_width):0;var _y=this._buttonRect;var _z=this._isExtraButton();for(var _as=0;_as<_n;_as++ ){_x=_w[_as];var _at=_y[_as];if(!_at){break;}_at.left=_o+_r;_at.bottom=_q;_at.right=_at.left+(_x.right-_x.left)+_h;_at.top=_t;if(_z){_at.right+=_q;}_o=_at.right+_s;}if((_o-_s)>=_p){if(this._isMultiLine()){this._scrollIndex= -1;this._lastIndex=_n-1;var _au=(_o/_p+1)|0;var _av=(Math.ceil(_o/_au)|0);var _aw=0;var _ax=0;var _ay=0;for(var _as=0;_as<_au;_as++ ){while(_aw<_n){var _at=_y[_aw];if(!_at){break;}if(_at.right>(_o/_au)*(_as+1)||_aw==_n-1){if(_aw==_n-1){_ay=_aw;}else if(((_o/_au)*(_as+1)-_at.left)<(_at.right-(_o/_au)*(_as+1))){_ay=Math.ceil(_aw-1)|0;}else{_ay=_aw;}if(_ay<0){_ay=0;}var _az=0;var _ba=0;var _bb=_y[_ay].right-(_y[_ax]?_y[_ax].left:0);for(var _bc=_ax;_bc<=_ay;_bc++ ){_at=_y[_bc];if(!_at){break;}_at.right=Math.ceil(_ba+(_at.right-_at.left)*_p/_bb)|0;_at.left=_ba;if(_at.bottom>_az){_az=_at.bottom;}_ba=_at.right;}_y[_ay].right=_p-1;for(var _bc=_ax;_bc<=_ay;_bc++ ){_at=_y[_bc];if(!_at){break;}_at.bottom=_az;}for(var _bc=_ay+1;_bc<_n;_bc++ ){_at=_y[_bc];if(!_at){break;}_at.bottom=(_at.bottom-_at.top)+_az;_at.top=_az;}_ax=_ay+1;break;}_aw++ ;}}this._rollButtonUp();this._bSpin=false;}else{var _bd=this._getSpinSize();var _be={left:0,top:0,right:0,bottom:0};_be.left=_p-_bd[0]*2-2;var _bf=this._scrollIndex;if(this._scrollIndex<0||this._scrollIndex>=this._child_list.length){_bf=this._child_list.length-1;}var _bg=_y[_bf];if(!_bg){return;}_be.top=_bg.bottom-_bd[1]-2;_be.right=_p-_bd[0]-2;_be.bottom=_bg.bottom-2;if(this.spinupbutton){this.spinupbutton.move(_be.left,_be.top,_be.right-_be.left,_be.bottom-_be.top);this.spinupbutton.set_visible(true);if(this._scrollIndex<=0){this.spinupbutton.set_enable(false);}else{this.spinupbutton.set_enable(true);}}_be.left=_p-_bd[0];_be.top=_y[_bf].bottom-_bd[1]-2;_be.right=_p;_be.bottom=_y[_bf].bottom-2;if(this.spindownbutton){var _bh=this.spindownbutton.position;if(_bh.left!=_be.left||_bh.right!=_be.right||_bh.top!=_be.top||_bh.bottom!=_be.bottom){this.spindownbutton.move(_be.left,_be.top,_be.right-_be.left,_be.bottom-_be.top);}this.spindownbutton.set_visible(true);if(this._scrollIndex==_n-1){this.spindownbutton.set_enable(false);}else{this.spindownbutton.set_enable(true);}}this._bSpin=true;}}else{this._lastIndex=_n-1;if(this._isTabButtonJustify()){var _bi=0;var _bj=this._buttonWidth;var _bk=_bj?_bj.length:0;for(var _as=0;_as<_bk;_as++ ){_bi+=_bj[_as];}var _ba=0;for(var _as=0;_as<_n;_as++ ){var _at=_y[_as];if(!_at){break;}_at.left=_ba+_r;_ba=_at.right=_at.left+_s+(Math.floor(_p*(this._buttonWidth[_as]/_bi))|0);}if(_y&&_y.length>=_n){_y[_n-1].right=_p-1;}}this._bSpin=false;}var _aa=0;for(var _as=0;_as<_n;_as++ ){var _at=_y[_as];if(!_at){break;}if(_aa<_at.bottom){_aa=_at.bottom;}}var _ab={left:0,top:_aa,right:_l,bottom:_m};var _ac=null;var _ad=this.on_find_CurrentStyle_border(_a);var _ae=0,_af=0,_ag=0,_ah=0;if(_ad){_ae=_ad._left_width||_ad._top_width;_af=_ad._top_width;_ag=_ad._right_width||_ad._top_width;_ah=_ad._bottom_width||_ad._top_width;}_ab=this._getTabpageClientRectBorder(_ab,_ad,_k,_f,"top");if(this._tabpagearea){var _bl=this._tabpagearea.on_find_CurrentStyle_border(this._pseudo);this._tabpagearea.on_apply_style_border(_bl);this._tabpagearea.move(_ab.left,_ab.top,_ab.right-_ab.left,_ab.bottom-_ab.top);}var _ai=this._child_list[0].on_find_CurrentStyle_margin(_a);var _aj=0,_ak=0,_al=0,_am=0;if(_ai){_aj=_ai.left;_ak=_ai.top;_al=_ai.right;_am=_ai.bottom;}var _an=_ab.left+_ae+_aj;var _ao=_ab.top+_af+_ak;var _ap=_ab.right-_ag-_ab.left-_ae-_al-_aj;var _aq=_ab.bottom-_ab.top-_ah-_af-_am-_ak;var _ar=this._child_list;for(var _as=0;_as<_n;_as++ ){var _bm=_ar[_as];if(_bm!=null){var _bn=_bm._adjust_width;var _bo=_bm._adjust_height;if(_bm._adjust_left!=_an||_bm._adjust_top!=_ao||_bm._getPosRight()!=_ap||_bm._getPosBottom()!=_aq){_bm.move(_an,_ao,_ap,_aq);}else{_bm.move(_an,_ao,_bn,_bo);}}}};_pTabComponent._drawButton=function(){if(this._buttonRect.length<=0){return;}switch(this._getTabPosition()){case "top":case "bottom":this._drawClientTopBottom();break;case "left":case "right":this._drawClientLeftRight();break;}};_pTabComponent._drawClientTopBottom=function(){var _a=this._child_list.length;if(_a<=0){return;}var _b=this._adjust_width;var _c=this._adjust_height;if(_b<=0||_c<=0){return;}if(this._scrollIndex<0){this._scrollIndex=0;}if(this._scrollIndex>=this._child_list.length){this._scrollIndex=this._child_list.length-1;}var _d=this.on_find_CurrentStyle_buttonmargin(this._pseudo);var _e=0,_f=0,_g=0,_h=0;if(_d!=null||_d!=undefined){_e=_d.left;_f=_d.right;_h=_d.top;_g=_d.bottom;}var _i=this._buttonRect[this._scrollIndex].left-_e;var _j=this._buttonRect;var _k=_j.length;for(var _l=0;_l<_k;_l++ ){if(this._scrollIndex!= -1){_j[_l].left-=_i;_j[_l].right-=_i;}}if(this._isMultiLine()||!this._bSpin){for(var _l=0;_l<_a;_l++ ){this._drawTabButton(_l);}}else{var _m=this.on_find_CurrentStyle_border(this._pseudo);var _n=0;if(_m){_n=_m._left_width||_m._top_width;}var _o=this._getSpinSize();var _p=_b-(Math.ceil(this._getToolBarSize())|0)-(_o[0]*2)-2;var _q=0,_r=0;this._lastIndex=_q=this._scrollIndex;for(var _l=_a-1;_l>=_q;_l-- ){if(!_j[_l]){break;}if((_j[_l].right-_j[this._scrollIndex].left+_n)<=_p){this._lastIndex=_r=_l;break;}else if(_l==this._scrollIndex){this._lastIndex=_r=_l;break;}}var _s=this._tabButtons;var _t=this._tabextrabuttons;var _u=this._isExtraButton();for(var _l=0;_l<_q;_l++ ){_s[_l].set_visible(false);if(_u&&_t[_l]){_t[_l].set_visible(false);}}for(var _l=_k-1;_l>_r;_l-- ){_s[_l].set_visible(false);if(_u&&_t[_l]){_t[_l].set_visible(false);}}for(var _l=_r;_l>=_q;_l-- ){_s[_l].set_visible(true);if(_u&&_t[_l]){_t[_l].set_visible(true);}this._drawTabButton(_l);}this._rearrangeBorder();if(_r==_a-1&&this.spindownbutton.enable){this.spindownbutton.set_enable(false);}if(_q==0&&this.spinupbutton.enable){this.spinupbutton.set_enable(false);}else if(_q!=0&&!this.spinupbutton.enable){this.spinupbutton.set_enable(true);}}};_pTabComponent._drawClientLeftRight=function(){var _a=this._child_list.length;if(_a<=0){return;}var _b=this._adjust_height;if(_b<=0){return;}if(this._scrollIndex<0){this._scrollIndex=0;}var _c=this._buttonRect;var _d=_c[this._scrollIndex].top;var _e=_c.length;for(var _f=0;_f<_e;_f++ ){if(this._scrollIndex!= -1){_c[_f].top-=_d;_c[_f].bottom-=_d;}}if(this._isMultiLine()||!this._bSpin){for(var _f=_a-1;_f>=0;_f-- ){if(_f!=this.tabindex){this._drawTabButton(_f);}}this._drawTabButton(this.tabindex);}else{var _g=this.on_find_CurrentStyle_border(this._pseudo);var _h=0;if(_g){_h=_g._top_width;}var _i=this._getSpinSize();var _j=_b-(Math.ceil(this._getToolBarSize())|0)-(_i[1]*2)-2;var _k=0,_l=0;this._lastIndex=_k=this._scrollIndex;for(var _f=_a-1;_f>=_k;_f-- ){if((_c[_f].bottom-_c[this._scrollIndex].top+_h)<=_j){this._lastIndex=_l=_f;break;}}var _m=this._tabButtons;var _n=this._tabextrabuttons;var _o=this._isExtraButton();for(var _f=0;_f<_e;_f++ ){_m[_f].set_visible(false);if(_o){tabextrabuttons[_f].set_visible(false);}}for(var _f=_l;_f>=_k;_f-- ){this._drawTabButton(_f);_m[_f].set_visible(true);if(_o){tabextrabuttons[_f].set_visible(true);}}this._rearrangeBorder();if(_l==_a-1&&this.spindownbutton.enable){this.spindownbutton.set_enable(false);}if(_k==0&&this.spinupbutton.enable){this.spinupbutton.set_enable(false);}else if(_k!=0&&!this.spinupbutton.enable){this.spinupbutton.set_enable(true);}}};_pTabComponent._drawTabButton=function(_a){var _b=this._buttonRect[_a];if(!_b){return;}if(_b.bottom>0){if(_a<0||_a>=this._child_list.length){return;}var _c=null;var _d=this._tabButtons[_a];if(_d!=null){_c=this._getExtraButtonArea(_b);var _e=this._isExtraButton();if(_e){this._drawExtraButton(_c,_a,true);}var _f=nexacro._getCachedAlignObj("center middle");_d.on_apply_style_align(_f);if(_d.left!=_b.left||_d.top!=_b.top||_d.right!=_b.right||_d.bottom!=_b.bottom){_d.move(_b.left,_b.top,_b.right-_b.left,_b.bottom-_b.top);}if(_e){var _g=this._tabextrabuttons?(this._tabextrabuttons[_a]?this._tabextrabuttons[_a].width:20):20;var _h=Math.ceil(_b.right-_g)|0;var _i=_d._text_elem;if(_i){if(_i){var _j=this.on_find_CurrentStyle_buttonpadding(_d._pseudo);var _k=_j?(_j.left+_j.right):0;var _l=_j?(_j.top+_j.bottom):0;_i.setElementSize(_h-_b.left-_k,_i.height);}}}if(!_d.visible){_d.set_visible(true);}}}};_pTabComponent._drawExtraButton=function(_a,_b,_c){if(this._tabextrabuttons[_b]){var _d=_a.right-_a.left;var _e=_a.bottom-_a.top;var _f=12;var _g=12;var _h=Math.ceil(_g/2)|0;var _i=Math.ceil(_e/2)|0;if(_d<=0||_e<=0){return;}var _j=this._tabextrabuttons[_b];_j.set_visible(_c);if(_c){_j.move(_a.left,_a.top+_i-_h,_a.right-_a.left,_h*2);}}};_pTabComponent._getClientRectPadding=function(_a,_b){var _c=_a;switch(this._getTabPosition()){case "top":case "bottom":_c.right+=_b.left+_b.right;_c.bottom+=_b.top+_b.bottom;break;case "right":case "left":_c.right+=_b.left+_b.right;_c.bottom+=_b.top+_b.bottom;break;}return _c;};_pTabComponent._getExtraButtonArea=function(_a){var _b={left:0,top:0,right:0,bottom:0};var _c=_a.right-_a.left;var _d=_a.bottom-_a.top;var _e=this.on_find_CurrentStyle_margin(this._pseudo);var _f=0,_g=0,_h=0,_i=0;if(_e){_f=_e.left;_g=_e.right;_h=_e.top;_i=_e.bottom;}switch(this._getTabPosition()){case "top":case "bottom":_b.top=_a.top+_h;_b.bottom=_a.bottom-_i;_b.left=_a.right-_d+_f;_b.right=_a.right-_g;break;case "left":if(this._isRotateText()){_b.left=_a.left+_f;_b.right=_a.right-_g;_b.top=_a.top+_h;_b.bottom=_a.top+_c-_i;}else{_b.top=_a.top+_h;_b.bottom=_a.bottom-_i;_b.left=_a.right-_d+_f;_b.right=_a.right-_g;}break;case "right":if(this._isRotateText()){_b.left=_a.left+_f;_b.right=_a.right-_g;_b.bottom=_a.bottom-_i;_b.top=_a.bottom-_c+_h;}else{_b.top=_a.top+_h;_b.bottom=_a.bottom-_i;_b.left=_a.right-_d+_f;_b.right=_a.right-_g;}break;}return _b;};_pTabComponent._rearrangeBottomButton=function(){var _a=this._pseudo;var _b=this.on_find_CurrentStyle_border(_a);var _c=this.on_find_CurrentStyle_bordertype(_a);var _d=this.on_find_CurrentStyle_padding(_a);var _e=this.on_find_CurrentStyle_buttonborder(_a);var _f=_e?_e._top_width:0;var _g=this.on_find_CurrentStyle_buttonpadding("normal");var _h=_g?(_g.left+_g.right):0;var _i=this.on_find_CurrentStyle_buttonmargin(_a);var _j=0,_k=0,_l=0,_m=0;if(_i){_m=_i.left;_j=_i.top;_k=_i.right;_l=_i.bottom;}var _n=0;var _o=0,_p=0,_q=0,_r=0;if(_b){_o=_b._left_width||_b._top_width;_p=_b._top_width;_q=_b._right_width||_b._top_width;_r=_b._bottom_width||_b._top_width;}var _s=0,_t=0;if(this.bordertype&&this.bordertype.type=="round"){_s=this.bordertype.radiusx;_t=this.bordertype.radiusy;}var _u=this._adjust_width;var _v=this._adjust_height;var _w=this._child_list.length;var _x=0;var _y=_u-(Math.ceil(this._getToolBarSize())|0)-_s;var _z=0;var _aa=[];var _ab;for(var _ar=0;_ar<_w;_ar++ ){_ab=this._getButtonSize(_ar);_aa[_ar]=_ab;_z=((_ab.bottom-_ab.top)>_z)?(_ab.bottom-_ab.top):_z;}var _ac=this._buttonRect;var _ad=this._isExtraButton();for(var _ar=0;_ar<_w;_ar++ ){var _as=_ac[_ar];if(!_as){break;}_ab=_aa[_ar];_as.left=_x+_m;_as.bottom=_v-_l;_as.right=_as.left+(_ab.right-_ab.left);_as.top=_as.bottom-_z;if(_ad){_as.right+=_z;}_x=_as.right+_k;}if((_x-_k)>=_y){if(this._isMultiLine()){this._scrollIndex= -1;this._lastIndex=_w-1;var _at=(_x/_y+1)|0;var _au=Math.ceil(_x/_at)|0;var _av=0;var _aw=0;var _ax=0;for(var _ar=0;_ar<_at;_ar++ ){while(_av<_w){var _as=_ac[_av];if(!_as){break;}if(_as.right>Math.ceil(_x/_at)*(_ar+1)||_av==_w-1){if(_av==_w-1){_ax=_av;}else if(((_x/_at)*(_ar+1)-_as.left)<(_as.right-(_x/_at)*(_ar+1))){_ax=_av-1;}else{_ax=_av;}var _ay=_v;var _az=0;var _ba=_ac[_ax].right-_ac[_aw].left;for(var _bb=_aw;_bb<=_ax;_bb++ ){_as=_ac[_bb];if(!_as){break;}_as.right=Math.ceil(_az+(_as.right-_as.left)*_y/_ba)|0;_as.left=_az;if(_as.top<_ay){_ay=_as.top;}_az=_as.right;}_ac[_ax].right=_y-1;for(var _bb=_aw;_bb<=_ax;_bb++ ){_as=_ac[_bb];if(!_as){break;}_as.top=_ay;}for(var _bb=_ax+1;_bb<_w;_bb++ ){_as=_ac[_bb];if(!_as){break;}_as.top=_ay-(_as.bottom-_as.top);_as.bottom=_ay;}_aw=_ax+1;break;}_av++ ;}}this._rollButtonUp();this._bSpin=false;}else{this._scrollIndex=0;var _bc;_bc=this._getSpinSize();var _bd=_u-(Math.ceil(this._getToolBarSize())|0)-(_bc[0]*2)-2;var _be=this.tabindex;for(var _ar=0;_ar<=_be;_ar++ ){var _as=_ac[_ar];if(!_as){break;}if((_ac[_be].right-_as.left+_m)<_bd){this._scrollIndex=_ar;break;}}var _bf={left:0,top:0,right:0,bottom:0};_bf.left=_y-_bc[0]*2-2;_bf.top=_ac[this._scrollIndex].top+2;_bf.right=_y-_bc[0]-2;_bf.bottom=_ac[this._scrollIndex].top+_bc[1]+2;this.spinupbutton.move(_bf.left,_bf.top,_bf.right-_bf.left,_bf.bottom-_bf.top);this.spinupbutton.set_visible(true);if(this._scrollIndex==0){this.spinupbutton.set_enable(false);}else{this.spinupbutton.set_enable(true);}_bf.left=_y-_bc[0];_bf.top=_ac[this._scrollIndex].top+2;_bf.right=_y;_bf.bottom=_ac[this._scrollIndex].top+_bc[1]+2;var _bg=this.spindownbutton.position;if(_bg.left!=_bf.left||_bg.right!=_bf.right||_bg.top!=_bf.top||_bg.bottom!=_bf.bottom){this.spindownbutton.move(_bf.left,_bf.top,_bf.right-_bf.left,_bf.bottom-_bf.top);this.spindownbutton.set_visible(true);if(this._scrollIndex==_w-1){this.spindownbutton.set_enable(false);}else{this.spindownbutton.set_enable(true);}}this._bSpin=true;}}else{this._scrollIndex= -1;this._lastIndex=_w-1;if(this._isTabButtonJustify()){var _bh=0;var _bi=this._buttonWidth;var _bj=_bi?_bi.length:0;for(var _ar=0;_ar<_bj;_ar++ ){_bh+=_bi[_ar];}var _az=0;for(var _ar=0;_ar<_w;_ar++ ){var _as=_ac[_ar];if(!_as){break;}_as.left=_az+_m;_az=_as.right=_as.left+_k+(Math.floor(_y*(this._buttonWidth[_ar]/_bh))|0);}if(_ac&&_ac.length>=_w){_ac[_w-1].right=_y-1;}}this._bSpin=false;}var _ae=_v;for(var _ar=0;_ar<_w;_ar++ ){var _as=_ac[_ar];if(!_as){break;}if(_ae>_as.top){_ae=_as.top;}}var _af={left:0,top:0,right:_u,bottom:_ae};var _ag=null;_af=this._getTabpageClientRectBorder(_af,_b,_c,_d,"bottom");if(this._tabpagearea){var _bk=this._tabpagearea.on_find_CurrentStyle_border(this._pseudo);this._tabpagearea.on_apply_style_border(_bk);this._tabpagearea.move(_af.left,_af.top,_af.right-_af.left,_af.bottom-_af.top);}var _ah=this._child_list[0].on_find_CurrentStyle_margin(_a);var _ai=0,_aj=0,_ak=0,_al=0;if(_ah){_ai=_ah.left;_aj=_ah.top;_ak=_ah.right;_al=_ah.bottom;}var _am=_af.left+_o+_ai;var _an=_af.top+_p+_aj;var _ao=_af.right-_q-_af.left-_o-_ak-_ai;var _ap=_af.bottom-_af.top-_r-_p-_al-_aj;if(_ap<0){_ap=0;}var _aq=this._child_list;for(var _ar=0;_ar<_w;_ar++ ){var _bl=_aq[_ar];if(_bl!=null){_bl.move(_am,_an,_ao,_ap);}}};_pTabComponent._getSpinSize=function(){var _a=[];_a[0]=14;_a[1]=14;return _a;};_pTabComponent._rearrangeLeftButton=function(){var _a="",_b=0,_c=0;var _d=this._pseudo;var _e=this.on_find_CurrentStyle_border(_d);var _f=this.on_find_CurrentStyle_bordertype(_d);var _g=this.on_find_CurrentStyle_padding(_d);var _h=this.on_find_CurrentStyle_buttonborder(_d);var _i=this.on_find_CurrentStyle_buttonmargin(_d);var _j=_h?_h._top_width:0;var _k=this.on_find_CurrentStyle_buttonpadding("normal");var _l=_k?(_k.left+_k.right):0;var _m=0,_n=0,_o=0,_p=0;if(_i){_p=_i.left;_m=_i.top;_n=_i.right;_o=_i.bottom;}var _b=0,_c=0;if(this.bordertype!=null&&this.bordertype.type=="round"){_b=this.bordertype.radiusx;_c=this.bordertype.radiusy;}var _q=this._adjust_width;var _r=this._adjust_height;var _s=this._child_list.length;var _t=0;var _u=0,_v=_r-(Math.ceil(this._getToolBarSize())|0)-_c;var _w=0;var _x,_y;var _z=[];var _aa=null;for(var _av=0;_av<_s;_av++ ){_aa=this._getButtonSize(_av);_z[_av]=_aa;if(this._isRotateText()){_x=_aa.right-_aa.left;_y=_aa.bottom-_aa.top;_aa.left=_aa.right-_y;_aa.bottom=_aa.top+_x;}_u=((_aa.right-_aa.left)>_u)?(_aa.right-_aa.left):_u;}var _ab=0,_ac=0;var _ad=this._buttonRect;var _ae=this._isExtraButton();for(var _av=0;_av<_s;_av++ ){var _aw=_ad[_av];if(!_aw){break;}_aa=_z[_av];_aw.left=_p;_aw.top=_t+_m;_aw.bottom=_aw.top+(_aa.bottom-_aa.top);_aw.right=_aw.left+_u;if(_ae){if(this._isRotateText()){if(_ab<_aa.right-_aa.left){_ab=_aa.right-_aa.left;_av= -1;continue;}_aw.bottom+=_ab;}else{if(_ac<_aa.bottom-_aa.top){_ac=_aa.bottom-_aa.top;_av= -1;continue;}_aw.right+=_ac;}}_w=((_aw.right-_aw.left)>_w)?(_aw.right-_aw.left):_w;_t=_aw.bottom+_o;}if((_t-_o)>=_v){if(this._isMultiLine()){this._scrollIndex= -1;this._lastIndex=_s-1;var _ax=(_t/_v+1)|0;var _ay=Math.ceil(_t/_ax)|0;var _az=0;var _ba=0;var _bb=0;for(var _av=0;_av<_ax;_av++ ){while(_az<_s){var _aw=_ad[_az];if(!_aw){break;}if(_aw.bottom>Math.ceil(_t/_ax)*(_av+1)||_az==_s-1){if(_az==_s-1){_bb=_az;}else if(((_t/_ax)*(_av+1)-_aw.top)<(_aw.bottom-(_t/_ax)*(_av+1))){_bb=_az-1;}else{_bb=_az;}var _bc=0;var _bd=0;var _be=_ad[_bb].bottom-_ad[_ba].top;for(var _bf=_ba;_bf<=_bb;_bf++ ){_aw=_ad[_bf];if(!_aw){break;}_aw.bottom=Math.ceil(_bd+(_aw.bottom-_aw.top)*_v/_be)|0;_aw.top=_bd;if(_aw.right>_bc){_bc=_aw.right;}_bd=_aw.bottom;}_ad[_bb].bottom=_v-1;for(var _bf=_ba;_bf<=_bb;_bf++ ){_aw=_ad[_bf];if(!_aw){break;}_aw.right=_bc;}for(var _bf=_bb+1;_bf<_s;_bf++ ){_aw=_ad[_bf];if(!_aw){break;}_aw.right=(_aw.right-_aw.left)+_bc;_aw.left=_bc;}_ba=_bb+1;break;}_az++ ;}}this._rollButtonUp();this._bSpin=false;}else{this._scrollIndex=0;var _bg=null;_bg=this._getSpinSize();var _bh=_r-(Math.ceil(this._getToolBarSize())|0)-(_bg[1]*2)-2;for(var _av=0;_av<=this.tabindex;_av++ ){var _aw=_ad[_av];if(!_aw){break;}if((_ad[this.tabindex].bottom-_aw.top+_m)<_bh){this._scrollIndex=_av;break;}}var _bi={left:0,top:0,right:0,bottom:0};_bi.left=_ad[this._scrollIndex].right-_bg[0]-2;_bi.top=_v-_bg[1]*2-2;_bi.right=_ad[this._scrollIndex].right-2;_bi.bottom=_v-_bg[1]-2;this.spinupbutton.move(_bi.left,_bi.top,_bi.right-_bi.left,_bi.bottom-_bi.top);this.spinupbutton.set_visible(true);if(this._scrollIndex==0){this.spinupbutton.set_enable(false);}else{this.spinupbutton.set_enable(true);}_bi.left=_ad[this._scrollIndex].right-_bg[0]-2;_bi.top=_v-_bg[1];_bi.right=_ad[this._scrollIndex].right-2;_bi.bottom=_v;var _bj=this.spindownbutton;var _bk=_bj._adjust_left+_bj._adjust_width;var _bl=_bj._adjust_top+_bj._adjust_height;if(_bj._adjust_left!=_bi.left||_bk!=_bi.right||_bj._adjust_top!=_bi.top||_bl!=_bi.bottom){this.spindownbutton.move(_bi.left,_bi.top,_bi.right-_bi.left,_bi.bottom-_bi.top);this.spindownbutton.set_visible(true);if(this._scrollIndex==_s-1){this.spindownbutton.set_enable(false);}else{this.spindownbutton.set_enable(true);}}this._bSpin=true;}}else{this._scrollIndex= -1;this._lastIndex=_s-1;if(this._isTabButtonJustify()){var _bd=0;for(var _av=0;_av<_s;_av++ ){var _aw=_ad[_av];if(!_aw){break;}_aw.top=_bd;_bd=_aw.bottom=_aw.bottom*_v/_t;}if(_ad&&_ad.length>=_s){_ad[_s-1].bottom=_v-1;}}this._bSpin=false;}var _af=0;for(var _av=0;_av<_s;_av++ ){var _aw=_ad[_av];if(!_aw){break;}if(_af<_aw.right){_af=_aw.right;}}var _ag=0,_ah=0,_ai=0,_aj=0;if(_e){_ag=_e._left_width||_e._top_width;_ah=_e._top_width;_ai=_e._right_width||_e._top_width;_aj=_e._bottom_width||_e._top_width;}var _ak={left:_af,top:0,right:_q,bottom:_r};_ak=this._getTabpageClientRectBorder(_ak,_h,_f,_g,"left");if(this._tabpagearea){var _bm=this._tabpagearea.on_find_CurrentStyle_border(this._pseudo);this._tabpagearea.on_apply_style_border(_bm);this._tabpagearea.move(_ak.left,_ak.top,_ak.right-_ak.left,_ak.bottom-_ak.top);}var _al=this._child_list[0].on_find_CurrentStyle_margin(_d);var _am=0,_an=0,_ao=0,_ap=0;if(_al){_am=_al.left;_an=_al.top;_ao=_al.right;_ap=_al.bottom;}var _aq=_ak.left+_ag+_am;var _ar=_ak.top+_ah+_an;var _as=_ak.right-_ai-_ak.left-_ag-_ao-_am;var _at=_ak.bottom-_ak.top-_aj-_ah-_ap-_an;var _au=this._child_list;for(var _av=0;_av<_s;_av++ ){var _bn=_au[_av];if(_bn!=null){var _bo=_bn._adjust_width;var _bp=_bn._adjust_height;if(_bn._adjust_left!=_aq||_bn._adjust_top!=_ar||_bn._getPosRight()!=_as||_bn._getPosBottom()!=_at){_bn.move(_aq,_ar,_as,_at);}else{_bn.move(_aq,_ar,_bo,_bp);}}}};_pTabComponent._rearrangeRightButton=function(){var _a=this._child_list.length;var _b=this._pseudo;var _c=this.on_find_CurrentStyle_border(_b);var _d=this.on_find_CurrentStyle_bordertype(_b);var _e=this.on_find_CurrentStyle_padding(_b);var _f=this.on_find_CurrentStyle_buttonborder(_b);var _g=this.on_find_CurrentStyle_buttonmargin(_b);var _h=null;var _i=0,_j=0,_k=0,_l=0;if(_g!=null){_l=_g.left;_i=_g.top;_j=_g.right;_k=_g.bottom;}var _m=0,_n=0;if(_d!=null&&_d.type=="round"){_m=_d.radiusx;_n=_d.radiusy;}var _o=0;if(_f){_o=_f._top_width;}var _p=0,_q=0,_r=0,_s=0;if(_c){_p=_c._left_width||_c._top_width;_q=_c._top_width;_r=_c._right_width||_c._top_width;_s=_c._bottom_width||_c._top_width;}var _t=this._adjust_width;var _u=this._adjust_height;var _v=0;var _w=0,_x=_u-(Math.ceil(this._getToolBarSize())|0)-_n;var _y=0;var _z,_aa;var _ab=[];for(var _aq=0;_aq<_a;_aq++ ){_h=this._getButtonSize(_aq);_ab[_aq]=_h;if(this._isRotateText()){_z=_h.right-_h.left;_aa=_h.bottom-_h.top;_h.right=_h.left+_aa;_h.bottom=_h.top+_z;}_w=((_h.right-_h.left)>_w)?(_h.right-_h.left):_w;}var _ac=this._buttonRect;var _ad=this._isExtraButton();for(var _aq=0;_aq<_a;_aq++ ){var _ar=_ac[_aq];if(!_ar){break;}_h=_ab[_aq];_ar.right=_t-_j;_ar.left=_ar.right-(_h.right-_h.left);_ar.top=_v+_i;_ar.bottom=_ar.top+(_h.bottom-_h.top);if(_ad){if(this._isRotateText()){_ar.bottom+=(_h.right-_h.left);}else{_ar.left-=(_h.bottom-_h.top);}}_y=((_ar.right-_ar.left)>_y)?(_ar.right-_ar.left):_y;_v=_ar.bottom+_k;}for(var _aq=0;_aq<_a;_aq++ ){var _ar=_ac[_aq];if(!_ar){break;}_ar.left=_ar.right-_y;}if((_v-_k)>=_x){if(this._isMultiLine()){this._scrollIndex= -1;this._lastIndex=_a-1;var _as=(_v/_x+1)|0;var _at=Math.ceil(_v/_as)|0;var _au=0;var _av=0;var _aw=0;for(var _aq=0;_aq<_as;_aq++ ){while(_au<_a){var _ar=_ac[_au];if(!_ar){break;}if(_ar.bottom>(_v/_as)*(_aq+1)||_au==_a-1){if(_au==_a-1){_aw=_au;}else if(((_v/_as)*(_aq+1)-_ar.top)<(_ar.bottom-(_v/_as)*(_aq+1))){_aw=_au-1;}else{_aw=_au;}var _ax=_t;var _ay=0;var _az=_ac[_aw].bottom-_ac[_av].top;for(var _ba=_av;_ba<=_aw;_ba++ ){_ar=_ac[_ba];if(!_ar){break;}_ar.bottom=Math.ceil(_ay+(_ar.bottom-_ar.top)*_x/_az)|0;_ar.top=_ay;if(_ar.left<_ax){_ax=_ar.left;}_ay=_ar.bottom;}_ac[_aw].bottom=_x-1;for(var _ba=_av;_ba<=_aw;_ba++ ){_ar=_ac[_ba];if(!_ar){break;}_ar.left=_ax;}for(var _ba=_aw+1;_ba<_a;_ba++ ){_ar=_ac[_ba];if(!_ar){break;}_ar.left=_ax-(_ar.right-_ar.left);_ar.right=_ax;}_av=_aw+1;break;}_au++ ;}}this._rollButtonUp();this._bSpin=false;}else{this._scrollIndex=0;var _bb=null;_bb=this._getSpinSize();var _bc=_u-(Math.ceil(this._getToolBarSize())|0)-(_bb[1]*2)-2;for(var _aq=0;_aq<=this.tabindex;_aq++ ){var _ar=_ac[_aq];if(!_ar){break;}if((_ac[this.tabindex].bottom-_ar.top+_i)<_bc){this._scrollIndex=_aq;break;}}var _bd={left:0,top:0,right:0,bottom:0};_bd.left=_ac[this._scrollIndex].left+2;_bd.top=_x-_bb[1]*2-2;_bd.right=_ac[this._scrollIndex].left+_bb[0]+2;_bd.bottom=_x-_bb[1]-2;this.spinupbutton.move(_bd.left,_bd.top,_bd.right-_bd.left,_bd.bottom-_bd.top);this.spinupbutton.set_visible(true);if(this._scrollIndex==0){this.spinupbutton.set_enable(false);}else{this.spinupbutton.set_enable(true);}_bd.left=_ac[this._scrollIndex].left+2;_bd.top=_x-_bb[1];_bd.right=_ac[this._scrollIndex].left+_bb[0]+2;_bd.bottom=_x;var _be=this.spindownbutton;var _bf=_be._adjust_left+_be._adjust_width;var _bg=_be._adjust_top+_be._adjust_height;if(_be._adjust_left!=_bd.left||_bf!=_bd.right||_be._adjust_top!=_bd.top||_bg!=_bd.bottom){this.spindownbutton.move(_bd.left,_bd.top,_bd.right-_bd.left,_bd.bottom-_bd.top);this.spindownbutton.set_visible(true);if(this._scrollIndex==_a-1){this.spindownbutton.set_enable(false);}else{this.spindownbutton.set_enable(true);}}this._bSpin=true;}}else{this._scrollIndex= -1;this._lastIndex=_a-1;if(this._isTabButtonJustify()){var _ay=0;for(var _aq=0;_aq<_a;_aq++ ){var _ar=_ac[_aq];if(!_ar){break;}_ar.top=_ay;_ay=_ar.bottom=_ar.bottom*_x/_v;}if(_ac&&_ac.length>=_a){_ac[_a-1].bottom=_x-1;}}this._bSpin=false;}var _ae=_t;for(var _aq=0;_aq<_a;_aq++ ){_ar=_ac[_aq];if(!_ar){break;}if(_ae>_ar.left){_ae=_ar.left;}}var _o=0;if(_f){_o=_f._top_width;}var _p=0,_q=0,_r=0,_s=0;if(_c){_p=_c._left_width||_c._top_width;_q=_c._top_width;_r=_c._right_width||_c._top_width;_s=_c._bottom_width||_c._top_width;}var _af={left:0,top:0,right:_ae,bottom:_u};_af=this._getTabpageClientRectBorder(_af,_f,_d,_e,"right");if(this._tabpagearea){var _bh=this._tabpagearea.on_find_CurrentStyle_border(this._pseudo);this._tabpagearea.on_apply_style_border(_bh);this._tabpagearea.move(0,_af.top,_af.right,_af.bottom-_af.top);}var _ag=this._child_list[0].on_find_CurrentStyle_margin(_b);var _ah=0,_ai=0,_aj=0,_ak=0;if(_ag){_ah=_ag.left;_ai=_ag.top;_aj=_ag.right;_ak=_ag.bottom;}var _al=_af.left+_p+_ah;var _am=_af.top+_q+_ai;var _an=_af.right-_r-_af.left-_p-_aj-_ah;var _ao=_af.bottom-_af.top-_s-_q-_ak-_ai;var _ap=this._child_list;for(var _aq=0;_aq<_a;_aq++ ){var _bi=_ap[_aq];if(_bi!=null){var _bj=_bi._adjust_width;var _bk=_bi._adjust_height;if(_bi._adjust_left!=_al||_bi._adjust_top!=_am||_bi._getPosRight()!=_an||_bi._getPosBottom()!=_ao){_bi.move(_al,_am,_an,_ao);}else{_bi.move(_al,_am,_bj,_bk);}}}};_pTabComponent._getTabpageClientRectBorder=function(_a,_b,_c,_d,_e){if(_d!=null){_a.left+=Math.ceil(_d.left)|0;_a.top+=Math.ceil(_d.top)|0;_a.right-=Math.ceil(_d.right)|0;_a.bottom-=Math.ceil(_d.bottom)|0;}return _a;};_pTabComponent._setScrollIndex=function(_a){var _b=this._child_list;if(_a<0||_a>=_b.length){return;}this._scrollIndex=_a;if(this.spinupbutton!=null&&this.spindownbutton!=null){this.spinupbutton.set_enable(this._isSpinUpEnable());this.spindownbutton.set_enable(this._isSpinDownEnable());}};_pTabComponent._changeScrollIndex=function(_a){this._resetScrollIndex(_a);if(this.spinupbutton!=null&&this.spindownbutton!=null){this.spinupbutton.set_enable(this._isSpinUpEnable());this.spindownbutton.set_enable(this._isSpinDownEnable());}};_pTabComponent._setScrollIndexByObj=function(_a){var _b=this._child_list;for(var _c=0;_c<_b.length;_c++ ){var _d=_b[_c];if(_d==_a){if(_cthis._lastIndex){this._scrollIndex=_c;if(this.spinupbutton!=null&&this.spindownbutton!=null){this.spinupbutton.set_enable(this._isSpinUpEnable());this.spindownbutton.set_enable(this._isSpinDownEnable());}}}}};_pTabComponent._getButtonSize=function(_a){var _b=this._pseudo;var _c=this.on_find_CurrentStyle_buttonpadding("normal");var _d=this.on_find_CurrentStyle_buttonborder(_b);var _e=this.on_find_CurrentStyle_buttonbackground(_b);var _f=this.on_find_CurrentStyle_buttonmargin(_b);var _g={left:0,top:0,right:0,bottom:0};var _h=this._child_list[_a].text.toString();var _i=this.on_find_CurrentStyle_font("normal");var _j=0,_k=0,_l=0,_m=0;if(_c){_j=_c.left;_k=_c.right;_l=_c.top;_m=_c.bottom;}var _n=0;if(_d){_n=_d._top_width;}if(_i){var _o=false;if(_h){var _p=_h.search("\n");}_o=(_p== -1)?false:true;var _q=nexacro._getTextSize2(_h,_i,_o);if(_e&&(_e.repeat=="stretch"||_e.repeat=="quad")){if(this._imageheight==0){_g.right=(Math.ceil(_q[0])|0)+_j+_k;_g.bottom=(Math.ceil(_q[1])|0);}else{_g.right=(Math.ceil(_q[0])|0)+_j+_k;_g.bottom=this._imageheight;}}else{_g.right=(Math.ceil(_q[0])|0)+_j+_k+_n*2;_g.bottom=(Math.ceil(_q[1])|0)+_l+_m;}return _g;}};_pTabComponent._rollButtonUp=function(){var _a=this._child_list.length;if(_a<=0||this.tabindex<0){return;}var _b;var _c=this._client_width;var _d=this._client_height;var _e= -1;var _f=0;var _g=this._buttonRect;var _h=this._getTabPosition();if(_h=="top"){for(var _i=1;_i<_a;_i++ ){_f=(_i+this.tabindex)%_a;var _j=_g[_f];if(!_j){break;}if(_j.bottom<_g[this.tabindex].bottom){return;}else if(_j.bottom>_g[this.tabindex].bottom){_e=(_i+this.tabindex)%_a;break;}}if(_e== -1){return;}var _k=_g[_e].top;var _l=0,_m=0;for(var _i=0;_i<_a;_i++ ){_f=(_i+_e)%_a;var _j=_g[_f];if(!_j){break;}if(_j.top!=_k){_m=_l;_k=_j.top;_l=0;}_j.bottom=_m+(_j.bottom-_j.top);_j.top=_m;if(_j.bottom>_l){_l=_j.bottom;}}}else if(_h=="bottom"){for(var _i=1;_i<_a;_i++ ){_f=(_i+this.tabindex)%_a;var _j=_g[_f];if(!_j){break;}if(_j.bottom>_g[this.tabindex].bottom){return;}else if(_j.bottom<_g[this.tabindex].bottom){_e=(_i+this.tabindex)%_a;break;}}if(_e== -1){return;}var _n=_g[_e].bottom;var _o=_d;var _p=_d;for(var _i=0;_i<_a;_i++ ){_f=(_i+_e)%_a;var _j=_g[_f];if(!_j){break;}if(_j.bottom!=_n){_p=_o;_n=_j.bottom;_o=_d;}_j.top=_p-(_j.bottom-_j.top);_j.bottom=_p;if(_j.top<_o){_o=_j.top;}}}else if(_h=="left"){for(var _i=1;_i<_a;_i++ ){_f=(_i+this.tabindex)%_a;var _j=_g[_f];if(!_j){break;}if(_j.right<_g[this.tabindex].right){return;}else if(_j.right>_g[this.tabindex].right){_e=(_i+this.tabindex)%_a;break;}}if(_e== -1){return;}var _q=_g[_e].left;var _r=0;var _s=0;for(var _i=0;_i<_a;_i++ ){_f=(_i+_e)%_a;var _j=_g[_f];if(!_j){break;}if(_j.left!=_q){_s=_r;_q=_j.left;_r=0;}_j.right=_s+(_j.right-_j.left);_j.left=_s;if(_j.right>_r){_r=_j.right;}}}else if(_h=="right"){for(var _i=1;_i<_a;_i++ ){_f=(_i+this.tabindex)%_a;var _j=_g[_f];if(!_j){break;}if(_j.right>_g[this.tabindex].right){return;}else if(_j.right<_g[this.tabindex].right){_e=(_i+this.tabindex)%_a;break;}}if(_e== -1){return;}var _t=_g[_e].right;var _u=_c;var _v=_c;for(var _i=0;_i<_a;_i++ ){_f=(_i+_e)%_a;var _j=_g[_f];if(!_j){break;}if(_j.right!=_t){_v=_u;_t=_j.right;_u=_c;}_j.left=_v-(_j.right-_j.left);_j.right=_v;if(_j.left<_u){_u=_j.left;}}}};_pTabComponent._set_child_focus=function(){var _a=this.tabindex;var _b=this._child_list;if(_b&&_b.length>0){var _c=_b[_a]._getSortedDecendants(_b[_a]);if(_c&&_c.length>0){for(var _d=0;_d<_c.length;_d++ ){if(_c[_d] instanceof nexacro.Grid){var _e=_c[_d]._selectinfo.curdsrow;if(_e== -1){_e=0;}_c[_d]._selectRow(_e,true);}}if(_b[_a]._last_focused){_b[_a]._on_focus(true);}else{_c[0]._on_focus(true);}}}};_pTabComponent._changeTabIndex=function(_a,_b){if(!this._is_created||this.tabindex==_a||(( +_a)!=( +_a))||_a<0||(this._child_list&&_a>=this._child_list.length)){return;}var _c=this.tabindex;if(_c> -1&&this.enableevent){var _l=this.on_fire_canchange(this,_a,_c);if(_l==false){this._tabButtons[_a]._stat_change("notselect","normal");this._tabButtons[_c]._setFocus(false);return false;}}var _d=_c> -1?this._child_list[_c]:undefined;var _e=this._child_list[_a];var _f=_c> -1?this._tabButtons[_c]:undefined;var _g=this._tabButtons[_a];if(_d){if(_d.enable){_f._stat_change("notselect","normal");}else{_f._stat_change("disable","disabled");}_d.set_visible(false);_f._setAccessibilityStatSelected(false);}this._oldtabindex=_c;this.tabindex=_a;if(this._isMultiLine()){this._rollButtonUp();}if(_e){if(!_e.visible){_e.set_visible(true);}if(_e._isLoaded==false&&this.preload==false){if(_e.url!=""&&_e.url!=undefined){_e._url=_e.url;_e.on_apply_url(false);_e._isLoaded=true;}}_g._setAccessibilityStatSelected(true);if(_b){_g._on_focus(true);}if(_e.enable){_e._stat_change(_e._status,_e._pseudo);}else{_e._stat_change("disable","disabled");}}else{if(_d){if(_f.enable){_f._stat_change("focus","focused");}else{_f._stat_change("disable","disabled");}_d.set_visible(true);}}var _h=this._getSpinSize();var _i=this._isSpinButtonVisible()?2:0;var _j=this._client_width-_h[0]*_i;var _k=_j-(Math.ceil(this._getToolBarSize())|0)-(_h[0]*_i)-2;if(this._tabButtons.length-1==_a&&this.spindownbutton.enable==true){this.spindownbutton.set_enable(false);this.spinupbutton.set_enable(true);}else if(_a==0&&this.spinupbutton.enable==true){this.spinupbutton.set_enable(false);this.spindownbutton.set_enable(true);}else{if(!this.spinupbutton.enable){this.spinupbutton.set_enable(true);}if(!this.spindownbutton.enable){this.spindownbutton.set_enable(true);}}if(_athis._lastIndex)){var _m=this.on_find_CurrentStyle_buttonmargin(this._pseudo);var _n=_m.left+_m.right;var _o=0;this._scrollIndex=0;var _p=this._buttonRect;for(var _q=_a;_q>=0;_q-- ){var _r=_p[_q];_o+=(Math.ceil(_r.right-_r.left)|0)+_n;if(_o>_j){this._scrollIndex=_q+1;this._lastIndex=_a;break;}}}this._rearrangeButton();this._drawButton();this._rearrangeBorder();if(this._isBtnFocusAcceptable()&&this._focusobj instanceof nexacro.TabButtonCtrl){this._focusobj._setFocus(false);}else{this._set_child_focus();}if(nexacro._accessibilitywholereadtype>1){_e._playAccessibilityWholeReadLabel("wholeread");}return true;};_pTabComponent._resetLastIndex=function(){this._lastIndex= -1;var _a=this._child_list.length;if(_a<=0||this._isMultiLine()){return;}var _b=this._client_width;var _c=this._client_height;var _d=this.on_find_CurrentStyle_buttonmargin(this._pseudo);var _e=0,_f=0,_g=0,_h=0;if(_d!=null){_h=_d.left;_e=_d.top;_f=_d.right;_g=_d.bottom;}var _i=this.on_find_CurrentStyle_buttonpadding(this._pseudo);var _j=0,_k=0,_l=0,_m=0;if(_i){_m=_i.left;_j=_i.top;_k=_i.right;_l=_i.bottom;}var _n;var _o;_o=this._getSpinSize();var _p=_b-(Math.ceil(this._getToolBarSize())|0)-2*_o[0]-2;var _q=_c-(Math.ceil(this._getToolBarSize())|0)-2*_o[1]-2;var _r=0,_s=0;switch(this._getTabPosition()){case "top":case "bottom":var _t=this._buttonWidth;var _u=0;var _v=this._isExtraButton();for(var _w=this._scrollIndex;_w<_a;_w++ ){_s+=_t[_w];_u=_v?this.extrabutton._client_width:0;if(_s+(_h+_f)*_w+(_m+_k)*_w+_u*_w>_p){break;}this._lastIndex=_w;}break;case "left":case "right":var _x=this._buttonHeight;for(var _w=this._scrollIndex;_w<_a;_w++ ){_s+=Math.ceil(_x[_w])|0;if(_s+(_e+_g)*_w+(_j+_l)*_w>_q){break;}this._lastIndex=_w;}break;}};_pTabComponent._resetScrollIndex=function(_a){this._scrollIndex= -1;this._lastIndex= -1;var _b=this._child_list.length;if(_b<=0||this._isMultiLine()){return;}if(!this._buttonRect||this._buttonRect.length==0||this._buttonRect.length!=this._child_list.length){return;}var _c=this._client_width;var _d=this._client_height;var _e=this.on_find_CurrentStyle_buttonmargin(this._pseudo);var _f=0,_g=0,_h=0,_i=0;if(_e!=null){_i=_e.left;_f=_e.top;_g=_e.right;_h=_e.bottom;}var _j;var _k;_k=this._getSpinSize();var _l=_c-Math.ceil(this._getToolBarSize())-2*_k[0]-2;var _m=_d-Math.ceil(this._getToolBarSize())-2*_k[1]-2;var _n=0,_o;var _p=this._buttonRect;switch(this._getTabPosition()){case "top":case "bottom":for(var _q=0;_q<_b&&this._scrollIndex== -1;_q++ ){for(var _r=_q;_r<_b;_r++ ){_n=_p[_q].left;_o=_p[_r].right;_o-=_n;if(_o+_i>_l){if(this._scrollIndex!= -1){return;}if(this._isSpinButtonVisible()){break;}}if(_r==_a){this._scrollIndex=_q;}this._lastIndex=_r;}}break;case "left":case "right":for(var _q=0;_q<_b&&this._scrollIndex== -1;_q++ ){for(var _r=_q;_r<_b;_r++ ){_n=_p[_q].top;_o=_p[_r].bottom;_o-=_n;if(_o+_f>_m){if(this._scrollIndex!= -1){return;}break;}if(_r==_a){this._scrollIndex=_q;}this._lastIndex=_r;}}break;}};_pTabComponent._getTabIndex=function(){return this.tabindex;};_pTabComponent._getButtonRect=function(_a,_b){if(_a!= -1){if(this._buttonRect==null){return;}var _c=this._buttonRect[_a];var _d=this.on_find_CurrentStyle_buttonmargin(this._pseudo);var _e=0,_f=0,_g=0,_h=0;var _i=0,_j=0;if(_d!=null){_h=_d.left;_e=_d.top;_f=_d.right;_g=_d.bottom;}if(this._scrollIndex>=0){var _k=this._buttonWidth;var _l=0;switch(this._getTabPosition()){case "top":case "bottom":{if(this._spinflagup){_i=_k[this._scrollIndex]+_f;}else if(this._spinflagdown){_i=_k[this._scrollIndex-1]+_f;}break;}case "left":case "right":{_j=this._buttonHeight[this._scrollIndex];break;}}}if(this._spinflagup){_c.left+=_i;_c.right+=_i;_c.top+=_j;_c.bottom+=_j;}else if(this._spinflagdown){_c.left-=_i;_c.right-=_i;_c.top-=_j;_c.bottom-=_j;}}else{var _m=this._child_list.length;for(var _n=0;_n<_m;_n++ ){this._getButtonRect(_n);}}};_pTabComponent._isBtnFocusAcceptable=function(){return nexacro._toBoolean(this.focusacceptable);};_pTabComponent._spinup=function(){if(this._isSpinUpEnable()){this._getButtonRect( -1,true);this._scrollIndex-- ;this._resetLastIndex();this.spinupbutton.set_enable(this._isSpinUpEnable());this.spindownbutton.set_enable(this._isSpinDownEnable());this._spinflagup=true;this._getButtonRect( -1,true);this._spinflagup=false;this._drawButton();this._rearrangeBorder();if(this._isBtnFocusAcceptable()&&this._setFocusTabButton){this._setFocusTabButton(this._scrollIndex,this._scrollIndex+1);}}};_pTabComponent._spindown=function(){if(this._isSpinDownEnable()){this._getButtonRect( -1,true);this._scrollIndex++ ;this._resetLastIndex();this.spinupbutton.set_enable(this._isSpinUpEnable());this.spindownbutton.set_enable(this._isSpinDownEnable());this._spinflagdown=true;this._getButtonRect( -1,true);this._spinflagdown=false;this._drawButton();this._rearrangeBorder();if(this._isBtnFocusAcceptable()&&this._setFocusTabButton){this._setFocusTabButton(this._scrollIndex,this._scrollIndex-1);}}};_pTabComponent._isSpinUpEnable=function(){if(this._scrollIndex>0&&this._isMultiLine()!=true){return true;}else{return false;}};_pTabComponent._isSpinDownEnable=function(){if(this._lastIndex0){_l=_j-1;}else{_l=_i-1;}}if(this._focusobj instanceof nexacro.TabButtonCtrl){this._setTabFocusObj(this._tabButtons[_l]);}else if(this._focusobj instanceof nexacro.Tabpage){this._setTabFocusObj(this._child_list[_l]);}break;}}else{if(this._focusobj instanceof nexacro.TabComponent){if(_e==false){if(this._isBtnFocusAcceptable()==true){this._setTabFocusObj(this._tabButtons[_j]);this._setFocusTabButton();}else{var _m=this._child_list[_j];var _n=this._getTabFocusObj()._getTabOrderFirst();if(_n){if(_m instanceof nexacro.Form&&_m._last_focused){var _o=this._getWindow();_o._removeFromCurrentFocusPath(_m._last_focused);}_n._setFocus(false,0);}this._setTabFocusObj(_m);}}else{var _p=this.parent._searchPrevTabFocus(this);if(_p){if(_p[0]==null){if(_p[2]==1){var _q=application.accessibilitylastovertext;nexacro.__notifyAccessibility(this._control_element,_q);}else if(_p[2]== -1){var _q=application.accessibilityfirstovertext;nexacro.__notifyAccessibility(this._control_element,_q);}}else{if(_p[0] instanceof nexacro.Form&&_p[0]._last_focused){var _o=this._getWindow();_o._removeFromCurrentFocusPath(_p[0]._last_focused);}_p[0]._setFocus(true,1,true);}}}}else if(this._focusobj instanceof nexacro.TabButtonCtrl){if(_e==false){var _r=this._child_list[_j];if(_r&&_r._last_focused){_r._last_focused=null;}var _p=_r._searchNextTabFocus(null,undefined,undefined,false);if(_p&&_p[0]){_p[0]._setFocus(true,0,true);this._setFocusTabButton( -1,this.tabindex);}this._setTabFocusObj(_r);}else{return false;}}else if(this._focusobj instanceof nexacro.Tabpage){var _s=this._focusobj._getLastFocused();var _n=this._focusobj._getTabOrderFirst();var _t=undefined;if(_s){_t=_s._getDlgCode(_b,_c,_d,_e);}if(!_t||(_t.want_tab==false)){if(_e==false){if(_s==null&&_n){_n._setFocus(false,0);}else{var _u=this._focusobj._searchNextTabFocus(_s);if(_u&&_u[0]){_u[0]._setFocus(false,0);}}}else{if(_s==null){if(this._isBtnFocusAcceptable()){this._setTabFocusObj(this._tabButtons[_j]);}else{this._setTabFocusObj(this);}this._focusobj._setFocus(false,1);}else if(_s==_n){if(this._isBtnFocusAcceptable()){this._setTabFocusObj(this._tabButtons[_j]);}else{this._setTabFocusObj(this);}this._focusobj._setFocus(false,1);}else{var _v=this._focusobj._searchPrevTabFocus(_s);if(_v&&_v[0]){_v[0]._setFocus(false,1);}}}}}return true;}break;case 8:if(_d==true&&this.usecontrolkey){this.on_fire_onextrabuttonclick(this,_j,"",false,false,false, -1, -1, -1, -1, -1, -1,this,this);return true;}break;case 38:{if(nexacro._enableaccessibility){var _w=this._focusobj;var _x;if(_w instanceof nexacro.TabButtonCtrl){if(this._isAccessibilityEnable()){_x=this;}if(_x){_x._setFocus(true,3,true);this._setTabFocusObj(_x);}else{return false;}}else if(_w instanceof nexacro.Tabpage){var _s=_w._getLastFocused();if(_s){var _y=_s._getDlgCode(_b,_c,_d,_e);if(_y.want_arrows==false){_x=_w._searchPrevTabFocus(_w._last_focused,undefined,undefined,true)[0];if(_x){if(_x==_w){var _o=_x._getWindow();_o._removeFromCurrentFocusPath(_x);_x._setFocus(true,3,true);this._setTabFocusObj(_x);}else{_x._setFocus(true,3,true);}}else{return false;}}}else{if(_w.parent._isBtnFocusAcceptable()){_x=_w.parent._tabButtons[_w.parent.tabindex];}else{_x=_w.parent;}if(_x){_x._setFocus(true,3,true);this._setTabFocusObj(_x);}else{return false;}}}return true;}}break;case 40:{if(nexacro._enableaccessibility){var _w=this._focusobj;var _x;var _z=null;if(_w instanceof nexacro.Tab){if(this._isBtnFocusAcceptable()){_x=this._tabButtons[this.tabindex];}else{_x=this.tabpages[this.tabindex];if(_x._last_focused){_x._last_focused=null;}if(!_x._isAccessibilityEnable()){_z=_x._searchNextTabFocus(_w._last_focused,undefined,undefined,true);}}}else if(_w instanceof nexacro.TabButtonCtrl){_x=this.tabpages[this.tabindex];if(_x._last_focused){_x._last_focused=null;}if(!_x._isAccessibilityEnable()){_z=_x._searchNextTabFocus(_w._last_focused,undefined,undefined,true);}}else if(_w instanceof nexacro.Tabpage){var _s=_w._getLastFocused();var _t=undefined;if(_s){_t=_s._getDlgCode(_b,_c,_d,_e);}if(!_t||_t.want_arrows==false){_z=_w._searchNextTabFocus(_w._last_focused,undefined,undefined,true);}}if(_z&&_z[0]){_x=_z[0];_x._setFocus(true,2,true);}else{if(_x){_x._setFocus(true,2,true);this._setTabFocusObj(_x);}}return true;}}break;case 39:if(this._isBtnFocusAcceptable()&&_d==false){var _w=this._focusobj;if(_w instanceof nexacro.TabButtonCtrl){if(_j<_i-1){_l=_j+1;}else{_l=0;}this._setTabFocusObj(this._tabButtons[_l]);}}break;case 37:if(this._isBtnFocusAcceptable()&&_d==false){var _w=this._focusobj;if(_w instanceof nexacro.TabButtonCtrl){if(_j>0){_l=_j-1;}else{_l=_i-1;}this._setTabFocusObj(this._tabButtons[_l]);}}break;default:break;}if(_l> -1){if(this._changeTabIndex(_l,true)==true){if(this.enableevent){this.on_fire_onchanged(this,_l,_k);}if(this._setFocusTabButton){this._setFocusTabButton(_l,_k);}this._changeScrollIndex(_l);}}};_pTabComponent._setElementBorder=function(_a,_b,_c,_d){if(!_b){return;}var _e=_b.clone();var _f=this._getTabPosition();_e._linecnt=1;_e._copytoSubObjects();_e._linecnt=4;{if(_f=="top"){_e.set_top_width("0");}else if(_f=="bottom"){_e.set_bottom_width("0");}else if(_f=="left"){_e.set_left_width("0");}else if(_f=="right"){_e.set_right_width("0");}_a.setElementBorder(_e,_c);}};delete _pTabComponent;}if(!nexacro.Tab_Style){nexacro.Tab_Style=function(_a,_b){nexacro.Style.call(this,_a,_b);this.buttonbackground=null;this.buttongradation=null;this.buttonborder=null;this.buttonbordertype=null;this.buttonpadding=null;this.buttonmargin=null;this.showextrabutton=null;this.focusborder=null;};var _pTabStyle=nexacro.Tab_Style.prototype=nexacro._createPrototype(nexacro.Style,nexacro.Tab_style);eval(nexacro._createBackgroundAttributeEvalStr("_pTabStyle","buttonbackground"));eval(nexacro._createGradationAttributeEvalStr("_pTabStyle","buttongradation"));eval(nexacro._createBorderAttributeEvalStr("_pTabStyle","buttonborder"));eval(nexacro._createBordertypeAttributeEvalStr("_pTabStyle","buttonbordertype"));eval(nexacro._createPaddingAttributeEvalStr("_pTabStyle","buttonpadding"));eval(nexacro._createMarginAttributeEvalStr("_pTabStyle","buttonmargin"));eval(nexacro._createValueAttributeEvalStr("_pTabStyle","showextrabutton"));eval(nexacro._createValueAttributeEvalStr("_pTabStyle","focusborder"));_pTabStyle.__custom_emptyObject=function(){this.buttonbackground=null;this.buttongradation=null;this.buttonborder=null;this.buttonbordertype=null;this.buttonpadding=null;this.buttonmargin=null;this.showextrabutton=null;this.focusborder=null;};_pTabStyle.__get_custom_style_value=function(){var _a="";if(this.buttonbackground&&this.buttonbackground._value.length){_a+="buttonbackground:"+this.buttonbackground._value+"; ";}if(this.buttongradation&&this.buttongradation._value.length){_a+="buttongradation:"+this.buttongradation._value+"; ";}if(this.buttonborder&&this.buttonborder._value.length){_a+="buttonborder:"+this.buttonborder._value+"; ";}if(this.buttonbordertype&&this.buttonbordertype._value.length){_a+="buttonbordertype:"+this.buttonbordertype._value+"; ";}if(this.buttonpadding&&this.buttonpadding._value.length){_a+="buttonpadding:"+this.buttonpadding._value+"; ";}if(this.buttonmargin&&this.buttonmargin._value.length){_a+="buttonmargin:"+this.buttonmargin._value+"; ";}if(this.showextrabutton&&this.showextrabutton._value.length){_a+="showextrabutton:"+this.showextrabutton._value+"; ";}if(this.focusborder&&this.focusborder._value.length){_a+="focusborder:"+this.focusborder._value+"; ";}return _a;};_pTabStyle._update_background=function(_a){var _b=this._target;if(_b){if(_a==1){_b.on_update_style_buttonbackground();}else{_b.on_update_style_background();}if(this.buttonbackground&&this.buttonbackground.image&&_b.imagewidth==0&&_b.imageheight==0){_b._getImgSize();}}};_pTabStyle._update_border=function(_a){if(this._target){if(_a==1){this._target.on_update_style_buttonborder();}else{this._target.on_update_style_border();}}};_pTabStyle._update_bordertype=function(_a){if(this._target){if(_a==1){this._target.on_update_style_buttonbordertype();}else{this._target.on_update_style_bordertype();}}};_pTabStyle._update_gradation=function(_a){if(this._target){if(_a==1){this._target.on_update_style_buttongradation();}else{this._target.on_update_style_gradation();}}};_pTabStyle._update_style_padding=function(_a){if(this._target){if(_a==1){this._target.on_update_style_buttonpadding();}else{this._target.on_update_style_padding();}}};delete _pTabStyle;nexacro.Tab_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.buttonbackground=null;this.buttongradation=null;this.buttonborder=null;this.buttonbordertype=null;this.buttonpadding=null;this.buttonmargin=null;this.showextrabutton=null;this.focusborder=null;};var _pTabCurrentStyle=nexacro.Tab_CurrentStyle.prototype=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.Tab_CurrentSTyle);_pTabCurrentStyle.__get_custom_style_value=function(){var _a="";if(this.buttonbackground&&this.buttonbackground._value.length){_a+="buttonbackground:"+this.buttonbackground._value+"; ";}if(this.buttongradation&&this.buttongradation._value.length){_a+="buttongradation:"+this.buttongradation._value+"; ";}if(this.buttonbordertype&&this.buttonbordertype._value.length){_a+="buttonbordertype:"+this.buttonbordertype._value+"; ";}if(this.buttonborder&&this.buttonborder._value.length){_a+="buttonborder:"+this.buttonborder._value+"; ";}if(this.buttonpadding&&this.buttonpadding._value.length){_a+="buttonpadding:"+this.buttonpadding._value+"; ";}if(this.buttonmargin&&this.buttonmargin._value.length){_a+="buttonmargin:"+this.buttonmargin._value+"; ";}if(this.showextrabutton&&this.showextrabutton._value.length){_a+="showextrabutton:"+this.showextrabutton._value+"; ";}if(this.focusborder&&this.focusborder._value.length){_a+="focusborder:"+this.focusborder._value+"; ";}return _a;};_pTabCurrentStyle.__custom_emptyObject=function(){this.buttonbackground=null;this.buttongradation=null;this.buttonborder=null;this.buttonbordertype=null;this.buttonpadding=null;this.buttonmargin=null;this.showextrabutton=null;this.focusborder=null;};delete _pTabCurrentStyle;}if(!nexacro.Tab){nexacro.Tab=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.TabComponent.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.preload=false;this.tabpages=new nexacro.Collection();this._event_list={"onclick":1,"ondblclick":1,"onkeypress":1,"onkeydown":1,"onkeyup":1,"onkillfocus":1,"onsetfocus":1,"ondrag":1,"ondragenter":1,"ondragleave":1,"ondragmove":1,"ondrop":1,"onlbuttondown":1,"onlbuttonup":1,"onmouseenter":1,"onmouseleave":1,"onmousemove":1,"onmove":1,"onsize":1,"onrbuttondown":1,"onrbuttonup":1,"onchanged":1,"onspin":1,"canchange":1,"oneditclick":1,"onextrabuttonclick":1,"onmouseup":1,"onmousedown":1,"ontouchstart":1,"ontouchmove":1,"ontouchend":1,"ontap":1,"ondbltap":1,"onpinchstart":1,"onpinch":1,"onpinchend":1,"onflingstart":1,"onfling":1,"onflingend":1,"onlongpress":1,"onslidestart":1,"onslide":1,"onslideend":1,"onzoom":1};this._tabbutton_obj=null;if(_g){this._orgwidth=_g-_c;}else{this._orgwidth=_e;}if(_h){this._orgheight=_h-_d;}else{this._orgheight=_f;}};var _pTab=nexacro.Tab.prototype=nexacro._createPrototype(nexacro.TabComponent,nexacro.Tab);_pTab._type_name="Tab";nexacro.Tab._default_showextrabutton=nexacro._getCachedStyleObj("showextrabutton","false");_pTab.killTimer=null;_pTab.setTimer=null;_pTab.loadStyle=null;_pTab.setWaitCursor=null;_pTab._accessibility_tabindex= -1;_pTab._accessibility_is_next=false;_pTab.on_create_custom_style=function(){return new nexacro.Tab_Style(this);};_pTab.on_create_custom_currentStyle=function(){return new nexacro.Tab_CurrentStyle();};_pTab.on_apply_custom_pseudo=function(_a){var _b=this.currentstyle;var _c=false;var _d=this.on_find_CurrentStyle_font(_a);if(_b.font!=_d){_b.font=_d;_c=true;}var _e=this.on_find_CurrentStyle_color(_a);if(_b.color!=_e){_b.color=_e;_c=true;}var _f=this.on_find_CurrentStyle_buttonbackground(_a);if(_b.buttonbackground!=_f){_b.buttonbackground=_f;_c=true;}var _g=this.on_find_CurrentStyle_buttongradation(_a);if(_b.buttongradation!=_g){_b.buttongradation=_g;_c=true;}var _h=this.on_find_CurrentStyle_buttonborder(_a);if(_b.buttonborder!=_h){_b.buttonborder=_h;_c=true;}var _i=this.on_find_CurrentStyle_buttonbordertype(_a);if(_b.buttonbordertype!=_i){_b.buttonbordertype=_i;_c=true;}var _j=this.on_find_CurrentStyle_buttonmargin(_a);if(_b.buttonmargin!=_j){_b.buttonmargin=_j;_c=true;}if(_c){this._updateAllTabButton(_a);}var _k=this.on_find_CurrentStyle_buttonpadding(_a);if(_b.buttonpadding!=_k){_b.buttonpadding=_k;this.on_apply_style_buttonpadding(_k);}var _l=this.on_find_CurrentStyle_showextrabutton(_a);if(_b.showextrabutton!=_l){_b.showextrabutton=_l;this.on_apply_style_showextrabutton(_l);}var _m=this.on_find_CurrentStyle_focusborder(_a);if(_b.focusborder!=_m){_b.focusborder=_m;this.on_apply_style_focusborder(_m);}};_pTab._updateAllTabButton=function(_a){var _b=this._tabButtons;var _c=this._child_list;var _d=_b.length;_a=(_a==null||_a=="focused")?"normal":_a;if(_a=="mouseover"){return;}for(var _e=0;_e<_d;_e++ ){var _f=_c[_e];if(_f.enable){this._tabButtons[_e]._updateAll(_a);}else{this._tabButtons[_e]._status="disable";this._tabButtons[_e]._updateAll("disabled");}}};_pTab.on_find_CurrentStyle_buttonbackground=function(_a){return this._find_pseudo_obj("buttonbackground",_a,"background");};_pTab.on_find_CurrentStyle_buttongradation=function(_a){return this._find_pseudo_obj("buttongradation",_a,"gradation");};_pTab.on_find_CurrentStyle_buttonborder=function(_a){return this._find_pseudo_obj("buttonborder",_a,"border");};_pTab.on_find_CurrentStyle_buttonbordertype=function(_a){var _b=this._find_pseudo_obj("buttonbordertype",_a,"bordertype");return (_b)?_b:null;};_pTab.on_find_CurrentStyle_buttonpadding=function(_a){var _b=this._find_pseudo_obj("buttonpadding",_a,"padding");return (_b)?_b:nexacro.Component._default_padding;};_pTab.on_find_CurrentStyle_buttonmargin=function(_a){var _b=this._find_pseudo_obj("buttonmargin",_a,"margin");return (_b)?_b:nexacro.Component._default_margin;};_pTab.on_find_CurrentStyle_showextrabutton=function(_a){var _b=this._find_pseudo_obj("showextrabutton",_a);return (_b)?_b:nexacro.Tab._default_showextrabutton;};_pTab.on_find_CurrentStyle_focusborder=function(_a){return this._find_pseudo_obj("focusborder",_a,"border");};_pTab.on_find_CurrentStyle_border=function(_a){var _b=this._find_pseudo_obj("border",_a,"border");if(this._tabpagearea&&_b){var _c=_b.clone();_c._linecnt=4;_c.set_top_width("0");_c.set_right_width("0");_c.set_bottom_width("0");_c.set_left_width("0");this.getElement().setElementBorder(_c,this.currentstyle.bordertype);}return _b;};_pTab.on_update_style_buttonbackground=function(){this.on_apply_style_buttonbackground(this.currentstyle.buttonbackground=this.on_find_CurrentStyle_buttonbackground(this._pseudo));};_pTab.on_update_style_buttongradation=function(){this.on_apply_style_buttongradation(this.currentstyle.buttongradation=this.on_find_CurrentStyle_buttongradation(this._pseudo));};_pTab.on_update_style_buttonborder=function(){this.on_apply_style_buttonborder(this.currentstyle.buttonborder=this.on_find_CurrentStyle_buttonborder(this._pseudo));};_pTab.on_update_style_buttonbordertype=function(){this.on_apply_style_buttonbordertype(this.currentstyle.buttonbordertype=this.on_find_CurrentStyle_buttonbordertype(this._pseudo));};_pTab.on_update_style_buttonpadding=function(){this.on_apply_style_buttonpadding(this.currentstyle.buttonpadding=this.on_find_CurrentStyle_buttonpadding(this._pseudo));};_pTab.on_update_style_buttonmargin=function(){this.on_apply_style_buttonmargin(this.currentstyle.buttonmargin=this.on_find_CurrentStyle_buttonmargin(this._pseudo));};_pTab.on_update_style_showextrabutton=function(){this.on_apply_style_showextrabutton(this.currentstyle.showextrabutton=this.on_find_CurrentStyle_showextrabutton(this._pseudo));};_pTab.on_update_style_focusborder=function(){this.on_apply_style_focusborder(this.currentstyle.focusborder=this.on_find_CurrentStyle_focusborder(this._pseudo));};_pTab.on_update_style_font=function(){var _a=null;var _b=this._tabButtons.length;for(var _c=0;_c<_b;_c++ ){_a=this._tabButtons[_c];_a.on_apply_style_font(this.style.font);}};_pTab.on_apply_style_buttonbackground=function(_a){this._updateAllTabButton();};_pTab.on_apply_style_buttongradation=function(_a){this._updateAllTabButton();};_pTab.on_apply_style_buttonborder=function(_a){this._updateAllTabButton();this._recalcLayout();};_pTab.on_apply_style_buttonbordertype=function(_a){this._updateAllTabButton();};_pTab.on_apply_style_buttonpadding=function(_a){this._updateAllTabButton();this._recalcLayout();};_pTab.on_apply_style_buttonmargin=function(_a){this._updateAllTabButton();};_pTab.on_apply_style_showextrabutton=function(_a){var _b=this._isExtraButton();if(_b&&this._tabextrabuttons.length<=0){var _c=this._tabButtons.length;for(var _d=0;_d<_c;_d++ ){var _e=this._createtabextrabutton(_d);_e.createComponent();}}else if(!_b){var _f=this._tabextrabuttons;var _c=0;if(_f){_c=_f.length;}for(var _d=0;_d<_c;_d++ ){_f[_d].set_visible(false);}}this._recalcLayout();};_pTab.on_apply_style_focusborder=function(_a){if(this._isBtnFocusAcceptable()){this._setFocusTabButton();}};_pTab.on_apply_style_color=function(_a){this._updateAllTabButton();};_pTab.on_apply_prop_enable=function(_a){var _b=this._tabButtons;var _c=this._child_list;var _d=this._tabextrabuttons;var _e=_a;if(_a==undefined){_e=this.enable;}var _f=_b.length;if(_f>0){for(var _g=0;_g<_f;_g++ ){_b[_g].enable=_e;_b[_g]._setEnable(_e);if(this.tabindex==_g&&_e==true){if(_b[_g]._pseudo!="selected"){_b[_g]._stat_change("focus","focused");}}_c[_g].set_enable(_e);if(_d.length>0){_d[_g]._setEnable(_e);}}}if(!_e){if(this.spinupbutton){this.spinupbutton.set_enable(_e);}if(this.spindownbutton){this.spinupbutton.set_enable(_e);}}};_pTab.on_create_contents=function(){var _a=this.getElement();_a.setElementSize(this._adjust_width,this._adjust_height);};_pTab.on_created_contents=function(){var _a=this.getElement();if(_a){this._getImgSize();this._tabpagearea=new nexacro.TabPageArea("tabpagearea",this.position,0,0,0,0,null,null,this);this._tabpagearea.createComponent();this._createSubComp();this.on_apply_style_buttonbordertype(this.currentstyle.buttonbordertype);this.on_apply_style_buttonbackground(this.currentstyle.buttonbackground);this.on_apply_addChild();this._is_created=true;this.on_apply_tabindex();this.on_apply_prop_rtldirection();}};_pTab.on_destroy_contents=function(){if(this._timerManager){this._timerManager.destroy();this._timerManager=null;}if(this._load_manager){var _e=this._load_manager;var _f=_e.transactionList;if(_f){for(var _g=_f.length-1;_g>=0;_g-- ){var _h=_f[_g];if(_h._usewaitcursor){_h._hideWaitCursor(this);}_h=null;}_f=null;}this._load_manager.destroy();this._load_manager=null;}if(this._bind_manager){this._bind_manager.destroy();this._bind_manager=null;}if(this._tabpagearea){this._tabpagearea.destroy();this._tabpagearea=null;}if(this.spindownbutton){this.spindownbutton.destroy();this.spindownbutton=null;}if(this.spinupbutton){this.spinupbutton.destroy();this.spinupbutton=null;}var _a=this._tabButtons;var _b;var _c=_a.length;for(var _g=0;_g<_c;_g++ ){_b=_a[_g];if(_b){_b.destroy();_a[_g]=null;}}_a=this._tabButtonBorders;_c=_a.length;for(var _g=0;_g<_c;_g++ ){_b=_a[_g];if(_b){_b.destroy();_a[_g]=null;}}_a=this._tabButtonLeftBorders;_c=_a.length;for(var _g=0;_g<_c;_g++ ){_b=_a[_g];if(_b){_b.destroy();_a[_g]=null;}}_a=this._tabBorders;_c=_a.length;for(var _g=0;_g<_c;_g++ ){_b=_a[_g];if(_b){_b.destroy();_a[_g]=null;}}_a=this._tabextrabuttons;_c=_a.length;for(var _g=0;_g<_c;_g++ ){_b=_a[_g];if(_b){_b.destroy();_a[_g]=null;}}_a=this.components;_c=_a.length;for(var _g=0;_g<_c;_g++ ){var _i=_a.get_id(0);if(this[_i]){this[_i]._is_loaded=false;if(this[_i].destroy){this[_i].destroy();}}}var _d=this.tabpages;var _c=_d.length;for(var _g=0;_g<_c;_g++ ){_d[_g]=null;}this.tabpages=null;_d=null;delete this._tabButtons;delete this._tabButtonBorders;delete this._tabButtonLeftBorders;delete this._tabBorders;delete this._tabextrabuttons;if(this._tabbutton_obj){this._tabbutton_obj=null;}this._buttonWidth=null;this._buttonRect=null;this._buttonHeight=null;this._layout_list.clear();this._layout_list=null;this.binds=null;this.objects=null;this._find_csslist=null;this._css_selectors=null;this._cssfinder_cache=null;this._child_list=null;this._executescriptlist=null;this._includescriptlist=null;this._hotkey_list=null;this._load_callbacklist=null;this.all.clear();this.all=null;this.components.clear();this.components=null;};_pTab.on_change_containerRect=function(_a,_b){this._recalcLayout();this._stat_change(this._status,this._pseudo);};_pTab.on_apply_custom_setfocus=function(_a){nexacro.Component.prototype.on_apply_custom_setfocus.call(this,_a);if(!this._focusobj){if(nexacro._enableaccessibility){if(this._isAccessibilityEnable()){this._setTabFocusObj(this);}else{if(this._isBtnFocusAcceptable()){this._setTabFocusObj(this._tabButtons[this.tabindex]);}else{this._setTabFocusObj(this._child_list[this.tabindex]);if(this._focusobj._isAccessibilityEnable()){this._focusobj._setFocus(false);}else{var _b=this._focusobj._getTabOrderFirst();if(_b){_b._setFocus(false);}}}}}else{if(this._isBtnFocusAcceptable()){this._setTabFocusObj(this._tabButtons[this.tabindex]);this._setFocusTabButton();}else{this._setTabFocusObj(this._child_list[this.tabindex]);}}}};_pTab._stat_change=function(_a,_b){this._org_status=_a;this.on_change_status(_a,_b);if(this._tabpagearea&&this.currentstyle.border){var _c=this.currentstyle.border.clone();_c._linecnt=4;_c.set_top_width("0");_c.set_right_width("0");_c.set_bottom_width("0");_c.set_left_width("0");this.getElement().setElementBorder(_c,this.currentstyle.bordertype);}};_pTab.set_preload=function(_a){if(_a===false||_a=="false"){this.preload=false;}else{this.preload=true;}};_pTab.set_tabpages=function(_a){};_pTab.on_fire_user_onmousedown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(this.onmousedown&&this.onmousedown._has_handlers){var _m=this._getRootComponent(_k);if(_k instanceof nexacro.Tabpage){_m=_k;}var _n=new nexacro.MouseEventInfo(_m,"onmousedown",_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onmousedown._fireUserEvent(this,_n);}return false;};_pTab.on_fire_sys_onmousedown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(this.onmousedown&&this.onmousedown._has_handlers){var _m=this._getRootComponent(_k);if(_k instanceof nexacro.Tabpage){_m=_k;}var _n=new nexacro.MouseEventInfo(_m,"onmousedown",_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onmousedown._fireSysEvent(this,_n);}return false;};_pTab.on_fire_user_onmouseup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(this.onmouseup&&this.onmouseup._has_handlers){var _m=this._getRootComponent(_k);if(_k instanceof nexacro.Tabpage){_m=_k;}var _n=new nexacro.MouseEventInfo(_m,"onmouseup",_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onmouseup._fireUserEvent(this,_n);}return false;};_pTab.on_fire_sys_onmouseup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(this.onmouseup&&this.onmouseup._has_handlers){var _m=this._getRootComponent(_k);if(_k instanceof nexacro.Tabpage){_m=_k;}var _n=new nexacro.MouseEventInfo(_m,"onmouseup",_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onmouseup._fireSysEvent(this,_n);}return false;};_pTab._on_killfocus=function(_a,_b){if(_a===this){return;}if(_a==null&&_b==null){return;}this._focusobj=null;for(i=0;i0){return true;}}return false;};_pTab._setTabFocusObj=function(_a){this._focusobj=_a;};_pTab._getTabFocusObj=function(){return this._focusobj;};_pTab._getTabOrderNext=function(_a,_b,_c,_d,_e,_f,_g){if(_b>0){return nexacro.FormBase.prototype._getTabOrderNext.call(this,_a,_b,_c,_d,_e,_f,_g);}else if(_b<0){if(this._isBtnFocusAcceptable()){return this._tabButtons[this.tabindex];}return this.tabpages[this.tabindex];}};_pTab._getTabOrderFirst=function(){if(nexacro._enableaccessibility&&nexacro._accessibilitytype==5&&this._accessibility_is_next){this._accessibility_is_next=false;return null;}if(this._isBtnFocusAcceptable()){return this._tabButtons[this.tabindex];}return this.tabpages[this.tabindex];};_pTab._on_btn_mousemove=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m){var _n=nexacro.Component.prototype._on_mousemove.call(this._tabButtons[_a._index],_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m);};_pTab._on_btn_mousemove=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m){var _n=nexacro.Component.prototype._on_mousemove.call(this._tabButtons[_a._index],_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m);};_pTab.on_touchstart_default_action=function(){if(this._tabbutton_obj){var _a=this._tabbutton_obj;var _b=_a._index;if(_a.name=="extrabutton"){_b=this._getExtrabuttonIdx(_a);if(_b>=0){this.on_fire_onextrabuttonclick(_a,_b);}}}};_pTab.on_touchstart_basic_action=function(_a,_b){nexacro.Component.prototype.on_touchstart_basic_action.call(this,_a,_b);if(!this.visible||this._isEnable()==false){return ret;}if(this._tabbutton_obj&&this.selectchangetype=="down"){var _c=this._tabbutton_obj;var _d=_c._index;if(_c.name=="extrabutton"){_d=this._getExtrabuttonIdx(_c);}oldindex=this.tabindex;this._iscanchange=this._changeTabIndex(_d,true);if(this._iscanchange==true){if(this.enableevent&&oldindex!=this.tabindex){this.on_fire_onchanged(_c,_d,oldindex);}}}if(this._isBtnFocusAcceptable()){this._setFocusTabButton();}};_pTab.on_fire_user_onlbuttondown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(this._tabbutton_obj){var _m=this._tabbutton_obj;var _n=_m._index;if(_m.name=="extrabutton"){_n=this._getExtrabuttonIdx(_m);if(_n>=0){this.on_fire_onextrabuttonclick(_m,_n,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);}}}if(this.onlbuttondown&&this.onlbuttondown._has_handlers){var _o=new nexacro.TabMouseEventInfo(this,"onlbuttondown",this.tabindex,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onlbuttondown._fireUserEvent(this,_o);}return false;return ret;};_pTab.on_lbuttondown_default_action=function(_a,_b,_c,_d){var _e=nexacro.Component.prototype.on_lbuttondown_default_action.call(this,_a,_b,_c,_d);if(!this.visible||this._isEnable()==false){return _e;}var _f=this._tabbutton_obj;if(_f&&_f.name=="extrabutton"){if(this._tabButtons[_f._index]){this._tabButtons[_f._index]._setFocus();}}if(_f&&this.selectchangetype=="down"){var _g=_f._index;oldindex=this.tabindex;this._iscanchange=this._changeTabIndex(_g,true);if(this._iscanchange==true){if(this.enableevent&&oldindex!=this.tabindex){this.on_fire_onchanged(_f,_g,oldindex);}}}if(this._isBtnFocusAcceptable()){this._setFocusTabButton();}return _e;};_pTab._on_lbuttonup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){this._tabbutton_obj=null;return nexacro.Component.prototype._on_lbuttonup.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);};_pTab._on_btn_lbuttonup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m){this._tabbutton_obj=null;return nexacro.Component.prototype._on_lbuttonup.call(this,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m);};_pTab._on_btn_touchend=function(_a,_b,_c,_d,_e,_f,_g){this._tabbutton_obj=_a;return nexacro.Component.prototype._on_touchend.call(this,_b,_c,_d,_e,_f,_g);};_pTab.on_lbuttonup_default_action=function(_a,_b,_c,_d){var _e=nexacro.Component.prototype.on_lbuttonup_default_action.call(this,_a,_b,_c,_d);if(!this.visible||this._isEnable()==false){return _e;}if(this._tabbutton_obj&&this.selectchangetype=="up"){this._onclick_basic_action(this._tabbutton_obj);}};_pTab.on_fire_user_onlbuttonup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m){if(this.onlbuttonup&&this.onlbuttonup._has_handlers){var _n=new nexacro.TabMouseEventInfo(this,"onlbuttonup",this.tabindex,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onlbuttonup._fireUserEvent(this,_n);}return false;};_pTab.on_fire_user_onrbuttondown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(this.onrbuttondown&&this.onrbuttondown._has_handlers){var _m=new nexacro.TabMouseEventInfo(this,"onrbuttondown",this.tabindex,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onrbuttondown._fireUserEvent(this,_m);}return false;};_pTab.on_fire_user_onrbuttonup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m){if(this.onrbuttonup&&this.onrbuttonup._has_handlers){var _n=new nexacro.TabMouseEventInfo(this,"onrbuttonup",this.tabindex,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);return this.onrbuttonup._fireUserEvent(this,_n);}return false;};_pTab._onclick_basic_action=function(_a,_b,_c,_d,_e,_f,_g,_h){var _i=_a._index;if(_i==undefined){_i=this._getExtrabuttonIdx(_a);if(_i>=0&&_b==true){this.on_fire_onextrabuttonclick(_a,_i,"none",false,false,false,_e,_f,_c,_d, -1, -1,_g,_h);}}oldindex=this.tabindex;this._iscanchange=this._changeTabIndex(_i,true);if(this._iscanchange==true){if(this.enableevent&&oldindex!=this.tabindex){this.on_fire_onchanged(_a,_i,oldindex);}}};_pTab.on_fire_canchange=function(_a,_b,_c){this._is_canchange=true;if(this.canchange&&this.canchange._has_handlers){var _d=new nexacro.TabIndexChangeEventInfo(_a,"canchange",_b,_c);this._is_canchange=this.canchange._fireCheckEvent(this,_d);return this._is_canchange;}return true;};_pTab.on_fire_onchanged=function(_a,_b,_c){if(this.onchanged&&this.onchanged._has_handlers){var _d=new nexacro.TabIndexChangeEventInfo(this,"onchanged",_b,_c);return this.onchanged._fireEvent(this,_d);}return true;};_pTab.getParentContext=function(){return this.parent;};_pTab.insertTabpage=function(_a,_b,_c,_d){if(!this._is_created){return -1;}var _e=parseInt(_b)|0;var _f=this._child_list.length;var _g=0;for(var _n=0;_n<_f;_n++ ){var _o=this._child_list[_n];if(_a==_o.text){return -1;}}var _h=new nexacro.Tabpage(_a,this);this._createTabpage(_e,_a,_h);if(_h==null){return -1;}if(_e>=_f){_e= -1;}_g=this.tabindex;if(this[_a]){if(this[_a].name==_h.name){return -1;}}if(_e== -1){this[_a]=_h;this.all.add_item(_a,_h);this.components.add_item(_a,_h);this.tabpages.add_item(_a,_h);this._child_list.push(_h);this.tabindex=_e=this._child_list.length-1;this._tabpagearea.set_visible(true);this._tabBorders[0].set_visible(true);this._tabBorders[1].set_visible(true);this._tabBorders[2].set_visible(true);}else{this[_a]=_h;this.all.add_item(_a,_h);var _p=this._tabButtonBorders;var _q=this._tabextrabuttons;var _r=_q.length>0?true:false;for(_n=this._child_list.length;_n>_b;_n-- ){this._child_list[_n]=this._child_list[_n-1];this._buttonRect[_n]=this._buttonRect[_n-1];this._tabButtons[_n]=this._tabButtons[_n-1];this._tabButtons[_n]._index+=1;if(_r){_q[_n]=_q[_n-1];if(_q[_n]){_q[_n]._index+=1;}}this._buttonWidth[_n]=this._buttonWidth[_n-1];this._buttonHeight[_n]=this._buttonHeight[_n-1];_p[_n]=_p[_n-1];if(_q[_n]){_p[_n]._index+=1;}}if(_r){_q[_n]=null;}this._child_list[_b]=_h;this.tabpages.insert_item(_b,_a,_h);this.tabindex=_e;}if(_c){_h.set_url(_c);}if(parseInt(this.tabindex)==_e){var _s=this._child_list[_g];if(_s){_s.set_visible(false);}_h.set_visible(true);}else{_h.set_visible(false);}var _i=this._tabButtons[_e]=this._createTabbutton(_e);_i.createComponent();_h._index=_e;if(_d){_h.set_text(_d);}else{_h.set_text(_a);}this._buttonRect[_e]=this._getButtonSize(_e);this._buttonHeight[_e]=this._buttonRect[_e].bottom-this._buttonRect[_e].top;this._buttonWidth[_e]=this._buttonRect[_e].right-this._buttonRect[_e].left;if(this._tabButtons.length==1){this.tabindex=0;this._tabButtons[0]._stat_change("focus","focused");}var _j=null;var _k=0;_j=this.currentstyle.buttonmargin;if(_j){_k=_j.right;}for(var _n=this._child_list.length-1;_n>_e;_n-- ){this._buttonRect[_n].left+=this._buttonWidth[_e]+_k;this._buttonRect[_n].right+=this._buttonWidth[_e]+_k;}if(this._isExtraButton()){var _t=this._createtabextrabutton(_e);_t.createComponent();this.on_apply_style_showextrabutton(this.currentstyle.showextrabutton);}this.extrabutton=this._tabextrabuttons?this._tabextrabuttons[0]:null;if(this._child_list.length==1){this.set_visible(true);}this._rearrangeButton();var _l=0;var _m=this._adjust_width;if(this.spinupbutton.visible){_m=this.spinupbutton.left;}if(_b<0||this._buttonRect[_e].right>_m){_l=0;this._lastIndex=_e;_l=this._buttonRect[_e].right;if(_l>_m){this._resetScrollIndex(_e);}}this._drawButton();return _e;};_pTab.removeTabpage=function(_a){var _b=parseInt(_a)|0;var _c=this._child_list;var _d=_c.length;if(_d==0){return -1;}if(_d>0){var _f=_c[_b];if(!_f){return -1;}var _g=_f._on_beforeclose();if(_f._checkAndConfirmClose(_g)==false){return -1;}if(_f==this._last_focused){this._last_focused=null;}_f._on_close();if(_b+1!=_d){_c[_b+1].set_visible(true);}this[_f.id]=null;delete this[_f.id];this.all.delete_item(_f.id);this.components.delete_item(_f.id);this.tabpages.delete_item(_f.id);if(_c[_b]!=undefined){_c[_b].destroy();delete _c[_b];}var _h=this._tabButtons;if(_h[_b]!=undefined){if(_h[_b]==this._tabbutton_obj){this._tabbutton_obj=null;}if(_h[_b]==this._last_focused){this._last_focused=null;}_h[_b].destroy();delete _h[_b];}var _i=this._tabextrabuttons;if(_i[_b]!=undefined){if(_i[_b]==this._tabbutton_obj){this._tabbutton_obj=null;}if(_i[_b]==this._last_focused){this._last_focused=null;}_i[_b].parent=null;_i[_b].destroy();_i[_b]=null;delete _i[_b];}var _j=this._tabButtonBorders;if(_j[_b]!=undefined){_j[_b].parent=null;_j[_b].destroy();_j[_b]=null;delete _j[_b];}var _k=this._tabButtonLeftBorders;if(_k[_b]!=undefined){_k[_b].parent=null;_k[_b].destroy();delete _k[_b];}_c.splice(_b,1);_h.splice(_b,1);var _l=false;if(_i.length>0){_i.splice(_b,1);_l=true;}this._buttonRect.splice(_b,1);this._buttonWidth.splice(_b,1);this._buttonHeight.splice(_b,1);_j.splice(_b,1);_d=_c.length;for(var _m=0;_m<_d;_m++ ){_h[_m]._index=_m;_c[_m]._index=_m;if(_l){_i[_m]._index=_m;}_j[_m]._index=_m;}if(_i[_b]!=undefined){this._tabbutton_obj=null;}}if(this._scrollIndex!=0){this._scrollIndex-- ;}if(this._lastIndex!=0){this._lastIndex-- ;}if(_b!=0&&this.tabindex==_b&&this.tabindex==this._tabButtons.length){this.tabindex=_b-1;}else if(this.tabindex>_b){this.tabindex-=1;}var _e=_c[this.tabindex];if(_e&&_e._isLoaded==false&&this.preload==false){if(_e.url!=""&&_e.url!=undefined){_e._url=_e.url;_e.on_apply_url(false);_e._isLoaded=true;}}if(_b!=0&&this.tabindex==_b-1){_h[_b-1]._stat_change("focus","focused");}this.extrabutton=this._tabextrabuttons?this._tabextrabuttons[0]:null;this._rearrangeButton();this._drawButton();if(_c.length==0){this.set_visible(false);}return 0;};_pTab.exchangeTabpage=function(_a,_b){var _c=this.currentstyle.buttonmargin;var _d=this._child_list;if(_d[_b]&&_d[_a]){var _e=_d[_a];_d[_a]=_d[_b];_d[_b]=_e;var _f=this._tabButtons;_e=_f[_a];_f[_a]=_f[_b];_f[_b]=_e;var _g=this._buttonRect;_e=_g[_a];_g[_a]=_g[_b];_g[_b]=_e;var _h=_a>_b?_b:_a;var _i=_a>_b?_a:_b;var _j=this._buttonRect[_h];var _k=this._buttonRect[_i];_j.left=_k.left;_j.right=_j.left+this._buttonWidth[_i];var _l=_g[_h].right-_g[_h+1].left+_c.right;if(_l!=_c.right){for(var _m=_h+1;_m<=_i;_m++ ){_g[_m].left+=_l;_g[_m].right+=_l;}}_k.left=_g[_i-1].right+_c.right;_k.right=_k.left+this._buttonWidth[_h];if(_g[_i+1]){_l=_g[_i].right-_g[_i+1].left+_c.right;if(_l!=_c.right){var _n=_g.length;for(var _m=_i+1;_m<_n;_m++ ){_g[_m].left+=_l;_g[_m].right+=_l;}}}var _o=this._tabextrabuttons;_e=_o[_a];_o[_a]=_o[_b];_o[_b]=_e;var _p=this._buttonWidth;_e=_p[_a];_p[_a]=_p[_b];_p[_b]=_e;var _q=this._buttonHeight;_e=_q[_a];_q[_a]=_q[_b];_q[_b]=_e;if(this.tabindex==_a){this.tabindex=_b;}else if(this.tabindex==_b){this.tabindex=_a;}this.extrabutton=this._tabextrabuttons?this._tabextrabuttons[0]:null;this._rearrangeButton();this._drawButton();}};_pTab.moveTabpage=function(_a,_b){var _c=this._child_list;var _d=_c.length;if(_b<0||_d<=_b||_d<=_a||_a<0){return -1;}if(_a==_b){return -1;}var _e=this.tabindex;var _f=null,_g=null,_h=null,_i=null,_j=null;_f=_c[_e];var _k=_f.id;var _l=_c[_b];var _m=_c[_a];var _n=this._tabButtons;var _o=_n[_b];var _p=_n[_a];var _q=this._buttonRect;var _r=_q[_b];var _s=_q[_a];var _t=this._buttonWidth;var _u=_t[_b];var _v=_t[_a];var _w=this._buttonHeight;var _x=_w[_b];var _y=_w[_a];if(_a<_b){for(var _ad=_a+1;_ad<_d;_ad++ ){_c[_ad-1]=_c[_ad];_c[_ad-1]._index=_ad-1;_n[_ad-1]=_n[_ad];_n[_ad-1]._index=_ad-1;_q[_ad-1]=_q[_ad];_t[_ad-1]=_t[_ad];_w[_ad-1]=_w[_ad];if(_ad==_b){_c[_ad]=_m;_c[_ad]._index=_ad;_n[_ad]=_p;_n[_ad]._index=_ad;_q[_ad]=_s;_t[_ad]=_v;_w[_ad]=_y;break;}}}else{for(var _ad=_a;_ad>_b;_ad-- ){_c[_ad]=_c[_ad-1];_c[_ad]._index=_ad;_n[_ad]=_n[_ad-1];_n[_ad]._index=_ad;_q[_ad]=_q[_ad-1];_t[_ad]=_t[_ad-1];_w[_ad]=_w[_ad-1];}_c[_ad]=_m;_c[_ad]._index=_ad;_n[_ad]=_p;_n[_ad]._index=_ad;_q[_ad]=_s;_t[_ad]=_v;_w[_ad]=_y;}_d=_c.length;for(var _ad=0;_ad<_d;_ad++ ){if(_k==_c[_ad].id){this.tabindex=_ad;}}this._scrollIndex=0;var _z=this._getSpinSize();var _aa=2*_z[0]+2;var _z=this._getSpinSize();var _aa=2*_z[0]+2;var _ab=0;var _ac=0;for(var _ad=0,_ae=_t.length;_ad<_ae;_ad++ ){_ab+=_t[_ad];_aa+=_ab;if(this._orgwidth<_ab){if(this._orgwidth<_aa){_ac=_ad-1;break;}}_ac=_ad;}if(_ac>=this.tabindex){this._scrollIndex=0;}else{this._scrollIndex=this.tabindex-(this._scrollIndex+_ac);}this.extrabutton=this._tabextrabuttons?this._tabextrabuttons[0]:null;this._rearrangeButton();this._drawButton();return 0;};_pTab.getTabpageCount=function(){return this._child_list.length;};_pTab.getIndex=function(_a,_b){var _c=this._GetTabIndex(parseInt(_a,10),parseInt(_b,10));return _c;};_pTab.addChild=function(_a,_b){var _c= -1;if(_a&&_a.length<=0){return -1;}if(!_b){return -1;}if(this[_a]){return -1;}if(!(_b instanceof nexacro.Tabpage)){return -1;}_b._refform=this;this[_a]=_b;this.all.add_item(_a,_b);_c=this.components.add_item(_a,_b);this.tabpages=this.components;this._child_list.push(_b);if(this.preload||this._child_list[this._setidx]==_b){_b._url=_b.url;_b.on_apply_url(_b.async);}if(!_b._url){_b._is_loaded=true;}};_pTab._on_beforeclose=function(_a){if(!this._is_alive){return;}if(!_a){_a=this;}var _b="";var _c=this.tabpages;var _d=_c.length;for(var _e=0;_e<_d;_e++ ){var _f=_c[_e];if(!_f._isLoaded){continue;}var _g=_f._on_beforeclose(_a);_b=this._appendBeforeCloseMsg(_b,_g);}return _b;};_pTab._on_close=function(){if(!this._is_alive){return;}var _a=this.tabpages;var _b=_a.length;for(var _c=0;_c<_b;_c++ ){var _d=_a[_c];if(!_d._isLoaded){continue;}_d._on_close();}};_pTab.on_apply_addChild=function(){var _a,_b;var _c=this.components;var _d=_c.length;var _e=this._pseudo;for(var _g=0;_g<_d;_g++ ){_a=_c[_g].id;_b=_c[_g];var _h=this._createTabbutton(_g);_h.createComponent();this._tabButtonBorders[_g].createComponent();this._createTabpage(_g,_a,_b);}this._rearrangeButton();if(this._child_list[0]){this._child_list[0]._on_activate();}this._drawButton();_d=_c.length;var _f=this._isExtraButton();for(var _g=0;_g<_d;_g++ ){_a=_c[_g].id;_b=_c[_g];if(_f){var _i=this._createtabextrabutton(_g);_i.createComponent();this.on_apply_style_showextrabutton(this.currentstyle.showextrabutton);}if(this._setidx==_g){_b._url=_b.url;_b._isLoaded=true;_b.set_visible(true);_b.show();_b.initProperties();this.on_apply_tabindex();}else{_b.set_visible(false);}if(this.preload){_b.show();}}this.extrabutton=this._tabextrabuttons?this._tabextrabuttons[0]:null;};_pTab._getExtrabuttonIdx=function(_a){var _b=this._tabextrabuttons;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){if(_b[_d]==_a){return _d;}}return -1;};_pTab._saveImageSize=function(_a,_b,_c){this._imagewidth=_b;this._imageheight=_c;this._rearrangeButton();this._drawButton();};_pTab._getImgSize=function(){var _a=this._find_pseudo_obj("buttonbackground",this._pseudo,"background");if(!_a){return;}var _b=null;_b=nexacro._getImageSize(_a.image,this._saveImageSize,this);if(_b){this._imagewidth=_b.width;this._imageheight=_b.height;}};_pTab._getDlgCode=function(_a,_b,_c,_d){var _e=this._focusobj;if(_e&&!(_e instanceof nexacro.TabComponent)){return _e._getDlgCode(_a,_b,_c,_d);}else{return {want_tab:_d?false:true,want_return:false,want_escape:false,want_chars:false,want_arrows:_a==nexacro.Event.KEY_UP?false:true};}};_pTab._createTabBorder=function(){var _a=new nexacro.TabBorderCtrl("tableftborder",this.position,0,0,0,0,null,null,this);this._tabBorders[0]=_a;_a._is_subcontrol=true;var _b=new nexacro.TabBorderCtrl("tabrightborder",this.position,0,0,0,0,null,null,this);this._tabBorders[1]=_b;_b._is_subcontrol=true;var _c=new nexacro.TabBorderCtrl("tabcenterborder",this.position,0,0,0,0,null,null,this);this._tabBorders[2]=_c;_c._is_subcontrol=true;_a.createComponent();_b.createComponent();_c.createComponent();};_pTab._createTabbutton=function(_a){if(_a<0){_a=this._child_list.length-1;}var _b=0;var _c=this._child_list[_a];var _d=0;var _e=this.on_find_CurrentStyle_buttonmargin(this._pseudo);if(_a==0){_d=0;}else{_d=this._buttonRect[_a-1].right+_e.right;}var _f=this._getButtonSize(_a);switch(this._getTabPosition()){case "top":this._buttonRect[_a]={left:_d,top:0,right:_d+_f.right,bottom:_f.bottom};break;case "left":this._buttonRect[_a]={left:_d,top:0,right:_d+_f.right,bottom:_f.bottom};break;case "bottom":this._buttonRect[_a]={left:_d,top:0,right:_d+_f.right,bottom:_f.bottom};break;case "right":this._buttonRect[_a]={left:_d,top:0,right:_d+_f.right,bottom:_f.bottom};break;}var _g=new nexacro.TabButtonCtrl(_c.id+"_tabbutton",this.position,0,0,1,1,null,null,this);var _f=this._buttonRect[_a];var _h=_f.left;var _i=_f.top;var _j=_f.right;var _k=_f.bottom;var _l={left:_h,top:_i,right:_j,bottom:_k};this._buttonWidth[_a]=_l.right-_l.left;this._buttonHeight[_a]=_l.bottom-_l.top;this._tabButtons[_a]=_g;_g.selected=true;_g._is_subcontrol=true;_g._index=_a;_g.set_text(_c.text);var _m=this._buttonRect[_a];this._tabButtonBorders[_a]=new nexacro.TabButtonBorderCtrl(_c.id+"tabbuttonborder",this.position,_m.left,_m.top,_m.width,_m.height,null,null,this);this._tabButtonBorders[_a]._index=_a;this._tabButtonBorders[_a].set_visible(false);this._tabButtonLeftBorders[_a]=new nexacro.TabButtonBorderCtrl("tabbuttonleftborder",this.position,_m.left,_m.top,_m.width,_m.height,null,null,this);this._tabButtonLeftBorders[_a].createComponent();this._tabButtonLeftBorders[_a].set_visible(false);return _g;};_pTab._setFocusTabButton=function(_a,_b){if(_a==null){_a=this.tabindex;}if(_b==null){_b=this._oldtabindex;}if(this._tabButtonBorders[_b]!=null){this._tabButtonBorders[_b].set_visible(false);}if(this._tabButtonBorders[_a]!=null){if(_a==this.tabindex){this._tabButtonBorders[_a].set_visible(true);var _c=this.on_find_CurrentStyle_buttonbordertype(this._pseudo);if(_c){this._tabButtonBorders[_a].style.set_bordertype(_c);}if(this.style.focusborder){this._tabButtonBorders[_a].style.set_border(this.style.focusborder._value);}if(this._buttonRect[_a]!=null){var _d=this._buttonRect[_a];var _e=this.on_find_CurrentStyle_buttonborder(this._pseudo);var _f=1;if(_e){_f+=_e._top_width;}var _g=_d.left+_f;var _h=_d.top+_f;var _i=_d.right-_g-_f;var _j=_d.bottom-_h-_f;this._tabButtonBorders[_a].move(_g,_h,_i,_j);}}else{this._tabButtonBorders[_a].set_visible(false);}}};_pTab._createtabextrabutton=function(_a){var _b=null;if(this._tabextrabuttons[_a]){_b=this._tabextrabuttons[_a];}else{_b=new nexacro.TabExtraButtonCtrl("extrabutton",this.position,0,0,20,10,null,null,this);this._tabextrabuttons[_a]=_b;_b._is_subcontrol=true;_b._index=_a;_b.set_visible(false);}this._buttonWidth[_a]+=_b._client_width;_b.parent=this;return _b;};_pTab._createTabpage=function(_a,_b,_c){if(_c==null){return _c;}_c._refobj=this;_c._index=_a;_c._applyClientPadding=false;_c._preLoad(this.preload);_c.createComponent();_c.on_apply_prop_tooltip();};_pTab._checkContainerTabFocus=function(){if(nexacro._enableaccessibility&&this._isAccessibilityEnable()==true){return true;}return this._isBtnFocusAcceptable();};_pTab._on_getAccessibilityAdditionalLabel=function(){return this.tabindex+" "+this.tabpages.length;};_pTab.on_fire_sys_onaccessibilitygesture=function(_a,_b,_c){var _d=null;var _e=this._getTabIndex();if(_a){if(this._accessibility_tabindex==_e){_d=this._child_list[_e];}else{this._accessibility_tabindex++ ;if(this._accessibility_tabindex=0){if(this._accessibility_tabindex==_e){_d=this._child_list[_e];}else{_d=this._tabButtons[this._accessibility_tabindex];}}}}if(_d){_d._setAccessibilityNotifyEvent(_a);return true;}return false;};_pTab._setRtlDirectionOfComps=function(_a){var _b=this._rtldirection;var _c=_a.length;for(var _d=0;_d<_c;_d++ ){var _e=_a[_d];if(_e){_e._setRtlDirection(_b);}}};_pTab.on_apply_prop_rtldirection=function(){nexacro.Component.prototype.on_apply_prop_rtldirection.call(this);this.on_change_containerRect();var _a=this._rtldirection;if(this._tabpagearea){this._tabpagearea._setRtlDirection(_a);}if(this.spinupbutton){this.spinupbutton._setRtlDirection(_a);}if(this.spindownbutton){this.spindownbutton._setRtlDirection(_a);}this._setRtlDirectionOfComps(this.tabpages);this._setRtlDirectionOfComps(this._tabButtons);this._setRtlDirectionOfComps(this._tabButtonBorders);this._setRtlDirectionOfComps(this._tabButtonLeftBorders);this._setRtlDirectionOfComps(this._tabBorders);this._setRtlDirectionOfComps(this._tabextrabuttons);if(this.extrabutton){this.extrabutton._setRtlDirection(_a);}};delete _pTab;}if(!nexacro.TabExtraButtonCtrl){nexacro.TabExtraButtonCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ButtonCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._index=0;this._flag=false;this._is_reference_control=false;this._accessibility_role="tabitem";};var _pTabExtraButtonCtrl=nexacro.TabExtraButtonCtrl.prototype=nexacro._createPrototype(nexacro.ButtonCtrl,nexacro.TabExtraButtonCtrl);_pTabExtraButtonCtrl._on_lbuttondown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(!this._is_alive){return;}return this.parent._on_btn_lbuttondown(this,_a,_b,_c,_d,_e,_f+this._adjust_left,_g,_h+this._adjust_left,_i,_j,_k,_l);};_pTabExtraButtonCtrl._on_lbuttonup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(!this._is_alive){return;}return this.parent._on_btn_lbuttonup(this,_a,_b,_c,_d,_e,_f+this._adjust_left,_g,_h+this._adjust_left,_i,_j,_k,_l);};_pTabExtraButtonCtrl._on_touchstart=function(_a,_b,_c,_d,_e,_f){if(!this._is_alive){return;}return this.parent._on_btn_touchstart(this,_a,_b,_c,_d,_e,_f);};_pTabExtraButtonCtrl._on_touchend=function(_a,_b,_c,_d,_e,_f){if(!this._is_alive){return;}return this.parent._on_btn_touchend(this,_a,_b,_c,_d,_e,_f);};_pTabExtraButtonCtrl._on_mousemove=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(!this._is_alive){return;}return this.parent._on_btn_mousemove(this,_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);};_pTabExtraButtonCtrl.on_apply_style_align=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_align(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_align.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_background=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_background(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_background.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_border=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_border(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_border.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_bordertype=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_bordertype(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_bordertype.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_color=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_color(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_color.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_cursor=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_cursor(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_cursor.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_font=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_font(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_font.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_gradation=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_gradation(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_gradation.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_image=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_image(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_image.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_imagealign=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_imagealign(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_imagealign.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_opacity=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_opacity(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_opacity.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_padding=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_padding(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_padding.call(this,_a);}};_pTabExtraButtonCtrl.on_apply_style_shadow=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].on_apply_style_shadow(_a);_b[_d]._flag=false;}return;}nexacro.Button.prototype.on_apply_style_shadow.call(this,_a);}};_pTabExtraButtonCtrl.set_style=function(_a){var _b=this.parent._tabextrabuttons;var _c=_b?_b.length:0;if(_c>0){if(this._index==0&&!_b[this._index]._flag){for(var _d=0;_d<_c;_d++ ){_b[_d]._flag=true;_b[_d].set_style(_a);_b[_d]._flag=false;}return;}nexacro.Component.prototype.set_style.call(this,_a);}};delete _pTabExtraButtonCtrl;}if(!nexacro.TabButtonCtrl){nexacro.TabButtonCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ButtonCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._iscanchange=true;this._index=0;this._is_reference_control=false;this._accessibility_role="tabitem";};var _pTabButtonCtrl=nexacro.TabButtonCtrl.prototype=nexacro._createPrototype(nexacro.ButtonCtrl,nexacro.TabButtonCtrl);_pTabButtonCtrl.on_find_CurrentStyle_align=function(_a){var _b=this._find_pseudo_obj("align",_a,"align");if(!_b){_b=nexacro._getCachedStyleObj("align","center middle");}return _b;};_pTabButtonCtrl.on_find_CurrentStyle_background=function(_a){return this.parent._find_pseudo_obj("buttonbackground",_a,"background");};_pTabButtonCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent._find_pseudo_obj("buttongradation",_a,"gradation");};_pTabButtonCtrl.on_find_CurrentStyle_border=function(_a){return this.parent._find_pseudo_obj("buttonborder",_a,"border");};_pTabButtonCtrl.on_find_CurrentStyle_bordertype=function(_a){return this.parent._find_pseudo_obj("buttonbordertype",_a,"bordertype");};_pTabButtonCtrl.on_find_CurrentStyle_padding=function(_a){return this.parent.on_find_CurrentStyle_buttonpadding(_a);};_pTabButtonCtrl.on_find_CurrentStyle_margin=function(_a){return this.parent.on_find_CurrentStyle_buttonmargin(_a);};_pTabButtonCtrl.on_find_CurrentStyle_color=function(_a){return this.parent.on_find_CurrentStyle_color(_a);};_pTabButtonCtrl.on_find_CurrentStyle_cursor=function(_a){return this.parent.on_find_CurrentStyle_cursor(_a);};_pTabButtonCtrl.on_find_CurrentStyle_font=function(_a){return this.parent.on_find_CurrentStyle_font(_a);};_pTabButtonCtrl.on_apply_style_border=function(_a){var _b=this._control_element;if(_b){var _c=this.currentstyle;this._setElementBorder(this.getElement(),_a,_c.bordertype);_b.setElementBackground(_c.background,_c.gradation);this._updateClientSize(_b);}};_pTabButtonCtrl.on_apply_style_color=function(_a){if(this._text_elem){this._text_elem.setElementColor(_a);}};_pTabButtonCtrl.on_apply_style_align=function(_a){if(this._text_elem&&_a){var _b=_a.halign==""?"center":_a._halign;var _c=_a.valign==""?"middle":_a._valign;if(this._img_elem&&this.currentstyle.imagealign){this._updateElementPositions(_a,this.currentstyle.imagealign);}else{this._text_elem.setElementAlignXY(_b,_c);nexacro._updateTextElementPositions(this);}}else{this.currentstyle.align="";}};_pTabButtonCtrl.on_apply_style_font=function(_a){if(this._text_elem){this._text_elem.setElementFont(_a);if(this._img_elem&&this.currentstyle.align&&this.currentstyle.imagealign){this._updateElementPositions(this.currentstyle.align,this.currentstyle.imagealign);}}};_pTabButtonCtrl.on_change_status=function(_a,_b){var _c=this.parent;if((_b=="normal"||_b=="mouseover"||_b=="pushed")&&(_c._tabButtons&&_c._tabButtons[_c.tabindex]&&this.name==_c._tabButtons[_c.tabindex].name)){_a="select";}if(_a==""){this._status="enable";}switch(_a){case "enable":if(this._status!="focus"){if(this._readonly){this._status="readonly";}else{this._status="enable";}}break;case "disable":this._status="disable";this.enable=false;break;case "focus":if(this._status!="disable"){this._status="focus";}break;case "notfocus":if(this._status!="disable"){if(this._readonly){this._status="readonly";}else{this._status="enable";}}break;case "select":this._selected=true;if(this._status!="disable"||this._use_enable){this._status="enable";_b="selected";}break;case "notselect":this._selected=false;if(this._status!="disable"){this._status="enable";}break;case "push":this._pushed=true;break;case "notpush":this._pushed=false;if(this._selected&&_b=="normal"){_b="selected";}break;case "readonly":if(!this._readonly){this._readonly=true;this._control_pseudo="";this._contents_pseudo="";}if(this._status=="enable"){this._status="readonly";}break;case "writable":if(this._readonly){this._readonly=false;this._control_pseudo="";this._contents_pseudo="";}if(this._status=="readonly"){this._status="enable";}break;}this.on_apply_pseudo(_b);this._setElementBorder(this.getElement(),this.currentstyle.border,this.currentstyle.bordertype);this.parent._drawButton();};_pTabButtonCtrl._setElementBorder=function(_a,_b,_c){if(!_b){return;}if(nexacro.Browser=="IE"&&nexacro.BrowserVersion<9){return;}var _d=_b.clone();_d._linecnt=4;var _e=this.parent._getTabPosition();if(_e=="top"){_d.set_bottom_width("0");}else if(_e=="bottom"){_d.set_top_width("0");}else if(_e=="left"){_d.set_right_width("0");}else if(_e=="right"){_d.set_left_width("0");}_a.setElementBorder(_d,_c);};_pTabButtonCtrl._setElementPosition=function(_a,_b,_c,_d,_e,_f){if(this._popup){_b=0;_c=0;}if(_d<0){_d=0;}if(_e<0){_e=0;}_a.setElementPosition(_b,_c);_a.setElementSize(_d,_e);this._updateClientSize(_a);};_pTabButtonCtrl._getDlgCode=function(_a,_b,_c,_d){var _e=true;if(_a==nexacro.Event.KEY_UP){var _f=this.parent;if(!_f._isAccessibilityEnable()){_e=false;}}return {want_tab:_d?false:true,want_return:false,want_escape:false,want_chars:false,want_arrows:_e};};_pTabButtonCtrl._updateAll=function(_a){this._control_pseudo="";this._contents_pseudo="";this._stat_change(this._status,_a);};_pTabButtonCtrl.on_apply_custom_setfocus=function(_a){if(this.parent._isBtnFocusAcceptable()){nexacro.Component.prototype.on_apply_custom_setfocus.call(this,_a);}else{this.parent.tabpages[this._index].on_apply_custom_setfocus(_a);}};_pTabButtonCtrl._setAccessibilityNotifyEvent=function(_a){var _b=this.parent;if(_b._accessibility_tabindex<0&&_b._tabButtons&&_b._tabButtons.length>0){if(_a){_b._accessibility_tabindex=0;}else{_b._accessibility_tabindex=_b.tabpages.length-1;}return _b._tabButtons[_b._accessibility_tabindex]._setAccessibilityNotifyEvent(_a);}else{_b._accessibility_tabindex=this._index;return nexacro.Component.prototype._setAccessibilityNotifyEvent.call(this,_a);}};_pTabButtonCtrl._on_sys_lbuttondown=function(_a,_b){var _c=this._on_lbuttondown(_a,_b);return _c;};_pTabButtonCtrl._on_lbuttondown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(!this._is_alive){return;}this._on_focus(true);var _m=this.parent._on_btn_lbuttondown(this,_a,_b,_c,_d,_e,_f+this._adjust_left,_g,_h+this._adjust_left,_i,_j,_k,_l);return _m;};_pTabButtonCtrl._on_lbuttonup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){if(!this._is_alive){return;}return this.parent._on_btn_lbuttonup(this,_a,_b,_c,_d,_e,_f+this._adjust_left,_g,_h+this._adjust_left,_i,_j,_k,_l);};_pTabButtonCtrl._on_focus=function(_a,_b,_c,_d,_e,_f){nexacro.Component.prototype._on_focus.call(this,_a,_b,_c,_d,_e,_f);this._setTabFocusObj(this);};_pTabButtonCtrl._on_touch_lbuttondown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m){if(!this._is_alive){return;}this._on_focus(true);var _n=this.parent._on_btn_lbuttondown(this,_a,_b,_c,_d,_e,_f+this._adjust_left,_g,_h+this._adjust_left,_i,_j,_k,_l);};_pTabButtonCtrl._setTabFocusObj=function(_a){if(!this._is_alive){return;}this.parent._focusobj=_a;};_pTabButtonCtrl._getTabFocusObj=function(){if(!this._is_alive){return;}return this.parent._focusobj;};_pTabButtonCtrl.on_tap_basic_action=function(_a,_b,_c,_d,_e,_f,_g){if(!this._is_alive){return;}var _h=nexacro.Component.prototype.on_tap_basic_action.call(this,_a,_b,_c,_d,_e,_f,_g);this.parent._onclick_basic_action(this,true,_b,_c,_d,_e,_f,_g);return _h;};_pTabButtonCtrl.on_fire_sys_onkeydown=function(_a,_b,_c,_d,_e,_f){if(this.parent._keydown_filter(null,_a,_b,_c,_d,undefined,_e,_f)){return true;}if(this.parent.onkeydown&&this.parent.onkeydown._has_handlers){var _g=this.parent._child_list[this.tabindex];var _h=new nexacro.KeyEventInfo(this,"onkeydown",_b,_c,_d,_a,_g,_g);this._on_focus(true);return this.parent.onkeydown._fireSysEvent(this,_h);}return true;};delete _pTabButtonCtrl;}if(!nexacro.TabPageArea){nexacro.TabPageArea=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.DivCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_reference_control=false;};var _pTabPageArea=nexacro._createPrototype(nexacro.DivCtrl,nexacro.TabPageArea);nexacro.TabPageArea.prototype=_pTabPageArea;_pTabPageArea._type_ame="TabPageArea";_pTabPageArea.on_find_CurrentStyle_cursor=function(_a){return this.parent.on_find_CurrentStyle_cursor(_a);};_pTabPageArea.on_find_CurrentStyle_border=function(_a){var _b=this.parent._find_pseudo_obj("border",_a,"border");var _c=_b.clone();var _d=this.parent._getTabPosition();_c._linecnt=4;if(_d=="top"){_c.set_top_width("0");}else if(_d=="bottom"){_c.set_bottom_width("0");}else if(_d=="left"){_c.set_left_width("0");}else if(_d=="right"){_c.set_right_width("0");}return _c;};_pTabPageArea.on_find_CurrentStyle_bordertype=function(_a){return this.parent._find_pseudo_obj("bordertype",_a,"bordertype");};_pTabPageArea.resetScroll=function(){this._onRecalcScrollSize();this._onResetScrollBar();};_pTabPageArea._onRecalcScrollSize=function(_a){var _b=this._control_element;if(_b&&this._is_scrollable){var _c=0,_d=0;if(!_a){var _e=this.components;for(var _f=0,_g=_e.length;_f<_g;_f++ ){var _h=_e[_f];if(_h&&_h.visible){_c=Math.max(_c,_h.getOffsetRight());_d=Math.max(_d,_h.getOffsetBottom());}}_b.setElementScrollMaxSize(_c,_d);}else if(_a.visible){var _i=_b.container_maxwidth;var _j=_b.container_maxheight;var _k=_a.getOffsetRight();var _l=_a.getOffsetBottom();if(_i<_k||_j<_l){_c=Math.max(_i,_k);_d=Math.max(_j,_l);_b.setElementScrollMaxSize(_c,_d);}}}};_pTabPageArea.on_apply_prop_rtldirection=function(){nexacro.Component.prototype.on_apply_prop_rtldirection.call(this);this.on_change_containerRect();this.resetScroll();};delete _pTabPageArea;}if(!nexacro.Tabpage){nexacro.Tabpage=function(_a,_b){nexacro.Div.call(this,_a,"absolute",0,0,0,0,null,null,_b);this._isSelfstyle=true;this._isLoaded=false;this.enableflag=true;this._index=0;this.text="";this._url="";this._is_reference_control=false;this._accessibility_role="tabpage";this._want_tab=false;this._want_arrow=true;this._apply_client_padding=false;};var _pTabPage=nexacro._createPrototype(nexacro.Div,nexacro.Tabpage);nexacro.Tabpage.prototype=_pTabPage;_pTabPage._type_name="Tabpage";_pTabPage.bringToFront=null;_pTabPage.bringToPrev=null;_pTabPage.moveToNext=null;_pTabPage.moveToPrev=null;_pTabPage.sendToBack=null;_pTabPage.sendToNext=null;_pTabPage.on_find_CurrentStyle_background=function(_a){return this._find_pseudo_obj("background",_a,"background");};_pTabPage.on_find_CurrentStyle_gradation=function(_a){return this._find_pseudo_obj("gradation",_a,"gradation");};_pTabPage.on_find_CurrentStyle_margin=function(_a){return this._find_pseudo_obj("margin",_a,"margin");};_pTabPage.on_find_CurrentStyle_padding=function(_a){return this._find_pseudo_obj("padding",_a,"padding");};_pTabPage.on_get_style_accessibility_label=function(){return this.text;};_pTabPage.addChild=function(_a,_b){var _c= -1;if(_a&&_a.length<=0){return -1;}if(!_b){return -1;}if(this[_a]){return -1;}if(!_b._type_name){return -1;}_b.parent=this;_b._refform=this;this[_a]=_b;this.all.add_item(_a,_b);if(_b._is_component){_c=this.components.add_item(_a,_b);this._child_list.push(_b);}else if(_b instanceof nexacro.BindItem){_c=this.binds.add_item(_a,_b);}else{_c=this.objects.add_item(_a,_b);}return _c;};_pTabPage.on_apply_prop_rtldirection=function(){nexacro.Component.prototype.on_apply_prop_rtldirection.call(this);this.on_change_containerRect();var _a=this._rtldirection;var _b=this._child_list;var _c=_b.length;for(var _d=0;_d<_c;_d++ ){var _e=_b[_d];_e._setRtlDirection(_a);}};_pTabPage.set_url=function(_a){if(_a!=this.url){this.url=_a;if((this.parent instanceof nexacro.TabComponent)&&this.parent._is_created==true){if(_a.substring(0,4).toLowerCase()=="url("){_a=_a.substring(4,_a.length-1);}this._url=_a;this.on_apply_url(this.async);}}};_pTabPage.on_apply_url=function(_a){if(this._url&&this._url.length>0){this._urlloading=true;this._setstylecomplete=false;application.getLayoutManager().clearLayout(this);var _b=this.parent;while(!_b._url){_b=_b.parent;}if(this._apply_client_padding){this._delete_text();}this.loadForm(this._url,_a,true,_b._url);this._isLoaded=true;}else{this.on_apply_emptyurl();this.on_apply_applystyletype();}};_pTabPage.set_text=function(_a){this.text=nexacro._toString(_a);var _b=this.parent;var _c=null;if(_b){if(_b._tabButtons.length>0){_c=_b._tabButtons[this._index];if(_c&&_c.id!=this.id){_c.set_text(this.text);_b._recalcLayout();}}}};nexacro._is_enable_setting=false;_pTabPage.set_enable=function(_a){_a=nexacro._toBoolean(_a);var _b=this._getWindow();var _c;if(!this._is_subcontrol&&!_a&&this._is_created&&this.parent){if(_b&&_b._indexOfCurrentFocusPaths(this)> -1){var _e=this._getForm();var _f=this.tabstop;this.tabstop=false;_c=_e._searchNextTabFocus();this.tabstop=_f;}}var _d=this._control_element;this.enable=_a;if(this._is_created){var _g=(this.parent._real_enable&&_a);if(this._real_enable!=_g){nexacro._is_enable_setting=true;this._setEnable(_g);nexacro._is_enable_setting=false;var _h=this.parent;if(!this._is_subcontrol&&this._is_created&&_h&&_h._is_created){if(_g){if(_b&&_b._indexOfCurrentFocusPaths(_h)==_b._getCurrentFocusPathsLength()-1&&!_h._last_focused){this._on_focus(true);}}else{if(_b&&_b._indexOfCurrentFocusPaths(this)> -1){_b._removeFromCurrentFocusPath(this,false);if(_c&&_c[0]){_c[0]._on_focus(true);}}}}}}};_pTabPage.on_apply_text=function(){};_pTabPage.on_apply_prop_tooltip=function(){var _a=this.getElement();if(_a){_a.setElementToolTip(this.tooltiptext);}};_pTabPage.on_apply_prop_enable=function(_a){nexacro.Form.prototype.on_apply_prop_enable.call(this,_a);this._resetTabPage(_a);};_pTabPage._resetTabPage=function(_a){var _b=this.parent;if(_b){var _c=_b._child_list;var _d=this._index;if(_b._tabButtons.length>0){var _e=_c[_d];var _f=_b._tabButtons[_d];if(_f&&_f.id!=this.id){if(_e!=null){if(_b.enable){if(_a){if(_d==_b.tabindex){_f._use_enable=true;_e.set_visible(true);_f._stat_change("select","selected");_f._use_enable=null;}else{_e.set_visible(false);_f._pseudo="normal";_f._status="notselect";_f._stat_change(_f._pseudo,_f._status);}}else{_f._pseudo="disable";_f._status="disabled";_f._stat_change(_f._pseudo,_f._status);}}else{_f._pseudo="disable";_f._status="disabled";_f._stat_change("disable","disabled");}}}}}};_pTabPage.set_visible=function(_a,_b){if(_a===undefined||_a===null){return;}var _c=this._control_element;_a=nexacro._toBoolean(_a);if(this.visible!=_a){this.visible=_a;if(_c){_c.setElementVisible(_a);this._setAccessibilityStatHidden(_a);if(this.visible){nexacro._resetVML(this);this._on_activate();if(!this._is_subcontrol&&this._is_created&&this.parent&&this.parent._is_created&&!_b){if(this.parent._focusobj instanceof nexacro.Tabpage){this._on_focus(true);}}}}}};_pTabPage.on_fire_onclick=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){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;};_pTabPage._on_focus=function(_a,_b,_c,_d,_e,_f){nexacro.Component.prototype._on_focus.call(this,_a,_b,_c,_d,_e,_f);this._setTabFocusObj(this);};_pTabPage._setTabFocusObj=function(_a){this.parent._focusobj=_a;};_pTabPage._getTabFocusObj=function(){return this.parent._focusobj;};_pTabPage._preLoad=function(_a){this.preload=_a;};_pTabPage._loadURL=function(){if(this.parent.preload!=true){return;}this.on_apply_url(true);};_pTabPage._getDlgCode=function(_a,_b,_c,_d){var _e=true;var _f=this._want_arrow;if(_a==nexacro.Event.KEY_TAB){if(_d){var _g=this._getLastFocused();var _h=this._getTabOrderFirst();if(_g==null){if(!this.parent._isBtnFocusAcceptable()){_e=false;}}else if(_g==_h){if(!this.parent._isBtnFocusAcceptable()){_e=false;}}}else{if(!this._getLastFocused()&&!this._getTabOrderFirst()){_e=false;}}}return {want_tab:_e,want_return:false,want_escape:false,want_chars:false,want_arrows:_f};};_pTabPage._on_bubble_dragenter=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o,_p,_q,_r){if(!this._is_alive){return;}if(_o===undefined){var _s;if(!_q){this._dragenter_first_comp=this;_q=this;if(!_q._is_reference_control){_q=this._getReferenceComponent(_q);}}if(this._is_subcontrol){_s=true;if(_b&&this._contains(_b)){return;}if(_b==this){this.on_dragenter_basic_action();}}else{_s=false;_b=this._getRootComponent(_b);if(_b&&this._contains(_b)){return;}if(this.visible&&this._isEnable()){this.on_dragenter_basic_action();var _t=this._getClientXY(_k,_l);if(_r){_o=this.on_fire_user_ondragenter(_c,_d,_e,_f,_g,_h,_i,_j,_m,_n,_k,_l,_t[0],_t[1],this,_q);}else{_o=this.on_fire_sys_ondragenter(_c,_d,_e,_f,_g,_h,_i,_j,_m,_n,_k,_l,_t[0],_t[1],this,_q);}}}if((!this.ondragenter||(this.ondragenter&&!this.ondragenter.stoppropagation))&&_o!==true&&this.parent&&!this.parent._is_application){var _u=this._getRecalcCanvasXY(_a,_k,_l);_k=_u[0];_l=_u[1];if(_s){return this.parent._on_bubble_dragenter(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o,null,_q,_r);}else{}}}else{if(this.visible&&this._isEnable()){var _t=this._getClientXY(_k,_l);if(_r){_o=this.on_fire_user_ondragenter(_c,_d,_e,_f,_g,_h,_i,_j,_m,_n,_k,_l,_t[0],_t[1],_p,_q);}else{_o=this.on_fire_sys_ondragenter(_c,_d,_e,_f,_g,_h,_i,_j,_m,_n,_k,_l,_t[0],_t[1],_p,_q);}this._stat_change("","mouseover");}if((!this.ondragenter||(this.ondragenter&&!this.ondragenter.stoppropagation))&&_o!==true&&this.parent&&!this.parent._is_application){_k+=this._adjust_left-this._scroll_left||0;_l+=this._adjust_top-this._scroll_top||0;return this.parent._on_bubble_dragenter(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,false,_p,_q,_r);}}};_pTabPage._on_bubble_dragleave=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o,_p,_q,_r){if(!this._is_alive){return;}if(_o===undefined){var _s;if(!_q){_q=this;if(!_q._is_reference_control){_q=this._getReferenceComponent(_q);}}if(this._is_subcontrol){_s=true;if(_b&&this._contains(_b)){return;}if(_p==this){this.on_dragleave_basic_action();}}else{_s=false;_b=this._getRootComponent(_b);if(_b&&this._contains(_b)){return;}if(this.visible&&this._isEnable()){this.on_dragleave_basic_action();var _t=this._getClientXY(_k,_l);if(_r){_o=this.on_fire_user_ondragleave(_c,_d,_e,_f,_g,_h,_i,_j,_m,_n,_k,_l,_t[0],_t[1],this,_q);}else{_o=this.on_fire_sys_ondragleave(_c,_d,_e,_f,_g,_h,_i,_j,_m,_n,_k,_l,_t[0],_t[1],this,_q);}}}if((!this.ondragleave||(this.ondragleave&&!this.ondragleave.stoppropagation))&&_o!==true&&this.parent&&!this.parent._is_application){var _u=this._getRecalcCanvasXY(_a,_k,_l);_k=_u[0];_l=_u[1];if(_s){return this.parent._on_bubble_dragleave(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,_o,null,_q,_r);}else{}}}else{if(this.visible&&this._isEnable()){var _t=this._getClientXY(_k,_l);if(_r){_o=this.on_fire_user_ondragleave(_c,_d,_e,_f,_g,_h,_i,_j,_m,_n,_k,_l,_t[0],_t[1],_p,_q);}else{_o=this.on_fire_sys_ondragleave(_c,_d,_e,_f,_g,_h,_i,_j,_m,_n,_k,_l,_t[0],_t[1],_p,_q);}if(!_b||!this._contains(_b)){this._stat_change("","normal");}}if((!this.ondragleave||(this.ondragleave&&!this.ondragleave.stoppropagation))&&_o!==true&&this.parent&&!this.parent._is_application){_k+=this._adjust_left-this._scroll_left||0;_l+=this._adjust_top-this._scroll_top||0;return this.parent._on_bubble_dragleave(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l,_m,_n,false,_p,_q,_r);}}};_pTabPage.on_fire_sys_onaccessibilitygesture=function(_a,_b,_c){var _d=null;var _e=this.parent;var _f=_e._getTabIndex();var _g=_e._tabButtons.length;var _h=this._getWindow();var _i=_h._accessibility_last_focused_comp;if(_a){_d=this._searchNextTabFocus(_i,undefined,undefined,true)[0];if(_d.parent!=_b){_f++ ;_e._accessibility_tabindex=_f;_d=(_g>_f)?_e._tabButtons[_f]:_d;}}else{_d=this._searchPrevTabFocus(_i,undefined,undefined,true)[0];if(_d==_b){_d=_e._tabButtons[_f];}}if(_d){_d._setAccessibilityNotifyEvent(_a);return true;}return false;};_pTabPage._setAccessibilityNotifyEvent=function(_a){var _b=null;var _c=this._index;var _d=this.parent;var _e=_d._getTabIndex();if(_a){if(_c!=_e){_b=_d._tabButtons[_c];}else{_b=this._getTabOrderFirst(true,false);}}else{if(_c!=_e){_b=_d._tabButtons[_c];}else{_b=this._getTabOrderLast(true,false);}}if(_b){_b._setAccessibilityNotifyEvent(_a);}};delete _pTabPage;nexacro.TabpageCtrl=function(_a,_b){nexacro.Tabpage.call(this,_a,_b);this._is_subcontrol=true;};var _pTabpageCtrl=nexacro.TabpageCtrl.prototype=nexacro._createPrototype(nexacro.Tabpage,nexacro.TabpageCtrl);nexacro._setForControlStyleFinder(_pTabpageCtrl);delete _pTabpageCtrl;}if(!nexacro.TabBorderCtrl){nexacro.TabBorderCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Component.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pTabBorderCtrl=nexacro._createPrototype(nexacro.Component,nexacro.TabBorderCtrl);nexacro.TabBorderCtrl.prototype=_pTabBorderCtrl;_pTabBorderCtrl.on_find_CurrentStyle_border=function(_a){var _b=this.parent._find_pseudo_obj("border",_a,"border");var _c=_b.clone();var _d=this.parent._getTabPosition();_c._linecnt=1;_c._copytoSubObjects();_c._linecnt=4;if(this.name=="tableftborder"){if(_d=="top"||_d=="left"){_c.set_bottom_width("0");_c.set_right_width("0");}else if(_d=="bottom"){_c.set_top_width("0");_c.set_right_width("0");}else if(_d=="right"){_c.set_left_width("0");_c.set_bottom_width("0");}}else if(this.name=="tabcenterborder"){if(_d=="top"){_c.set_bottom_width("0");_c.set_left_width("0");if(this.parent._tabButtons&&this.parent._tabButtons.length>0&&this.parent.tabindex> -1){var _e=this.parent.on_find_CurrentStyle_buttonbackground("selected").color;if(_e){_c.set_top_color(_e);_c.set_right_color(_e);}}}else if(_d=="bottom"||_d=="right"){_c.set_top_width("0");_c.set_left_width("0");if(this.parent._tabButtons&&this.parent._tabButtons.length>0&&this.parent.tabindex> -1){var _e=this.parent.on_find_CurrentStyle_buttonbackground("selected").color;if(_e){_c.set_bottom_color(_e);_c.set_right_color(_e);}}}else if(_d=="left"){_c.set_top_width("0");_c.set_right_width("0");if(this.parent._tabButtons&&this.parent._tabButtons.length>0&&this.parent.tabindex> -1){var _e=this.parent.on_find_CurrentStyle_buttonbackground("selected").color;if(_e){_c.set_bottom_color(_e);_c.set_left_color(_e);}}}}else{if(_d=="top"){_c.set_bottom_width("0");_c.set_left_width("0");}else if(_d=="bottom"||_d=="right"){_c.set_top_width("0");_c.set_left_width("0");}else if(_d=="left"){_c.set_top_width("0");_c.set_right_width("0");}}return _c;};_pTabBorderCtrl.on_find_CurrentStyle_bordertype=function(){var _a=this.parent._find_pseudo_obj("bordertype",this.pseudo,"bordertype");if(!_a){return null;}var _b=_a.clone();var _c=this.parent._getTabPosition();_b.set_lefttop(false);_b.set_leftbottom(false);_b.set_righttop(false);_b.set_rightbottom(false);return _b;};delete _pTabBorderCtrl;}if(!nexacro.TabButtonBorderCtrl){nexacro.TabButtonBorderCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){this._index= -1;nexacro.Component.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pTabButtonBorderCtrl=nexacro._createPrototype(nexacro.Component,nexacro.TabButtonBorderCtrl);nexacro.TabButtonBorderCtrl.prototype=_pTabButtonBorderCtrl;_pTabButtonBorderCtrl._setElementBorder=function(_a,_b,_c){var _d=_b.clone();_d._linecnt=1;_d._copytoSubObjects();_d._linecnt=4;var _e=nexacro._getWebColorFromXreColor(_b.top_color);if(_b.top_width&&_e!=""){}else if(_b.top_width!=""){_d.set_top_width("0");}_d.set_bottom_width("0");_d.set_left_width("0");_d.set_right_width("0");_a.setElementBorder(_d,_c);};_pTabButtonBorderCtrl._on_sys_lbuttondown=function(_a,_b){var _c=this._on_lbuttondown(_a,_b);return _c;};_pTabButtonBorderCtrl._on_lbuttondown=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){var _m=this.parent;var _n=_m._on_btn_lbuttondown(_m._tabButtons[this._index],_m._tabButtons[this._index]._text_elem,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);_m._tabButtons[this._index]._on_focus(true);return _n;};_pTabButtonBorderCtrl._on_lbuttonup=function(_a,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l){var _m=this.parent;return _m._on_btn_lbuttonup(_m._tabButtons[this._index],_m._tabButtons[this._index]._text_elem,_b,_c,_d,_e,_f,_g,_h,_i,_j,_k,_l);};delete _pTabButtonBorderCtrl;}