new window outside engine window

Posted By: malhal

new window outside engine window - 04/15/10 09:08

Hello,

How in Lite C can I create a new window OUTSIDE my engine window while keeping the engine window in the background.

I already tried video_window but that only manipulates the engine window, pan_setwindow doesn't work either since the can only create a window on a panel within the existing engine window.

(using Lite C 7.21.0)

A little hint would be great!
Posted By: DJBMASTER

Re: new window outside engine window - 04/15/10 09:30

Hi, you can achieve this by using a function called 'CreateWindowEx'. This function is part of the WinAPI which is a common set of functions for the windows operating system.

It's not something many beginners can just jump into, but anyway here is a sample that another user recently posted...

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=317626&page=2
Posted By: Anonymous

Re: new window outside engine window - 04/15/10 09:30

im not use what you mean with OUTSIDE (if the engine Window is not fullscreen?)

but maybe VIEW can help?
Look at the AUM 27 with the minimap.
hope i understand correctly.
Posted By: malhal

Re: new window outside engine window - 04/15/10 10:06

By "outside" I mean a window outside the borders of the engine window if the engine window is not fullscreen.

But using API with CreateWindowEx looks pretty complicated for what seems to me a small problem. Thanks anyway
Posted By: DJBMASTER

Re: new window outside engine window - 04/15/10 14:57

Well creating a Window is actually not as straight forward as people imagine. You not only have to show the window, you have to write an object that describes the window (title, size, icon, etc), register it with the operating system and then show it.

Then that is just showing it, if you want to interact with it, you have to write a message pump to handle messages sent to the window (move, resize, close).

You'll have to use 'CreateWindowEx' i'm afraid If you really need an additional window.

BTW, what do you need an additional window for? You won't be able to use any engine objects like panels, etc in the additional window.
Posted By: Superku

Re: new window outside engine window - 04/16/10 14:36

You could use exec to start another lite-c application.
© 2024 lite-C Forums