Okay here's my problem, look at the first picture:
A normal window proportioned nicely.
(http://dl.dropbox.com/u/20787370/Pics/normal.png)
Now, I form set to allow the user to resize it, but the result is not what I want. The bottom group box is the only one that appears to stretch. The others actually do, they are just cutoff. Here's what I mean:
(http://dl.dropbox.com/u/20787370/Pics/stretched.png)
My question is does anyone know a way to have it behave properly without manually having to code it by calculating height and coordinates, etc.?
Is there a setting I am missing?
Turn the Top anchor off for the middle and bottom group boxes.
EDIT:
In return for helping you (whether it fixed it or not) you shall vote if you haven't already.
http://forum.chaos-project.com/index.php/topic,9454.msg142807.html#new
Need a few more votes before I actually decide and get started.
EDIT 2:
Eh, I realized that wouldn't stretch the boxes my bad....lemme think about it for a minute.
EDIT 3:
Where did you get that awesome skin? Is it your OS theme by chance or...?
EDIT 4:
This is probably going to be the easiest as far as I know.
Add an event handler for "Resized" for the Form or Tab control. Guess it doesn't matter.
Basically do this.
gb2.y = gb1.y + gb1.height + 4
gb3.y = gb2.y + gb2.height + 4
Probably the easiest.
Something along those lines anyways. And with this, you'll want the Top anchor on now.
That doesn't help, it merely makes it so that the top box is the big one. I messed around with about every conceivable combination of anchor settings before I posted the topic. I could make it work with two group boxes, but with three it screws everything up.
I think I'm gonna have to create an event handler for when the form is being resized, and calculate maximum height on the fly. There are a few settings I haven't played with yet, though I'm not sure if they are even related.
Google, here I come...
EDIT:
lol, you posted your edits while I was typing and experimenting.
BTW, I voted.
BTW, its a WindowBlinds theme "Precision", with a color edit. And if it makes you feel better, I just ruined my crack while checking the name of the theme. Now everything is back to normal. :(
Read my edits >:U
EDIT: Make sure the tab control gets resized if needed.
Disable resizing.
I want the form to be able to be resized, that's why I set it that way. I just want the three group boxes to resize evenly, without the graphical error.
Did my suggestion not work then?
Quote from: ForeverZer0 on April 26, 2011, 11:04:56 pm
My question is does anyone know a way to have it behave properly without manually having to code it by calculating height and coordinates, etc.?
Is there a setting I am missing?
I had already thought of that, just wasn't sure if I was missing a setting somewhere. I'm not even sure if its worth the trouble. Its a little more in-depth than simply adjusting the height and coordinates. The height does increase on all the group boxes, it just gets cut-off by the ones beneath it. The coordinates remain static because it is anchored, but if its not then the windows don't automatically resize.
I have one idea left I haven't tried:
1. Anchor all three group boxes to the top-left-right only, no bottom.
2. Set each to "Auto-Size", which makes them resize to fit there controls.
3. Use a manual event handler "on_resize" to increase the size of the list boxes by one pixel for every three that the form increases vertically.
This should make the group boxes resize I hope, and is probably the least complicated approach on resizeing them manually.