ID:157911
 
Does something like this exist? I know that a var entitled "size" exists, but it doesn't change when I maximize a window. This makes me doubt whether or not this is the var that I am looking for.

Edit: I also tried wingetting the size of the map control (which changes along with the window), and its size parameter didn't change either.
[link] might shed some light on your issue.
In response to Schnitzelnagler
I've already tried using the label route. It did not work either.
In response to Ninjafro
Since you didn't even mention what you intend to do, I could only reply to the information you provided, which is that 'size' doesn't change upon setting 'is-maximized' to true.

Maybe if you elaborate on what you intend to do, somebody can provide a more helpful reply.
In response to Schnitzelnagler
All I am trying to do is get the size of a maximized screen (since it will be different from player to player) so that I can use that size later on for various purposes.
In response to Ninjafro
Like in [link]?
In response to Schnitzelnagler
Yes, I saw that thread and did try to use interface elements like labels, and it didn't work. I've heard that there is a way to do it with Java, but I don't know how to use Java, lol.
In response to Ninjafro
Ninjafro wrote:
did try to use interface elements like labels, and it didn't work

What exactly did you try? I'm sorry, but as it works the way that was described in the thread, you'll have to be a bit more specific if you want others to catch your mistake.


Ninjafro wrote:
Java

JavaScript, not Java. That's two completely different things.
In response to Schnitzelnagler
Lol, sorry. I'm a bit of a noob with some stuff. XD

Anyway, I made a label that goes in the window (default) that is being maximized. I set it to fill the window and set top-left and bottom right anchors so that it expands with the screen.
mob
player
Login()
..()
src.sizetest()
mob/proc
sizetest()
winset(src,"default","is-maximized=true")
var/c=winget(src,"default.reslab","size")
src << output("[c]","chat.chatoutput")
In response to Ninjafro
And what do you get as output?
In response to Schnitzelnagler
I get the original window size.
In response to Ninjafro
You need to set the size to some absurdly large value (like 999999x999999). It will max out at however much space is available (so, the resolution minus the title bar and task bar and frame) at which point you can get that size with winget().