Size of win resize gadget?

3 posts / 0 new
Last post
ChrisH
ChrisH's picture
Offline
Last seen: 4 years 3 months ago
Joined: 2010-12-07 20:22
Size of win resize gadget?

Does anyone know how to find the size of the window's WFLG_SIZEGADGET resize gadget *BEFORE* opening the window?

What I want to do is create a resizable window with a specific "inner" size (excluding the border). Resizing the window after creation is NOT desirable, because it may take up to 1/10 of a second (6 frames!) to take effect.

xenic
xenic's picture
Offline
Last seen: 2 years 6 months ago
Joined: 2011-05-07 04:52
@ChrisH Maybe the Intuition

@ChrisH
Maybe the Intuition function GetGUIAttrs() using the GUIA_SizeGadgetWidth and GUIA_SizeGadgetHeight tags would work. I've never tried it and don't know if the GUI attributes apply to all types of screens but it might be worth a try.

X1000 - OS 4.1FE

Rigo
Rigo's picture
Offline
Last seen: 2 years 5 months ago
Joined: 2011-01-24 21:55
Try using WA_InnerWidth and

Try using WA_InnerWidth and WA_InnerHeight, that's what they are for.

Simon

Log in or register to post comments