Closed Thread Icon

Topic awaiting preservation: Bratta's windows easy minimize question ? Pages that link to <a href="https://ozoneasylum.com/backlink?for=8148" title="Pages that link to Topic awaiting preservation: Bratta&amp;#039;s windows easy minimize question ?" rel="nofollow" >Topic awaiting preservation: Bratta&#039;s windows easy minimize question ?\

 
Author Thread
Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 04-20-2002 16:50

i already posted this at dhtmlcentral but i know that i would probably get a quicker response here )

I'm using the windows script from dhtmlcentral wich i already partially modify but i'd like to change the minimize function to better suite my project.

I'd like to make the windows minimize on the spot instead of minimizing at the bottom of the screen

here is the current minimize function:

code:
function win_minimize(){
if(this.state!="min"){ couns=0
if(this.state!="max"){this.lastx=this.x; this.lasty=this.y}
y=winpage.y2-oWin.headh; ox=winpage.x2-126; a=0
for(i=0;i<wins;i++){
x=i*125; ok=a
if(a*125>ox){if(ox>126) i=0; a=0; y-=oWin.headh; x=0}
for(j=0;j<wins;j++){
couns++; if(oWin[j].x==x && oWin[j].y==y) a++
}if(a==ok) break;
}x=a*125;
this.moveIt(x,y); this.oResize.hideIt()
this.state="min"; this.resize(125,oWin.headh)
}else this.regwin()
}



I'd tried to play around with it but i only managed to get errors........

can someone please help me again?

thank you AGAIN )

Ultra

::UltrA::

bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 04-21-2002 04:13

you should be able to change this

this.moveIt(x,y); this.oResize.hideIt()

to just:
this.oResize.hideIt()

I'm guessing that should do it as long as none of the other method calls are dependant on this.
You may have hit some issues because he put two JS statements in one line so removing the whole lines will not work properly




.:[ The Tao of Steve ]:.
Be Desireless
Be Excellent
Be Gone
...................................

Ultra
Nervous Wreck (II) Inmate

From:
Insane since: Jan 2002

posted posted 04-21-2002 13:31

Thank you so much now theyre working perfectly like i wanted !

Ultra

::UltrA::

« BackwardsOnwards »

Show Forum Drop Down Menu