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
111
S
41
G
20
Posts: 1,586
Reputation: 19,046

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
378
S
220
G
84
Posts: 23,863
Reputation: 188,019

Post » Mon Jan 19, 2009 12:04 am

Awesome, thant's exactly what I needed. Thanks. :)
Moderator
B
111
S
41
G
20
Posts: 1,586
Reputation: 19,046


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest