Game Development Community

OnMouseEnter for window

by Howard Dortch · in Torque Game Engine · 06/17/2008 (8:50 am) · 3 replies

I have 2 GuiWindowCtrl windows open and want to have them activate when the mouse hovers over one of the windows. I noticed that functionality is not in the engine.

Right now when you open a window then open a second one. the second one has focus until it gets closed. Is there a simple way around this?
I just want to drag someting from one window to the next.

Yes I looked at the drag and drop resource but I didnt' want to get that involved.

Any help?

#1
08/03/2008 (6:28 am)
Bump anyone offer help here?

The drag and drop is added and working but I still can't shift focus from one window to another.
#2
08/03/2008 (10:36 am)
Are your guiWindowCtrls current part of the same parent "gui"? For this to work they will need to be sibling controls. Also try setting their profile field "modal = true".
#3
08/05/2008 (5:38 am)
No they are 2 seperate windows. You should be able to sense the Mouse position and set the window as active when the mouse hovers over it

Modal is the answer but while the second window can be accessed it is not in a active state when you do something on it. Active meaning the title bar is not lit up etc.

For some reason GG has now decided to take this functionality out of the engine ?? Bad move IMHO

GUICONTROL.CC Line 158 >>> addDepricatedField("Modal");

Being able to drag and drop between windows is a good thing, why is that functionality being hobbled ?