View Single Post
  #4  
Old 07-10-2007, 12:20 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Since you know the window will never be resized past your minsize, just add something like this (obviously replacing GuiWindowCtrl with the name of your window GUI):

NPC Code:
function GuiWindowCtrl.onResize(nw, nh) {
if (nw == 98) GuiWindowCtrl.width = GuiWindowCtrl.minsize[0];
}



Or to be more safe (in case this strange 98 number is changed):

NPC Code:
function GuiWindowCtrl.onResize(nw, nh) {
if (nw < GuiWindowCtrl.minsize[0]) GuiWindowCtrl.width = GuiWindowCtrl.minsize[0];
}

__________________
Do it with a DON!
Reply With Quote