Hi,
I'm building a window with dynamic added gadgets inside.
All works but I wonder how to know the Width and Height of a window BEFORE to open it.
I want to use these informations to position my window on the screen before to open it without to use WINDOW_Position.
Is it possible ?
the following function returns "0 x 0" before WM_OPEN and "476 x 68" after that the window is opened
Thank you by advance.
uint32 Width = 0 ; uint32 Height = 0 ; GetAttrs(win,WA_Width,&Width,WA_Height, &Height,TAG_DONE); printf("%ld x %ld \n",Width,Height); window = (struct Window *)IDoMethod(win, WM_OPEN); GetAttrs(win,WA_Width,&Width,WA_Height, &Height,TAG_DONE); printf("%ld x %ld \n",Width,Height);