Game Development Community

Resize windows

by David Schwanke · in Torque Game Engine · 06/08/2004 (7:21 pm) · 2 replies

Me again. :D

Were working on portions of the UI now and we want to be able to have all of our windows resizable. There was a tutorial that showed how to do this but it linked off site and now the link is dead.

I was wondering if anyone has any hints or suggestions on where to put any resizeing code for our objects.

I find it hard to believe there isnt already SOMETHING in there for the gui elements to resize with each other. Kind of like the way resizing works in web design. (Having object flow that defines where the objects go.)

Or do we really have to extend all of the objects we use ourselves?

Question then becomes, would it be easier to do in the script code or in the source code? Or a combination of the two?

I cant seem to track down any 'onResize' functions (in script or source) that I was hoping would good places to hook in the resize code.

Any ideas or suggestions?

Thanks in advance.

#1
06/08/2004 (9:43 pm)
You haven't looked very close, I guess. Read engine/gui/guiControl.h closely... It should explain what you need.
#2
06/09/2004 (12:43 am)
Yah, I found that shortly after I posted.

Forgot to come back and close out the message. Sorry.

I have a bad habit of somehow being able to ask/post a question half a thought before I find the answer. Do it all the time at work. Very anoying to the people around me. Again I apologize.