Window Object: Get Client Width/Height

New releases and general discussions.

Post » Sun Jan 18, 2009 11:56 pm

I think the window object should allow you to retrieve the "client" width/height of the window. Currently it will give you the size including the border and titlebar, instead of just the inside. Basically a feature like the "ClientX" expression which will get the X position of the window minus the border and titlebar.
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817

Post » Mon Jan 19, 2009 12:01 am

I think in the DirectX runtime, unless your window is stretched in stretch-resize mode, the DisplayWidth and DisplayHeight system expressions are the same as the client width and height.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Mon Jan 19, 2009 12:04 am

Awesome, thant's exactly what I needed. Thanks. :)
Moderator
B
98
S
37
G
19
Posts: 1,584
Reputation: 17,817


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests