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.

Newcomers AppGameKit Corner / GetWindowWidth / height, GetWindowResized() ?

Author
Message
Blendman
10
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 25th Jan 2017 14:48
Hi

Is there a way to know if the user has chagnes the window size (if we use SetWindowAllowResize() ?

I would to change the position of the UI of my Tool if the user change the size of the window, and I do'nt know how to do that ^^.
Thanks.
AGK2 tier1 - http://www.dracaena-studio.com
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 25th Jan 2017 20:20
Store the width/height values to variable, then check periodically if current values are different
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 9th Mar 2017 02:57
Did you solve this one Blendo? I cannot set a way to GetWindowWidth or Height?

Login to post a reply

Server time is: 2024-04-19 05:59:52
Your offset time is: 2024-04-19 05:59:52