Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, TedMar, dr_panther), 1,049 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
new window outside engine window #319480
04/15/10 09:08
04/15/10 09:08
Joined: Jul 2009
Posts: 15
Netherland
M
malhal Offline OP
Newbie
malhal  Offline OP
Newbie
M

Joined: Jul 2009
Posts: 15
Netherland
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!

Re: new window outside engine window [Re: malhal] #319484
04/15/10 09:30
04/15/10 09:30
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
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

Re: new window outside engine window [Re: malhal] #319485
04/15/10 09:30
04/15/10 09:30

C
chris_oat
Unregistered
chris_oat
Unregistered
C



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.

Re: new window outside engine window [Re: malhal] #319491
04/15/10 10:06
04/15/10 10:06
Joined: Jul 2009
Posts: 15
Netherland
M
malhal Offline OP
Newbie
malhal  Offline OP
Newbie
M

Joined: Jul 2009
Posts: 15
Netherland
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

Re: new window outside engine window [Re: malhal] #319528
04/15/10 14:57
04/15/10 14:57
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
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.

Re: new window outside engine window [Re: DJBMASTER] #319661
04/16/10 14:36
04/16/10 14:36
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
You could use exec to start another lite-c application.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1