I'm trying to make a resizable window which has some fixed size child windows and resizing windows.
And it has to satifiy screen resolution change.
Please see below.
![Image](http://tempsend.com/5B25DE2587/1C7D/ResizableWindow.jpg)
http://tempsend.com/5B25DE2587/1C7D/ResizableWindow.jpg
The black window is a parent window, and it is resizable with dragging the frame.
The red window is a fixed size window.
The blue window has to be resized with respect to the black window size horizontally, i mean, width only.
The green window has to be resized with respect to the black window size vertically, height only.
Every window has to be scaled proportionally when a screen resolution is changed.
I tried some ways:
1. red window has 'scale' size (0.1, 0.1)
blue window has scale pos (0.1, 0.0) and scale size (1.0, 0.1)
green window has scale pos (0.0, 0.1) and scale size (0.1, 1.0)
result: the red window size, the blue window height, the green window width have to be fixed, so it goes wrong when the black size is changed.
2. red window has 'offset' size (32, 32)
blue window has offset pos (32, 0) and scale width 1.0, offset height 32
green window has offset pos (0, 32) and offset width 32, scale height 1.0
result: everything looks ok, but it doesn't work when a screen resolution is changed.
3. All is the same as '2'.
But I recalculate 'offset' things by ratio current resolution / previous resolution when a screen resolution is changed.
result: It works! But it's not that easy to code.
What I want to know is...
is there any feature like '3'? I mean, not a truely absolute pixel offset, which is changed when a screen resolution is changed or similar features.
Please let me know and understand lack of my english.