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

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
395
S
231
G
88
Posts: 24,367
Reputation: 193,684

Post » Mon Jan 19, 2009 12:04 am

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


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest