Page 1 of 1

parent & child window size relationship

Posted: Wed Sep 07, 2005 15:45
by Sachin
Hi

i want to know that is it possible that the size of a child window is not dependent on the size of its parent window.

wat i want achieve is that wen a parent window(eg a frame window) is resized thru mouse, its child windows(eg a button) may not get resized but rather they maintain their size & may be clipped by the parent window.

thanx & regards

Re: parent & child window size relationship

Posted: Wed Sep 07, 2005 17:59
by CrazyEddie
Yes, use absolute co-ords, or unified co-ords which only have an absolute component. Its the relative co-ords that cause child windows to be sized in relation to thier parent.

See: Window::setMetricsMode for how to change between the modes. Or info on UDim metrics if you're using the new 0.4.0 release.