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

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
414
S
245
G
92
Posts: 25,198
Reputation: 200,327

Post » Mon Jan 19, 2009 12:04 am

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


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 0 guests