if(!nexacro.GroupBox){nexacro.GroupBox_Style=function(_a){nexacro.Style.call(this);if(_a){this._target=_a;}};var _pGroupBoxStyle=nexacro._createPrototype(nexacro.Style,nexacro.GroupBox_Style);nexacro.GroupBox_Style.prototype=_pGroupBoxStyle;eval(nexacro._createBackgroundAttributeEvalStr("_pGroupBoxStyle","titlebackground"));eval(nexacro._createGradationAttributeEvalStr("_pGroupBoxStyle","titlegradation"));eval(nexacro._createValueAttributeEvalStr("_pGroupBoxStyle","titleimage"));eval(nexacro._createAlignAttributeEvalStr("_pGroupBoxStyle","titleimagealign"));eval(nexacro._createPaddingAttributeEvalStr("_pGroupBoxStyle","titleimagepadding"));eval(nexacro._createPaddingAttributeEvalStr("_pGroupBoxStyle","titlepadding"));eval(nexacro._createValueAttributeEvalStr("_pGroupBoxStyle","titleview"));_pGroupBoxStyle.__custom_emptyObject=function(){this.titlebackground=null;this.titlegradation=null;this.titleimage=null;this.titleimagealign=null;this.titleimagepadding=null;this.titlepadding=null;this.titleview=null;};_pGroupBoxStyle.__get_custom_style_value=function(){var _a="";if(this.titlebackground&&!this.titlebackground._is_empty){_a+="titlebackground:"+this.titlebackground._value+"; ";}if(this.titlegradation&&!this.titlegradation._is_empty){_a+="titlegradation:"+this.titlegradation._value+"; ";}if(this.titleimage&&!this.titleimage._is_empty){_a+="titleimage:"+this.titleimage._value+"; ";}if(this.titleimagealign&&!this.titleimagealign._is_empty){_a+="titleimagealign:"+this.titleimagealign._value+"; ";}if(this.titleimagepadding&&!this.titleimagepadding._is_empty){_a+="titleimagepadding:"+this.titleimagepadding._value+"; ";}if(this.titlepadding&&!this.titlepadding._is_empty){_a+="titlepadding:"+this.titlepadding._value+"; ";}if(this.titleview&&!this.titleview._is_empty){_a+="titleview:"+this.titleview._value+"; ";}return _a;};nexacro.GroupBox_CurrentStyle=function(){nexacro.CurrentStyle.call(this);this.titlebackground=null;this.titlegradation=null;this.titleimage=null;this.titleimagealign=null;this.titleimagepadding=null;this.titlepadding=null;this.titleview=null;};var _pGroupBoxCurrentStyle=nexacro._createPrototype(nexacro.CurrentStyle,nexacro.GroupBox_CurrentStyle);nexacro.GroupBox_CurrentStyle.prototype=_pGroupBoxCurrentStyle;_pGroupBoxCurrentStyle.__custom_emptyObject=_pGroupBoxStyle.__custom_emptyObject;_pGroupBoxCurrentStyle.__get_custom_style_value=_pGroupBoxStyle.__get_custom_style_value;delete _pGroupBoxStyle;delete _pGroupBoxCurrentStyle;nexacro.GroupBox=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.Component.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this.titlealign="topleft";this.mainStatic=null;this.titleButton=null;this.leftStatic=null;this.rightStatic=null;this.sizechange=0;this._image_width=0;this._image_height=0;this.tabstop=false;this._is_focus_accept=false;this._accessibility_role="groupbox";this._event_list={"onlbuttondown":1,"onlbuttonup":1,"onmouseenter":1,"onmouseleave":1,"onmousemove":1,"onmove":1,"onsize":1,"ontouchstart":1,"ontouchmove":1,"ontouchend":1,"onflingstart":1,"onfling":1,"onflingend":1,"onpinchstart":1,"onpinch":1,"onpinchend":1,"onlongpress":1,"onslidestart":1,"onslide":1,"onslideend":1};};var _pGroupBox=nexacro._createPrototype(nexacro.Component,nexacro.GroupBox);nexacro.GroupBox.prototype=_pGroupBox;_pGroupBox._type_name="GroupBox";nexacro.GroupBox._default_title_view=nexacro._getCachedStyleObj("titleview","horizontal");_pGroupBox.on_create_custom_style=function(){return new nexacro.GroupBox_Style(this);};_pGroupBox.on_create_custom_currentStyle=function(){return new nexacro.GroupBox_CurrentStyle();};_pGroupBox.on_apply_custom_pseudo=function(_a){if(!_a){_a=this._pseudo;}var _b=this.currentstyle;var _c=this.on_find_CurrentStyle_titleBackground(_a);var _d=this.on_find_CurrentStyle_titleGradation(_a);var _e=this.on_find_CurrentStyle_titleImage(_a);var _f=this.on_find_CurrentStyle_titleImageAlign(_a);var _g=this.on_find_CurrentStyle_titleImagePadding(_a);var _h=this.on_find_CurrentStyle_titlePadding(_a);var _i=this.on_find_CurrentStyle_titleView(_a);var _j=this.on_find_CurrentStyle_font(_a);var _k=this.on_find_CurrentStyle_color(_a);var _l=this.on_find_CurrentStyle_align(_a);if(_b.font!=_j){_b.font=_j;this.on_apply_style_font(_j);}if(_b.color!=_k){_b.color=_k;this.on_apply_style_color(_k);}if(_b.align!=_l){_b.align=_l;this.on_apply_style_align(_l);}if(_c!=_b.titlebackground){_b.titlebackground=_c;this.on_apply_style_titlebackground(_c);}if(_d!=_b.titlegradation){_b.titlegradation=_d;this.on_apply_style_titlegradation(_d);}if(_e!=_b.titleimage){_b.titleimage=_e;this.on_apply_style_titleimage(_e);}if(_f!=_b.titleimagealign){_b.titleimagealign=_f;this.on_apply_style_titleimagealign(_f);}if(_g!=_b.titleimagepadding){_b.titleimagepadding=_g;this.on_apply_style_titleimagepadding(_g);}if(_h!=_b.titlepadding){_b.titlepadding=_h;this.on_apply_style_titlepadding(_h);}if(_i!=_b.titleview){_b.titleview=_i;this.on_apply_style_titleview(_i);}this._title_Border();var _m=this.on_find_CurrentStyle_rtlimagemirroring(_a);if(_m!=_b.rtlimagemirroring){_b.rtlimagemirroring=_m;this.on_apply_style_rtlimagemirroring(_m);}};_pGroupBox.on_find_CurrentStyle_titleBackground=function(_a){return this._find_pseudo_obj("titlebackground",_a,"background");};_pGroupBox.on_find_CurrentStyle_titleGradation=function(_a){return this._find_pseudo_obj("titlegradation",_a,"gradation");};_pGroupBox.on_find_CurrentStyle_titleImage=function(_a){return this._find_pseudo_obj("titleimage",_a);};_pGroupBox.on_find_CurrentStyle_titleImageAlign=function(_a){var _b=this._find_pseudo_obj("titleimagealign",_a,"align");return _b?_b:nexacro.Component._default_buttonimg_align;};_pGroupBox.on_find_CurrentStyle_titleImagePadding=function(_a){return this._find_pseudo_obj("titleimagepadding",_a,"padding");};_pGroupBox.on_find_CurrentStyle_titlePadding=function(_a){return this._find_pseudo_obj("titlepadding",_a,"padding");};_pGroupBox.on_find_CurrentStyle_titleView=function(_a){var _b=this._find_pseudo_obj("titleview",_a);return (_b)?_b:nexacro.GroupBox._default_title_view;};_pGroupBox.on_update_style_titlebackground=function(){var _a=this.currentstyle.titlebackground=this.on_find_CurrentStyle_titleBackground(this._pseudo);this.on_apply_style_titlebackground(_a);};_pGroupBox.on_update_style_titlegradation=function(){var _a=this.currentstyle.titlegradation=this.on_find_CurrentStyle_titleGradation(this._pseudo);this.on_apply_style_titlegradation(_a);};_pGroupBox.on_update_style_titleimage=function(){var _a=this.currentstyle.titleimage=this.on_find_CurrentStyle_titleImage(this._pseudo);this.on_apply_style_titleimage(_a);};_pGroupBox.on_update_style_titleimagealign=function(){var _a=this.currentstyle.titleimagealign=this.on_find_CurrentStyle_titleImageAlign(this._pseudo);this.on_apply_style_titleimagealign(_a);};_pGroupBox.on_update_style_titleimagepadding=function(){var _a=this.currentstyle.titleimagepadding=this.on_find_CurrentStyle_titleImagePadding(this._pseudo);this.on_apply_style_titleimagepadding(_a);};_pGroupBox.on_update_style_titlepadding=function(){var _a=this.currentstyle.titlepadding=this.on_find_CurrentStyle_titlePadding(this._pseudo);this.on_apply_style_titlepadding(_a);};_pGroupBox.on_update_style_titleview=function(){var _a=this.currentstyle.titleview=this.on_find_CurrentStyle_titleView(this._pseudo);this.on_apply_style_titleview(_a);};_pGroupBox.on_apply_titlealign=function(_a){this.titlealign=_a;var _b=this.titleButton;var _c=this.mainStatic;var _d=this.leftStatic;var _e=this.rightStatic;var _f=this.on_find_CurrentStyle_bordertype(this._pseudo);var _g=parseInt(_f.radiusx);var _h=parseInt(_f.radiusy);if(!this.currentstyle.border&&!_b||!_c||!_d||!_e){return false;}var _i=this._adjust_width;var _j=this._adjust_height;var _k=_b._adjust_left;var _l=_b._adjust_top;var _m=_b._adjust_width;var _n=_b._adjust_height;var _o=this.on_find_CurrentStyle_titlePadding(this._pseudo);if(_o){_m+=(_o.left+_o.right);_n+=(_o.top+_o.bottom);}var _p=_i-20;var _q=_j-20;if(_p<_m){_m=_p>0?_p:0;}if(_q<_n){_n=_q>0?_q:0;}var _r=this.on_find_CurrentStyle_border(this._pseudo);var _s=parseInt(_r.width);var _t=parseInt(_r.left_width);var _u=parseInt(_r.top_width);var _v=parseInt(_r.right_width);var _w=parseInt(_r.bottom_width);if(this.titlealign=="topcenter"){var _x=Math.floor((_i-_m)/2);var _y=Math.floor(_n/2);var _z=_j-_y;var _aa=_x+_m+_v;var _ab=_i-_x-_m;this.mainStatic.move(0,_y,_i,_z);this.leftStatic.move(0,_y,_x,_z);this.rightStatic.move(_aa,_y,_ab,_z);_b.move(_x,0,_m,_n);}else if(this.titlealign=="topright"){var _x=_i-_g-_m-_s;var _y=Math.floor(_n/2);var _z=_j-_y;var _aa=_i-_g-_s;var _ab=_i-_aa;this.mainStatic.move(0,_y,_i,_z);this.leftStatic.move(0,_y,_x,_z);this.rightStatic.move(_aa,_y,_ab,_z);_b.move(_x,0,_m,_n);}else if(this.titlealign=="righttop"){var _x=_i-Math.floor(_m/2);var _ac=_h+_n;this.mainStatic.move(0,0,_x,_j);this.leftStatic.move(0,0,_x,_h);this.rightStatic.move(0,_ac,_x,_j-_ac);_b.move(_i-_m,_h,_m,_n);}else if(this.titlealign=="rightcenter"){var _x=_i-Math.floor(_m/2);var _ad=Math.floor((_j-_n)/2);this.mainStatic.move(0,0,_x,_j-_w);this.leftStatic.move(0,0,_x,_ad);this.rightStatic.move(0,_ad+_n,_x,_ad);_b.move(_i-_m,_ad,_m,_n);}else if(this.titlealign=="rightbottom"){var _x=_i-Math.floor(_m/2);var _ae=_h+_n;this.mainStatic.move(0,0,_x,_j);this.leftStatic.move(0,0,_x,_j-_ae);this.rightStatic.move(0,_j-_h,_x,_h);_b.move(_i-_m,_j-_ae,_m,_n);}else if(this.titlealign=="bottomright"){var _x=_i-_g-_m;var _z=_j-Math.floor(_n/2);var _aa=_i-_g;this.mainStatic.move(0,0,_i,_z);this.leftStatic.move(0,0,_x,_z);this.rightStatic.move(_aa,0,_g,_z);_b.move(_x,_j-_n,_m,_n);}else if(this.titlealign=="bottomcenter"){var _x=Math.floor((_i-_m)/2);var _z=_j-Math.floor(_n/2);var _aa=_x+_m+_v;var _ab=_i-_x-_m;this.mainStatic.move(0,0,_i,_z);this.leftStatic.move(0,0,_x,_z);this.rightStatic.move(_aa,0,_ab,_z);_b.move(_x,_j-_n,_m,_n);}else if(this.titlealign=="bottomleft"){var _x=_i-_g-_m;var _z=_j-Math.floor(_n/2);var _aa=_g+_m;var _ab=_i-_aa+_v;this.mainStatic.move(0,0,_i,_z);this.leftStatic.move(0,0,_g,_z);this.rightStatic.move(_aa,0,_ab,_z);_b.move(_g,_j-_n,_m,_n);}else if(this.titlealign=="leftbottom"){var _af=Math.floor(_m/2);var _x=_i-_af;var _ae=_h+_n;this.mainStatic.move(_af,0,_x,_j);this.leftStatic.move(_af,0,_x,_j-_ae);this.rightStatic.move(_af,_j-_h,_x,_h);_b.move(0,_j-_ae,_m,_n);}else if(this.titlealign=="leftcenter"){var _af=Math.floor(_m/2);var _x=_i-_af;var _ad=Math.floor((_j-_n)/2);var _ag=_j-_ad-_n-_w;this.mainStatic.move(_af,0,_x,_j-_w);this.leftStatic.move(_af,0,_x,_ad);this.rightStatic.move(_af,_ad+_n,_x,_ag);_b.move(0,_ad,_m,_n);}else if(this.titlealign=="lefttop"){var _af=Math.floor(_m/2);var _x=_i-_af;var _ac=_h+_n;this.mainStatic.move(_af,0,_x,_j);this.leftStatic.move(_af,0,_x,_h);this.rightStatic.move(_af,_ac,_x,_j-_ac);_b.move(0,_h,_m,_n);}else{var _y=Math.floor(_n/2);var _z=_j-_y;var _ah=_g+_t;var _aa=_ah+_m;var _ab=_i-_aa+_v;_k=_k+_ah;this.mainStatic.move(0,_y,_i,_z);this.leftStatic.move(0,_y,_ah,_z+10);this.rightStatic.move(_aa,_y,_ab,_z);_b.move(_k,_l,_m,_n);}this._title_Border();};_pGroupBox.on_apply_style_titlebackground=function(_a){if(this.titleButton&&_a){this.titleButton.style.set_background(_a);}};_pGroupBox.on_apply_style_titlegradation=function(_a){if(this.titleButton&&_a){this.titleButton.style.set_gradation(_a);}};_pGroupBox.on_apply_style_titleimage=function(_a){if(this.titleButton&&_a){this.titleButton._load_image(_a);}};_pGroupBox.on_apply_style_titleimagealign=function(_a){var _b=this.on_find_CurrentStyle_titleImage(this._pseudo);var _c=this.titleButton;if(_c&&_b&&_a){this._applyTitleSize();_c.on_apply_style_imagealign(_a);}};_pGroupBox.on_apply_style_titleimagepadding=function(_a){};_pGroupBox.on_apply_style_titlepadding=function(_a){if(this.titleButton){this.titleButton.style.set_padding(_a);}};_pGroupBox.on_apply_style_titleview=function(_a){};_pGroupBox.on_apply_style_font=function(_a){if(this.titleButton){this.titleButton.on_apply_style_font(_a);this._applyTitleSize();}};_pGroupBox.on_apply_style_color=function(_a){if(this.titleButton){this.titleButton.on_apply_style_color(_a);}};_pGroupBox.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.titleButton;var _c=this.mainStatic;var _d=this.leftStatic;var _e=this.rightStatic;if(_b){_b._setRtlDirection(_a);}if(_c){_c._setRtlDirection(_a);}if(_d){_d._setRtlDirection(_a);}if(_e){_e._setRtlDirection(_a);}};_pGroupBox.on_create_contents=function(){var _a=this.getElement();if(_a){if(this.text){var _b=this._text_elem=new nexacro.TextBoxElement(_a);var _c=this.currentstyle.align.halign==""?"center":this.currentstyle.align._halign;var _d=this.currentstyle.align.valign==""?"middle":this.currentstyle.align._valign;_b.setElementSize(this._client_width,this._client_height);_b.setElementColor(this.currentstyle.color);_b.setElementFont(this.currentstyle.font);_b.setElementAlignXY(_c,_d);}}};_pGroupBox.on_created_contents=function(){var _a=this._text_elem;var _b=this._img_elem;if(_b){_b.create();}if(_a){_a.create();}this._createGroupSubObj();this.on_apply_text(this.text);this.on_apply_style_color(this.currentstyle.color);this.on_apply_style_font(this.currentstyle.font);this.on_apply_style_titleimage(this.currentstyle.titleimage);this._applyTitleSize();this.on_apply_style_titlepadding(this.currentstyle.titlepadding);this.on_apply_style_titleimagealign(this.currentstyle.titleimagealign);this.on_apply_style_titleimagepadding(this.currentstyle.titleimagepadding);this.on_apply_style_titleview(this.currentstyle.titleview);this.on_apply_prop_rtldirection();};_pGroupBox.on_destroy_contents=function(){var _a=this._text_elem;var _b=this._img_elem;if(_a){_a.destroy();this._text_elem=null;}};_pGroupBox.on_change_containerRect=function(_a,_b){var _c=this._text_elem;if(_c){_c.setElementSize(_a,_b);}if(this.mainStatic&&this.leftStatic&&this.rightStatic&&this.titleButton){this._applyTitleSize();}this._title_Border();};_pGroupBox.set_titlealign=function(_a){var _b=_a.toString();if(_b!=this.titlealign){this.on_apply_titlealign(_b);}};_pGroupBox.set_text=function(_a){var _b=_a;if(_b===undefined||_b===null){_b="";}else{_b=_a.toString();}if(_b!=this.text){this.text=this._display_text=_b;var _c=this.titleButton;this.on_apply_text(_b);this.on_apply_style_color(this.currentstyle.color);this.on_apply_style_font(this.currentstyle.font);this.on_apply_style_align(this.currentstyle.align);this.on_apply_titlealign(this.titlealign);if(_c){this._applyTitleSize();this.bRectChange=true;}}return this.text;};_pGroupBox.on_apply_text=function(_a){var _b=_a;if(this.titleButton!=null){this.titleButton.set_text(_b);}};_pGroupBox.on_get_prop_tabstop=function(){if(nexacro._enableaccessibility){var _a=this.on_find_CurrentStyle_accessibility(this._pseudo);if(_a&&_a.enable&&_a.role=="link"){return true;}}return false;};_pGroupBox._isFocusAcceptable=function(){return nexacro._enableaccessibility;};_pGroupBox._createGroupSubObj=function(){var _a=this.mainStatic=new nexacro.MainCtrl("mainline","absolute",0,0,0,0,null,null,this);_a.createComponent();var _b=this.titleButton=new nexacro.TitleCtrl("title","absolute",0,0,0,0,null,null,this);_b.style.set_border("0px solid transparent");_b.style.set_bordertype("round 1 1");_b.createComponent();var _c=this.leftStatic=new nexacro.TitleBorderCtrl("line1","absolute",0,0,0,0,null,null,this);_c.createComponent();var _d=this.rightStatic=new nexacro.TitleBorderCtrl("line2","absolute",0,0,0,0,null,null,this);_d.createComponent();};_pGroupBox._applyTitleSize=function(){var _a=this._GetTextSize(this._display_text);var _b=this.titleButton;var _c=_b._image_width;var _d=_b._image_height;var _e=_a[0];var _f=_a[1];if(_b){if(_b._img_elem){var _g=this.on_find_CurrentStyle_titleImageAlign(this._pseudo);if(_g.halign=="lefttext"||_g.halign=="righttext"){_e+=_c;_f=_f<_d?_b._image_height:_f;}if(_g.valign=="toptext"||_g.valign=="bottomtext"){_f+=_d;}}var _h=0;var _i=0;this.titleButton._adjust_left=_h;this.titleButton._adjust_top=_i;this.titleButton._adjust_width=_e;this.titleButton._adjust_height=_f;this.on_apply_titlealign(this.titlealign);}};_pGroupBox._getMakeClientRect=function(_a){return {left:_a._client_left,top:_a._client_top,right:_a._client_left+_a._client_width,bottom:_a._client_top+_a._client_height,width:_a._client_width,height:_a._client_height};};_pGroupBox._title_Border=function(){if(!this.mainStatic||!this.leftStatic||!this.rightStatic){return false;}var _a=this.on_find_CurrentStyle_border(this._pseudo);var _b=this.on_find_CurrentStyle_bordertype(this._pseudo);var _c=this.on_find_CurrentStyle_background(this._pseudo);var _d=this.leftStatic.on_find_CurrentStyle_bordertype(this._pseudo);var _e=this.rightStatic.on_find_CurrentStyle_bordertype(this._pseudo);this.mainStatic._setElementBorder(this.mainStatic.getElement(),_a,_b,this.titlealign);this.leftStatic._setElementBorder(this.leftStatic.getElement(),_a,_d,this.titlealign);this.rightStatic._setElementBorder(this.rightStatic.getElement(),_a,_e,this.titlealign);this.on_apply_style_border("");this.on_apply_style_background("none");this.mainStatic.on_apply_style_background(_c);};_pGroupBox._GetTextSize=function(_a){if(!this.titleButton){return;}var _b=this.titleButton.on_find_CurrentStyle_font(this._pseudo)||nexacro.Component._default_font;return nexacro._getTextSize2(_a,_b);};nexacro.TitleCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.ButtonCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_reference_control=false;};_pTitleCtrl=nexacro.TitleCtrl.prototype=nexacro._createPrototype(nexacro.ButtonCtrl,nexacro.TitleCtrl);_pTitleCtrl.orgRect=null;_pTitleCtrl.on_apply_custom_pseudo=function(_a){nexacro.ButtonCtrl.prototype.on_apply_custom_pseudo.call(this,_a);this.parent.mainStatic._pseudo=_a;this.parent.mainStatic.on_update_style_border();if(this.parent.rightStatic){this.parent.rightStatic._pseudo=_a;this.parent.rightStatic.on_update_style_border();}if(this.parent.leftStatic){this.parent.leftStatic._pseudo=_a;this.parent.leftStatic.on_update_style_border();}this.parent._title_Border();};_pTitleCtrl.on_find_CurrentStyle_align=function(_a){return nexacro.Component._default_align;};_pTitleCtrl.on_find_CurrentStyle_color=function(_a){return this.parent._find_pseudo_obj("color",_a,"color");};_pTitleCtrl.on_find_CurrentStyle_font=function(_a){return this.parent._find_pseudo_obj("font",_a,"font");};_pTitleCtrl.on_find_CurrentStyle_background=function(_a){return this.parent._find_pseudo_obj("titlebackground",_a,"background");};_pTitleCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent._find_pseudo_obj("titlegradation",_a,"gradation");};_pTitleCtrl.on_find_CurrentStyle_image=function(_a){return this.parent._find_pseudo_obj("titleimage",_a);};_pTitleCtrl.on_find_CurrentStyle_imagealign=function(_a){return this.parent.on_find_CurrentStyle_titleImageAlign(_a);};_pTitleCtrl.on_find_CurrentStyle_imagepadding=function(_a){return this.parent._find_pseudo_obj("titleimagepadding",_a,"padding");};_pTitleCtrl.on_find_CurrentStyle_padding=function(_a){return this.parent._find_pseudo_obj("titlepadding",_a,"padding");};_pTitleCtrl.on_find_CurrentStyle_cursor=function(_a){return this.parent._find_pseudo_obj("cursor",_a);};_pTitleCtrl._img_load_completed=function(_a){this.parent._applyTitleSize();nexacro.Button.prototype._img_load_completed.call(this,_a);};nexacro.MainCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.StaticCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_reference_control=false;};_pMainCtrl=nexacro.MainCtrl.prototype=nexacro._createPrototype(nexacro.StaticCtrl,nexacro.MainCtrl);_pMainCtrl.orgPos=null;_pMainCtrl.on_apply_custom_pseudo=function(_a){nexacro.StaticCtrl.prototype.on_apply_custom_pseudo.call(this,_a);if(this.parent.rightStatic){this.parent.rightStatic._pseudo=_a;this.parent.rightStatic.on_update_style_border();}if(this.parent.leftStatic){this.parent.leftStatic._pseudo=_a;this.parent.leftStatic.on_update_style_border();}this.parent._title_Border();};_pMainCtrl.on_find_CurrentStyle_background=function(_a){return this.parent._find_pseudo_obj("background",_a,"background");};_pMainCtrl.on_find_CurrentStyle_shadow=function(_a){return this.parent._find_pseudo_obj("shadow",_a,"shadow");};_pMainCtrl.on_find_CurrentStyle_bordertype=function(_a){return this.parent._find_pseudo_obj("bordertype",_a,"bordertype");};_pMainCtrl.on_find_CurrentStyle_gradation=function(_a){return this.parent._find_pseudo_obj("gradation",_a,"gradation");};_pMainCtrl.on_find_CurrentStyle_cursor=function(_a){return this.parent._find_pseudo_obj("cursor",_a);};_pMainCtrl._setElementBorder=function(_a,_b,_c,_d){if(!_b){return;}var _e=_b.clone();var _f=_e._value;var _g;_e._linecnt=1;_e._copytoSubObjects();_e._linecnt=4;if(_d!=null){if(_d=="righttop"||_d=="rightcenter"||_d=="rightbottom"){_e.set_right_width("0");}else if(_d=="lefttop"||_d=="leftcenter"||_d=="leftbottom"){_e.set_left_width("0");}else if(_d=="bottomright"||_d=="bottomcenter"||_d=="bottomleft"){_e.set_bottom_width("0");}else{_e.set_top_width("0");}_a.setElementBorder(_e,_c);}};delete _pMainCtrl;nexacro.TitleBorderCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.StaticCtrl.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_reference_control=false;};_pTitleBorderCtrl=nexacro.TitleBorderCtrl.prototype=nexacro._createPrototype(nexacro.StaticCtrl,nexacro.TitleBorderCtrl);_pTitleBorderCtrl.on_apply_custom_pseudo=function(_a){nexacro.StaticCtrl.prototype.on_apply_custom_pseudo.call(this,_a);this.parent.mainStatic._pseudo=_a;this.parent.mainStatic.on_update_style_border();if(this.id=="line1"){if(this.parent.rightStatic){this.parent.rightStatic._pseudo=_a;this.parent.rightStatic.on_update_style_border();}}if(this.id=="line2"){if(this.parent.leftStatic){this.parent.leftStatic._pseudo=_a;this.parent.leftStatic.on_update_style_border();}}this.parent._title_Border();};_pTitleBorderCtrl.on_find_CurrentStyle_background=function(_a){};_pTitleBorderCtrl.on_find_CurrentStyle_border=function(_a){return this.parent._find_pseudo_obj("border",_a,"border");};_pTitleBorderCtrl.on_find_CurrentStyle_bordertype=function(_a){var _b=this.parent._find_pseudo_obj("bordertype",_a,"bordertype");var _c=_b.clone();var _d=this.parent.titlealign;if(_d=="righttop"||_d=="rightcenter"||_d=="rightbottom"){if(this.id=="line1"){_c.set_lefttop(false);_c.set_leftbottom(false);_c.set_righttop(true);_c.set_rightbottom(false);}else if(this.id=="line2"){_c.set_lefttop(false);_c.set_leftbottom(true);_c.set_righttop(false);_c.set_rightbottom(true);}}else if(_d=="lefttop"||_d=="leftcenter"||_d=="leftbottom"){if(this.id=="line1"){_c.set_lefttop(true);_c.set_leftbottom(false);_c.set_righttop(true);_c.set_rightbottom(false);}else if(this.id=="line2"){_c.set_lefttop(false);_c.set_leftbottom(true);_c.set_righttop(false);_c.set_rightbottom(true);}}else if(_d=="bottomright"||_d=="bottomcenter"||_d=="bottomleft"){if(this.id=="line1"){_c.set_lefttop(true);_c.set_leftbottom(true);_c.set_righttop(false);_c.set_rightbottom(false);}else if(this.id=="line2"){_c.set_lefttop(false);_c.set_leftbottom(false);_c.set_righttop(true);_c.set_rightbottom(true);}}else{if(this.id=="line1"){_c.set_lefttop(true);_c.set_leftbottom(true);_c.set_righttop(false);_c.set_rightbottom(false);}else if(this.id=="line2"){_c.set_lefttop(false);_c.set_leftbottom(false);_c.set_righttop(true);_c.set_rightbottom(true);}}return _c;};_pTitleBorderCtrl.on_find_CurrentStyle_cursor=function(_a){return this.parent._find_pseudo_obj("cursor",_a);};_pTitleBorderCtrl._setElementBorder=function(_a,_b,_c,_d){if(!_b){return;}var _e=_b.clone();_e._linecnt=1;_e._copytoSubObjects();_e._linecnt=4;if(_d!=null){if(_d=="righttop"||_d=="rightcenter"||_d=="rightbottom"){if(this.id=="line1"){_e.set_bottom_width("0");}else if(this.id=="line2"){_e.set_top_width("0");}}else if(_d=="lefttop"||_d=="leftcenter"||_d=="leftbottom"){if(this.id=="line1"){_e.set_bottom_width("0");}else if(this.id=="line2"){_e.set_top_width("0");}}else if(_d=="bottomright"||_d=="bottomcenter"||_d=="bottomleft"){_e.set_top_width("0");if(this.id=="line1"){_e.set_right_width("0");}else if(this.id=="line2"){_e.set_left_width("0");}}else{if(this.id=="line1"){_e.set_right_width("0");}else if(this.id=="line2"){_e.set_left_width("0");}}_a.setElementBorder(_e,_c);}};delete _pTitleBorderCtrl;nexacro.GroupBoxCtrl=function(_a,_b,_c,_d,_e,_f,_g,_h,_i){nexacro.GroupBox.call(this,_a,_b,_c,_d,_e,_f,_g,_h,_i);this._is_subcontrol=true;};var _pGroupBoxCtrl=nexacro.GroupBoxCtrl.prototype=nexacro._createPrototype(nexacro.GroupBox,nexacro.GroupBoxCtrl);_pGroupBoxCtrl._type_name="GroupBoxControl";nexacro._setForControlStyleFinder(_pGroupBoxCtrl);delete _pGroupBoxCtrl;}