Torque 3D 1.1 Beta 3 - Implemented call backs on GuiWindowCtrl are not being called by script[Invalid] - NOT A BUG
by JesseL · in Torque 3D Professional · 11/26/2010 (4:58 am) · 3 replies
I created a GuiWindowCtrl and named it testWindowControl. I then made a couple of functions in script to test the call backs I was getting when I called the testWindowControl.dump() command. I was particularly insterested in the onMaximize();
So I made the onMaximize function and tried to test it:
Unfortunatly every time I minimized it and maximized it: it appears it never calls this function. What did I do wrong?
***Answer, I needed to make it onRestore()***
So I made the onMaximize function and tried to test it:
function testWindowControl::onMaximize()
{
echo("I have maximized the control");
}Unfortunatly every time I minimized it and maximized it: it appears it never calls this function. What did I do wrong?
***Answer, I needed to make it onRestore()***
About the author
I just realized that if I wanted to create a cat that caught on fire and ran up a telephone pole and then burst into a blue waterfall. That wouldn't be to hard!
#2
11/26/2010 (5:52 pm)
Ohhh, I get it now :/ I was confused. I thought that when I clicked the restore button on onMinimize it called onMaximize. But that simply isn't true. Is there a function that gets called when I restore a window?
#3
Yep, onRestore which is called if the window is restored from minimized, maximized, or collapsed state.
11/26/2010 (9:36 pm)
Yep, onRestore which is called if the window is restored from minimized, maximized, or collapsed state.
Associate Rene Damm
Hmm, works perfectly here. You pressed the maximize button and the function didn't get called? Stupid question but you sure you have all the little stuff (names, etc.) matching?