Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Windows / Graphics surface iin Windows

Author
Message
JimHawkins
14
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 15th Feb 2012 11:00
Is it possible to use AppGameKit in windowed mode? I would like to place the game area in a form with other controls around it - this to produce language-teaching modules. Obviously, I could use DBP or other tools to do this - but I'd like the actual dynamic (game) bit to be cross-platform.

It would be relatively easy if the player could accept some parameters, such as /W+HWND and also /A(path to assets folder

-- Jim
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 15th Feb 2012 19:33
you need a setup.agc file in your app project folder along the main.agc.

setup.agc :



for windows, to integrate this window into another program you can play with HWND's window's position and Send commands (by API) to the HWND or keystrokes to control it.

You can easily detect and retrieve a window Handle by its title (possible with all the main languages)

For Mac it's also possible but i have never tried to deal with it.


Good luck

Login to post a reply

Server time is: 2024-04-19 16:48:05
Your offset time is: 2024-04-19 16:48:05