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
104
S
39
G
19
Posts: 1,584
Reputation: 18,167

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
363
S
216
G
75
Posts: 23,124
Reputation: 180,557

Post » Mon Jan 19, 2009 12:04 am

Awesome, thant's exactly what I needed. Thanks. :)
Moderator
B
104
S
39
G
19
Posts: 1,584
Reputation: 18,167


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 1 guest