⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dialog.js

📁 DWR is the way for AJAX implementation
💻 JS
📖 第 1 页 / 共 2 页
字号:
 */jsx3.require("jsx3.gui.Alerts","jsx3.gui.Block","jsx3.gui.ToolbarButton");jsx3.Class.defineClass("jsx3.gui.Dialog",jsx3.gui.Block,[jsx3.gui.Alerts],function(b,r){var Eb=jsx3.gui.Event;var Jb=jsx3.gui.Interactive;b.MINIMIZED=0;b.MAXIMIZED=1;b.DEFAULTBACKGROUNDCOLOR="#e8e8f5";b.FIXED=0;b.RESIZEABLE=1;b.RESIZABLE=1;b.pF=jsx3.resolveURI("jsx:///images/dialog/window.gif");b.wi=jsx3.resolveURI("jsx:///images/dialog/close.gif");b.bG=jsx3.resolveURI("jsx:///images/dialog/min.gif");b.Vn=jsx3.resolveURI("jsx:///images/dialog/resize.gif");b.MODAL=1;b.NONMODAL=0;b.zB="JSX/images/dialog/max.gif";b.XD="JSX/images/dialog/restore.gif";b.KC=[null,32,32,32];b.jz=[10,10,10,10];b.dn=10;b.pD="JSXTBB_";r.init=function(l,j,g,e){this.jsxsuper(l,null,null,j,g);var R=new jsx3.gui.WindowBar(l+"_cbar");if(e!=null)R.setText(e);this.setChild(R,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);var D=new jsx3.gui.ToolbarButton(this.getName()+"_btn_min",null);D.setEvent("this.getParent().getParent().doToggleState();",Jb.EXECUTE);D.setDynamicProperty("jsximage","@Min Icon");D.setDynamicProperty("jsxtip","@Min Tip");R.setChild(D,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);D=new jsx3.gui.ToolbarButton(this.getName()+"_btn_close",null);D.setEvent("this.getParent().getParent().doClose();",Jb.EXECUTE);D.setDynamicProperty("jsximage","@Close Icon");D.setDynamicProperty("jsxtip","@Close Tip");R.setChild(D,jsx3.app.Model.PERSISTEMBED,null,jsx3.app.Model.FRAGMENTNS);};r.onAfterAssemble=function(l,n){if(this.getWindowState()==b.MAXIMIZED)this.setZIndex(n.getNextZIndex(jsx3.app.Server.Z_DIALOG));};r.getMaskProperties=function(){return this.getModal()==b.NONMODAL?jsx3.gui.Block.MASK_ALL_EDIT:jsx3.gui.Block.MASK_NO_EDIT;};r.doToggleState=function(q){var Kc=q!=null?q:this.getWindowState()==b.MAXIMIZED?b.MINIMIZED:b.MAXIMIZED;var sc;if((sc=this.getTaskButton())!=null){this.setWindowState(Kc);if(Kc==b.MAXIMIZED){this.setDisplay(jsx3.gui.Block.DISPLAYBLOCK,true);this.setZIndex(this.getServer().getNextZIndex(jsx3.app.Server.Z_DIALOG)*this.getZMultiplier(),true);var xb=this;}else{this.setDisplay(jsx3.gui.Block.DISPLAYNONE,true);var xb=sc;}sc.setState(Kc==b.MAXIMIZED?jsx3.gui.ToolbarButton.STATEON:jsx3.gui.ToolbarButton.STATEOFF);xb.focus();}else{var mb=this.Nk();if(Kc==b.MAXIMIZED){this.setWindowState(b.MAXIMIZED);var K=this.RL(true);mb.style.height=K.wI()+"px";mb.childNodes[2].style.height=K.wI()+"px";mb.childNodes[1].style.display="";if(this.getResize()){mb.childNodes[3].style.display="";mb.childNodes[4].style.display="";}this.setZIndex(this.getServer().getNextZIndex(jsx3.app.Server.Z_DIALOG)*this.getZMultiplier(),true);}else{this.setWindowState(b.MINIMIZED);mb.childNodes[1].style.display="none";var K=this.RL(true);var hc=K.JV()-K.wI();mb.style.height=32-hc+"px";mb.childNodes[2].style.height=32-hc+"px";if(this.getResize()){mb.childNodes[3].style.display="none";mb.childNodes[4].style.display="none";}}}};r.setDisplay=function(g,a){this.jsxdisplay=g;if(a)this.updateGUI("display",g);return this;};r.updateGUI=function(a,d){var ub=this.Nk();if(ub!=null){try{ub.style[a]=d;}catch(Kc){}}};r.focus=function(a){if(!a){jsx3.sleep(function(){this.focus(true);},"focus"+this.getId(),this);return;}var Ib=this.Nk();if(!Ib)return;if(this.getWindowState()==b.MINIMIZED){this.doToggleState(b.MAXIMIZED);}else{var Z=jsx3.app.Browser.isTableMoveBroken();if(Z){Ib.childNodes[1].style.display="none";}this.setZIndex(this.getServer().getNextZIndex(jsx3.app.Server.Z_DIALOG),true);var Wb=this.getCaptionBar();if(Wb!=null)Wb.focus();else this.Nk().focus();if(Z){Ib.childNodes[1].style.display="";}}};r.isFront=function(){if(this.getWindowState()==b.MINIMIZED)return false;var y=this.getParent();var Ib=y.getDescendantsOfType(b,true);for(var Ac=0;Ac<Ib.length;Ac++){if(Ib[Ac]!=this&&Ib[Ac].getWindowState()==b.MAXIMIZED&&Ib[Ac].getZIndex()>this.getZIndex())return false;}return true;};r.lm=function(o,k){if(!this.isFront()){var fc=this.ns();var Db=fc.style.display;var Yb=jsx3.app.Browser.isTableMoveBroken();if(Db!="none"&&Yb)fc.style.display="none";this.setZIndex(this.getServer().getNextZIndex(jsx3.app.Server.Z_DIALOG),true);if(Db!="none"&&Yb)fc.style.display=Db;}};r.ns=function(){var w=this.Nk();return w!=null?w.childNodes[1]:null;};r.getTaskButton=function(m){if(m==null){var xc=this.getServer();if(xc!=null)m=xc.getTaskBar();}if(m!=null){return m.getChild(b.pD+this.getId());}return null;};r.paintChild=function(q,k){var rb=this.Nk();if(rb!=null){if(this.getCaptionBar()==q){this.repaint();}else{this.jsxsuper(q,k,rb.childNodes[1]);}}};r.doClose=function(){this.getParent().removeChild(this);};r.onSetParent=function(c){var S=this.getServer();if(S!=null&&S!=c.getServer())this.Iv(S);return true;};r.onSetChild=function(j){this.jsxsuper(j);if(!this.getCaptionBar()&&b.Yd(j))this.vQ(true);return true;};r.Iv=function(e){if(e==null)e=this.getServer();var sb=this.getTaskButton(e.getTaskBar());if(sb!=null)sb.getParent().removeChild(sb);};r.onDestroy=function(s){this.Iv(s.getServer());this.jsxsuper(s);};r.getWindowState=function(){return this.jsxwindowstate!=null?this.jsxwindowstate:b.MAXIMIZED;};r.setWindowState=function(l){this.jsxwindowstate=l;return this;};r.getZMultiplier=function(){return this.jsxzmultiplier!=null?this.jsxzmultiplier:1;};r.setZMultiplier=function(p){this.jsxzmultiplier=p;return this;};r.getModal=function(){return this.jsxmodal!=null?this.jsxmodal:b.NONMODAL;};r.setModal=function(j){this.jsxmodal=j;return this;};r.doBeginMove=function(a,l){if(!a.leftButton())return;this._jsxfx=true;var sc=this.Nk();if(jsx3.app.Browser.isTableMoveBroken())sc.childNodes[1].style.display="none";this.jsxsupermix(a,sc);Eb.subscribe(Eb.MOUSEUP,this,"doEndMove");};r.doEndMove=function(j){if(!this._jsxfx)return;this._jsxfx=false;Eb.unsubscribe(Eb.MOUSEUP,this,"doEndMove");j=j.event;var ub=this.Nk();if(ub.childNodes[0]==j.srcElement()||ub.childNodes[0].childNodes[0]==j.srcElement()||ub.ownerDocument.getElementsByTagName("body")[0]){this.jsxsupermix(j,ub);if(!this.getEvent(Jb.AFTER_MOVE))this.constrainPosition();if(this.getWindowState()!=b.MINIMIZED){ub.childNodes[1].style.display="";}this.focus();var xc=this.findAncestor(function(h){return h.getOverflow()==jsx3.gui.Block.OVERFLOWHIDDEN;},false);if(xc)xc.getRendered().scrollLeft=0;}else{jsx3.util.Logger.getLogger(b.jsxclass.getName()).error("doEndMove: "+jsx3.html.getOuterHTML(j.srcElement()));}};r.Nk=function(){var X=this.getRendered();if(X!=null&&this.jsxmodal){return X.childNodes[1];}else{return X;}};r.getAbsolutePosition=function(p){return this.jsxsuper(p,this.Nk());};r.setLeft=function(f,i){this.jsxleft=f;if(i){this.br({left:f});}else{this.C5();}return this;};r.setTop=function(m,q){this.jsxtop=m;if(q){this.br({top:m});}else{this.C5();}return this;};r.setWidth=function(p,g){this.jsxwidth=p;if(g){this.br({width:this.jsxwidth});}else{this.C5();}return this;};r.setHeight=function(c,s){this.jsxheight=c;if(s){this.br({height:this.jsxheight});}else{this.C5();}return this;};r.doMaximize=function(h){if(this.getWindowState()==b.MINIMIZED)this.doToggleState(b.MAXIMIZED);if(this._jsxSm!=null){var gc=this.rE(this._jsxSm.jsxwidth,this._jsxSm.jsxheight);this.jsxwidth=gc[0];this.jsxheight=gc[1];this.jsxleft=this._jsxSm.jsxleft;this.jsxtop=this._jsxSm.jsxtop;delete this._jsxSm;var fb={left:this.getLeft(),top:this.getTop(),width:this.getWidth(),height:this.getHeight()};this.br(fb,true);if(h)h.setDynamicProperty("jsxtip","@Max Tip").setImage(b.zB).repaint();}else{this._jsxSm={};this._jsxSm.jsxwidth=this.getWidth();this._jsxSm.jsxheight=this.getHeight();this._jsxSm.jsxtop=this.getTop();this._jsxSm.jsxleft=this.getLeft();var ic=this.getParent().getAbsolutePosition();var S=this.Nk();var gc=this.rE(ic.W-b.jz[1]-b.jz[3],ic.H-b.jz[0]-b.jz[2]);this.jsxwidth=gc[0];this.jsxheight=gc[1];this.jsxleft=Math.min(parseInt(S.style.left),ic.W-this.jsxwidth-b.jz[1]);this.jsxtop=Math.min(parseInt(S.style.top),ic.H-this.jsxheight-b.jz[2]);var fb={left:this.getLeft(),top:this.getTop(),width:this.getWidth(),height:this.getHeight()};this.br(fb,true);if(h)h.setDynamicProperty("jsxtip","@Restore Tip").setImage(b.XD).repaint();}};r.getResize=function(){return this.jsxresize==null?b.RESIZABLE:this.jsxresize;};r.setResize=function(m){this.jsxresize=m;this.C5();return this;};r.setResizeParameters=function(a,d,s,l,m,o){this.jsxresize=a;this.jsxminx=d;this.jsxminy=s;this.jsxmaxx=l;this.jsxmaxy=m;};r.rE=function(a,p){a=Math.max(a,this.dx());p=Math.max(p,this.gi());if(typeof(this.jsxmaxx)=="number")a=Math.min(a,this.jsxmaxx);if(typeof(this.jsxmaxy)=="number")p=Math.min(p,this.jsxmaxy);return [a,p];};r.getCaptionBar=function(){return this.findDescendants(b.Yd,false,false,true);};b.Yd=function(c){return jsx3.gui.WindowBar&&c instanceof jsx3.gui.WindowBar&&c.getType()==jsx3.gui.WindowBar.TYPECAPTION;};r.yB=function(d,i){if(!d.leftButton())return;var Mc=this.doEvent(Jb.BEFORE_RESIZE,{objEVENT:d});if(Mc!==false){b._jsxwy=i.parentNode.childNodes[2];b._jsxwy.style.visibility="";b._jsxwy.style.zIndex=11;i.style.zIndex=12;var sb=this.RL(true).pQ(1);b._jsxoffx=b.dn+2;b._jsxoffy=b.dn+2;var ub=this;jsx3.gui.Interactive.DM(d,i,function(g,f){return ub.xn(g,f);});Eb.subscribe(Eb.MOUSEUP,this,"XB");}};r.xn=function(q,p){if(b._jsxwy){this._jsxZp=q+b._jsxoffx;this._jsxXk=p+b._jsxoffy;this._jsxZp=Math.max(this._jsxZp,this.dx());this._jsxXk=Math.max(this._jsxXk,this.gi());if(typeof(this.jsxmaxx)=="number")this._jsxZp=Math.min(this._jsxZp,this.jsxmaxx);if(typeof(this.jsxmaxy)=="number")this._jsxXk=Math.min(this._jsxXk,this.jsxmaxy);var rb=this.RL().pQ(1);rb.recalculate({width:this._jsxZp,height:this._jsxXk},b._jsxwy);return [this._jsxZp-b._jsxoffx,this._jsxXk-b._jsxoffy];}return [q,p];};r.dx=function(){var Fb=Number(this.jsxminx)||-1;return Math.max(25,Fb);};r.gi=function(){var Hc=Number(this.jsxminy)||-1;var sb=15;if(this.getCaptionBar()!=null)sb=sb+30;return Math.max(sb,Hc);};r.XB=function(a){a=a.event;Eb.unsubscribe(Eb.MOUSEUP,this,"XB");Eb.publish(a);if(!b._jsxwy)return;var Pb=this.RL().pQ(1);var T=Pb.jU();var zc=Pb.JV();b._jsxwy.style.visibility="hidden";b._jsxwy.style.zIndex=0;delete b._jsxwy;this.jsxwidth=T;this.jsxheight=zc;this.br({width:T,height:zc});this.doEvent(Jb.AFTER_RESIZE,{objEVENT:a});};r.recalcBox=function(){this.jsxsuper();this.br();};r.IO=function(a){var U=a==this.getCaptionBar()?this.RL(true):this.RL(true).pQ(0);return {parentwidth:U.XK(),parentheight:U.P5()};};r.br=function(c,a){if(a&&(c.left==null||c.top==null)){var rb=this.getParent().getAbsolutePosition();if(c.left==null)c.left=parseInt((rb.W-c.width)/2);if(c.top==null)c.top=parseInt((rb.H-c.height)/2);}this.nW(c,true);};r.T5=function(f){var vc=this.getWindowState()==b.MINIMIZED&&this.getServer().getTaskBar()==null;var Nc=this.getParent();if(Nc==null){Nc={H:this.getHeight(),W:this.getWidth()};}else{Nc=Nc.getAbsolutePosition();if(Nc==null||Nc.W==0)Nc={H:this.getHeight(),W:this.getWidth()};}var v=jsx3.util.strEmpty(this.getTop())?parseInt((Nc.H-this.getHeight())/2):this.getTop();var eb=jsx3.util.strEmpty(this.getLeft())?parseInt((Nc.W-this.getWidth())/2):this.getLeft();if(f==null)f={};if(f.left==null)f.left=eb;if(f.top==null)f.top=v;if(f.width==null)f.width=this.getWidth();if(f.height==null)f.height=vc?30:this.getHeight();f.tagname="div";f.boxtype="box";f.padding="2 2 2 2";f.border="solid 1px #c6c6c6;solid 1px #a6a6a6;solid 1px #a6a6a6;solid 1px #c6c6c6";var tc=new jsx3.gui.Painted.Box(f);var Fc=this.getCaptionBar();var bb={};bb.parentwidth=tc.XK();bb.parentheight=tc.P5();bb.width="100%";bb.height=this.getHeight()-(Fc!=null?Fc.getHeight()+8:6);bb.top=Fc!=null?Fc.getHeight()+4:2;bb.left=2;bb.tagname="div";bb.boxtype="box";bb.border="solid 1px #a6a6a6;solid 1px #c6c6c6;solid 1px #c6c6c6;solid 1px #a6a6a6";var Cc=new jsx3.gui.Painted.Box(bb);tc.W8(Cc);bb={};bb.left=-1;bb.top=-1;bb.width=this.getWidth();bb.height=vc?30:this.getHeight();bb.tagname="div";bb.boxtype="box";bb.padding="0";bb.border="dashed 1px #4070ff";var W=new jsx3.gui.Painted.Box(bb);tc.W8(W);bb={};bb.left=this.getWidth()-(b.dn+2);bb.top=this.getHeight()-(b.dn+2);bb.width=b.dn+1;bb.height=b.dn+1;bb.tagname="div";bb.boxtype="box";var Rb=new jsx3.gui.Painted.Box(bb);tc.W8(Rb);bb={};bb.left=this.getWidth()-(b.dn+2);bb.top=this.getHeight()-(b.dn+2);bb.width=b.dn;bb.height=b.dn;bb.tagname="div";bb.boxtype="box";var V=new jsx3.gui.Painted.Box(bb);tc.W8(V);return tc;};r.k7=function(h,e,j){var Lb=this.RL(true,h);if(e!=null)e=this.Nk();if(e!=null){var T=this.getCaptionBar();Lb.recalculate(h,e,j);var Ab=Lb.pQ(0);var H=this.getHeight()-(T!=null?T.getHeight()+8:6);Ab.recalculate({parentwidth:Lb.XK(),parentheight:Lb.P5(),width:"100%",height:H},e.childNodes[1],j);var y=Lb.pQ(1);y.recalculate({width:this.getWidth(),height:this.getHeight()},e.childNodes[2],j);if(this.getResize()==b.RESIZABLE){var E=Lb.pQ(2);E.recalculate({top:this.getHeight()-(b.dn+2),left:this.getWidth()-(b.dn+2)},e.childNodes[3],j);var bb=Lb.pQ(3);bb.recalculate({top:this.getHeight()-(b.dn+2),left:this.getWidth()-(b.dn+2)},e.childNodes[4],j);}if(T)j.add(T,{width:"100%",parentwidth:Lb.XK(),height:T.getHeight()},e.childNodes[0],true);var eb=this.getChildren();var Hc=0;var vb=e.childNodes[T?1:0];if(vb){var vc=vb.childNodes;for(var fc=0;fc<eb.length;fc++){if(eb[fc]!=T){j.add(eb[fc],{parentwidth:Ab.XK(),parentheight:Ab.P5()},true,true);}else{Hc=1;}}}}};r.paint=function(){this.applyDynamicProperties();var yb=this.getId();var _b=this.getWindowState()==b.MINIMIZED&&this.getServer().getTaskBar()==null;var oc=_b?"display:none;":"";var xb=this.getServer()!=null?this.getServer().getNextZIndex(jsx3.app.Server.Z_DIALOG)*this.getZMultiplier():5000;var Hb={};if(this.getEvent("jsxkeypress")!=null)Hb[Eb.KEYPRESS]=true;if(this.getModal()!=b.MODAL)Hb[Eb.MOUSEDOWN]="lm";var wb=this.getModal()==b.MODAL;var db=this.lM(Hb,wb?1:0);var ib=this.renderAttributes(null,true);this.nt();var Zb=this.RL(true);if(_b){var tc=Zb.JV()-Zb.wI();var Jc="height:"+(32-tc)+"px;";}else{var Jc="";}if(wb){var gb=["<div id=\""+yb+"\" "+this.CI()+this.RX(Eb.KEYDOWN,"pG",0)+" style=\"width:100%;height:100%;position:absolute;left:0px;top:0px;z-index:"+xb+this.T1()+";\""+">"+"<div class=\"jsx30dialog_modal\""+this.RX(Eb.MOUSEDOWN,"he",1)+this.RX(Eb.MOUSEUP,"wz",1)+">&#160;</div>","<span "+this.CI()+this.RX(Eb.KEYDOWN,"pG",1)+" style=\"position:absolute;left:-1px;top:0px;width:1px;height:1px;overflow:hidden;\"></span></div>"];Zb.setAttributes("label=\""+this.getName()+"\""+db+this.CI()+" class=\""+this.CH()+"\" "+ib);Zb.setStyles("z-index:1;"+this.UZ()+this.K2()+this.MU()+this.iN()+Jc);}else{var gb=["",""];Zb.setAttributes("id=\""+yb+"\" label=\""+this.getName()+"\""+db+this.CI()+" class=\""+this.CH()+"\" "+ib);Zb.setStyles("z-index:"+xb+";"+this.UZ()+this.K2()+this.T1()+this.MU()+this.iN()+Jc);}var Vb=this.getCaptionBar();var A=Vb!=null?Vb.paint():"<span style='display:none;'>&#160;</span>";var W=Zb.pQ(0);W.setStyles("cursor:default;z-index:2;"+this.eQ()+this.A0()+oc);var Ec=this.getChildren().filter(function(l){return l!=Vb;});var uc=this.paintChildren(Ec);var kb=Zb.pQ(1);kb.setStyles("z-index:0;visibility:hidden;overflow:hidden;"+Jc);if(this.getResize()==b.RESIZABLE){var z=Zb.pQ(2);z.setStyles("overflow:hidden;cursor:se-resize;z-index:12;background-image:url("+jsx3.gui.Block.SPACE+");"+oc);z.setAttributes(this.RX(Eb.MOUSEDOWN,"yB",wb?2:1));var y=Zb.pQ(3);y.setStyles("overflow:hidden;z-index:1;background-image:url("+b.Vn+");"+oc);var Xb=z.paint().join("")+y.paint().join("");}else{var Xb="";}return gb[0]+Zb.paint().join(A+W.paint().join(uc)+kb.paint().join("&#160;")+Xb)+gb[1];};r.pG=function(d,i){if(d.srcElement()==i&&d.tabKey()){d.cancelReturn();(this.getCaptionBar()||this).focus();}else{d.setAttribute("jsxmodal",1);}};r.he=function(h,e){this.beep().focus();h.cancelBubble();};r.wz=function(f,g){this.focus();f.cancelBubble();};r.nt=function(){var Kb=this.getId();var sc;if(this.getServer()!=null&&(sc=this.getServer().getTaskBar())!=null&&this.getModal()!=b.MODAL){var A=this.getCaptionBar();var tc=this.getTaskButton();if(A!=null){if(tc==null){A.applyDynamicProperties();var wb=new jsx3.gui.ToolbarButton(b.pD+Kb,jsx3.gui.ToolbarButton.TYPECHECK,A.getText());sc.setChild(wb);wb.setEvent("var d = jsx3.GO('"+Kb+"'); d.doToggleState(d.isFront() ? jsx3.gui.Dialog.MINIMIZED : jsx3.gui.Dialog.MAXIMIZED); false;","jsxexecute");wb.setState(this.getWindowState()==b.MAXIMIZED?jsx3.gui.ToolbarButton.STATEON:jsx3.gui.ToolbarButton.STATEOFF);wb.setText((A.getText()||"").doTruncate(20));wb.setImage(b.pF);if(sc.getRendered()==null){jsx3.sleep(sc.repaint,"repaint"+sc.getId(),sc);}else{sc.paintChild(wb);}}else{tc.setText(A.getText().doTruncate(20)).repaint();}}else{if(tc!=null){tc.getParent().removeChild(tc);}}}};r.CI=function(){return this.jsxsuper(this.getIndex()||Number(0));};r.A0=function(){if(this.getOverflow()==jsx3.gui.Block.OVERFLOWHIDDEN){return "overflow:hidden;";}else{return "overflow:auto;";}};r.getAlertsParent=function(){return this;};r.constrainPosition=function(c){var G=this.getRendered();var Dc=G!=null;var wb=null;if(G){wb=G.parentNode;}else{if(this.getParent()){wb=this.getParent().getRendered();}}if(wb==null)return;var I=parseInt(wb.style.width);var Db=parseInt(wb.style.height);if(c){var sb=I-b.jz[1]-b.jz[3];var Qb=I-b.jz[0]-b.jz[2];if(this.getWidth()>sb)this.setWidth(sb,Dc);if(this.getHeight()>Qb)this.setHeight(Qb,Dc);var X=I-this.getWidth()-b.jz[1];var zc=Db-this.getHeight()-b.jz[2];if(this.getLeft()<b.jz[3])this.setLeft(b.jz[3],Dc);else{if(this.getLeft()>X)this.setLeft(X,Dc);}if(this.getTop()<b.jz[0])this.setTop(b.jz[0],Dc);else{if(this.getTop()>zc)this.setTop(zc,Dc);}}else{var qb=this.getDimensions();if(b.KC[3]==null&&qb[0]<0)this.setLeft(0,Dc);else{if(b.KC[3]!=null&&qb[0]<b.KC[3]-qb[2])this.setLeft(b.KC[3]-qb[2],Dc);else{if(b.KC[1]==null&&qb[0]>I-qb[2])this.setLeft(I-qb[2],Dc);else{if(b.KC[1]!=null&&qb[0]>I-b.KC[1])this.setLeft(I-b.KC[1],Dc);}}}if(b.KC[0]==null&&qb[1]<0)this.setTop(0,Dc);else{if(b.KC[0]!=null&&qb[1]<b.KC[0]-qb[3])this.setTop(b.KC[0]-qb[3],Dc);else{if(b.KC[2]==null&&qb[1]>Db-qb[3])this.setTop(Db-qb[3],Dc);else{if(b.KC[2]!=null&&qb[1]>Db-b.KC[2])this.setTop(Db-b.KC[2],Dc);}}}}};r.onRemoveChild=function(n,h){this.jsxsuper(n,h);if(n instanceof Array){this.C5();this.repaint();}else{if(b.Yd(n)){this.C5();this.repaint();}}};r.beep=function(){var Jc=this.getCaptionBar();if(Jc!=null){Jc.beep();}else{var A=this.Nk();jsx3.gui.F9(A,{backgroundColor:"#FFFFFF"});}return this;};r.getAlwaysCheckHotKeys=function(){return true;};b.getVersion=function(){return "3.0.00";};});jsx3.Dialog=jsx3.gui.Dialog;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -