function ResizePane (id,theme,LayerReference,title,width,height) { this.inherit = ScrollPane; if(ns){ this.inherit(id,theme,LayerReference,title,width,height); return; } this.inherit(id,theme,LayerReference,title,width,height,true); this.makeButton(7,"buttonResize"); this.doLayout = RPdoLayout; this.resizeDrag = resizeDrag; this.drag = RPdrag; this.dragStop = RPdragStop; this.parseXY = RPparseXY; this.onBrowserResize = RPonBrowserResize; //alert(this.id); if (this.guiManager.pageIsLoaded) { this.init(); } else this.guiManager.addMeToStartup(this); } function RPparseXY(x,y) { y-=this.y; if (y>0 && y < this.topH && (x-this.x)<(this.clipW-this.dragXOff)){ this.guiManager.dragObject = this; this.dragType=0; this.dragStart(); return; } if ((x-this.x)this.yOffset[4] && ythis.yOffset[5] && ythis.yOffset[4]+this.theme["buttonSize"]&&ythis.yOffset[6]+this.scrollBoxHeight&&ythis.yOffset[6] && y<(this.yOffset[6]+this.scrollBoxHeight)) { this.guiManager.dragObject = this; this.dragType=1; } } if (y>this.yOffset[7] && ythis.guiManager.leftBound) this.x += this.guiManager.dx; if (this.guiManager.mouseYthis.guiManager.topBound) this.y += this.guiManager.dy; if(this.xthis.guiManager.rightBound)this.x=this.guiManager.rightBound- this.clipW; if(this.ythis.guiManager.bottomBound)this.y=this.guiManager.bottomBound-this.clipH; this.dragGUI.setXY(this.x,this.y); } function RPdragStop() { if((w3||ie) && this.dragType==0) { this.dragGUI.hide(); this.setXY(); } if(ns && this.dragType==0) { if(this.layer.length>2){ if(this.layer[2].document.forms.length>0){ this.layer[2].visibility="visible"; this.setBgColor(this.layer[0],'border'); } } } //this.dragType=0; if (this.dragType==2){ this.scrollTo(0); this.doLayout(); for(i=0;i2 &&i<7)) continue; this.layer[i].visibility="visible"; } this.dragGUI.hide(); //this.layer[0].borderStyle="solid"; //this.layer[0].borderWidth=1; } this.dragGUI = null; this.dragType=0; this.focus(this.layer[0].zIndex); } function resizeDrag() { this.clipW = (this.guiManager.mouseX-this.x<100) ? 100:this.guiManager.mouseX-this.x; this.clipH = (this.guiManager.mouseY-this.y<100) ? 100:this.guiManager.mouseY-this.y; this.clipW = (this.guiManager.mouseXguiManager.w) this.clipW =(guiManager.w-this.x-10); this.doLayout(); } function RPdoLayout() { this.panelWidth = this.clipW-this.theme['buttonSize']; this.layer[1].width = this.clipW; this.layer[2].width = this.clipW; for (i=3;i2 &&i<7)) continue; this.layer[i].visibility="visible"; } } }