Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
163 user(s) are online (155 user(s) are browsing Forums)

Members: 1
Guests: 162

Skateman, more...

Support us!

Headlines

 
  Register To Post  

Size of win resize gadget? (SOLVED)
Home away from home
Home away from home


See User information
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.

(Note that this was posted in the Classic area, because I'd prefer a solution which also works on OS3.x)


Edited by ChrisH on 2011/5/24 9:32:45
Author of the PortablE programming language.
Go to top
Re: Size of win resize gadget?
Just can't stay away
Just can't stay away


See User information
@ChrisH

You are aware of WA_InnerWidth and WA_InnerHeight tags, right? It seems to me like they are the perfect solution to your problem (specify width and height of window content excluding window borders) and works on any AmigaOS >= 2.0.

Go to top
Re: Size of win resize gadget?
Home away from home
Home away from home


See User information
@salass00
No I was not aware of the "WA_InnerWidth and WA_InnerHeight" tags, but they sound like a perfect solution thanks!

Author of the PortablE programming language.
Go to top
Re: Size of win resize gadget?
Not too shy to talk
Not too shy to talk


See User information
Quote:

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



struct DrawInfo *drawinfo GetScreenDrawInfo (screen);
struct Image *sizeimg NewObject (NULL,"sysiclass",
    
SYSIA_DrawInfo,drawinfo,
    
SYSIA_Which,SIZEIMAGE,
    
TAG_END);

size_w sizeimg->Width;
size_h sizeimg->Height;

DisposeObject (sizeimg);
FreeScreenDrawInfo (screen,drawinfo);




Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project