Embedding Torque window in another app
by Anthony Hughes · in Technical Issues · 02/23/2005 (1:42 am) · 7 replies
We are looking at using Torque for a possible development but I was wondering if the following scenario was supported at all...
Basically I want to be able to 'embed' a Torque application inside a child window of a C# application in a similar way that you can embed a Flash .swf file by using the Flash OCX control on the Window Form.
If that's not possible (I suspect it isn't) is it possible to get the Torque app to display using a supplied window handle rather than it creating it's own (This is similar to the small screensaver 'preview' window in the Screen Saver tab of the Desktop Properties window - the handle for that window is passed to the screensave when it is being run in "config" mode....)
Many Thanks in advance
Ant
Basically I want to be able to 'embed' a Torque application inside a child window of a C# application in a similar way that you can embed a Flash .swf file by using the Flash OCX control on the Window Form.
If that's not possible (I suspect it isn't) is it possible to get the Torque app to display using a supplied window handle rather than it creating it's own (This is similar to the small screensaver 'preview' window in the Screen Saver tab of the Desktop Properties window - the handle for that window is passed to the screensave when it is being run in "config" mode....)
Many Thanks in advance
Ant
About the author
#2
02/23/2005 (7:28 am)
Look at the win32 platform layer and see how things are being processed. You may have to rewrite large chunks of the layer to gain the functionality you desire.
#3
02/23/2005 (7:32 am)
Thanks for the reply - sounds like it *might* be possible - unfortunately I do not yet have access to the code / docs - this is likely to determine whether we go with Torque or not, so I don't really want to fork out for a (commecial) licence and then find out it's not possible....
#4
02/23/2005 (9:41 am)
For reference, BraveTree has gotten TGE to work as an activeX control (runs right in a browser), so this would be one path that might solve your situation.
#5
02/23/2005 (9:57 am)
It's not that it's not possible, but rather whether it's feasible with your developers C++ experience, as they will be working extensively with a large sourcebase. I know that I wouldn't approach this problem right now because I don't have much experience with ActiveX programming and prefer to keep my stuff as cross-platform compliant as possible (so I have only given the platform layers a cursory glance). It would be a huge undertaking for me. Now, if you have a group of developers that implement ActiveX clients like crazy and are used to pushing large sourcebases through an ActiveX pinhole, then it's a much more realistic goal.
#6
02/23/2005 (3:55 pm)
You can do this with Ogre3D, and there may be some sample code kicking around, but since I got Torque, I have not been hanging out in their forums. Try there. One guy used it to model Microwave comms signals and terrain interaction.
#7
Anthony, have you progressed at all in this matter?
12/08/2006 (2:31 pm)
Wouldn't this 'simply' be a matter of passing a handle from Torque to the Windows UI manager? I'm attempting the same thing, but I'm still searching for the handler.Anthony, have you progressed at all in this matter?
Torque Owner Charlie Malbaurn