Winforms (.NET) has a great feature.. an anchor property for controls.
When properly set it will reposition or size controls on a logic location.
I wrote something for my designer which almost works but i have trouble with the previous size for dialog client area.
The previous size is required to calculate the current (right-side) offset.
Minimizing the form and restoring it makes it currently messing things up.
I was able to prevent it a little but i find it unstable.
Any idea how to use this on WM_SIZE and still being able to reliably measure the right side offset for a control which should be anhor'd right+bottom ?
Here is an executable, it's almost good.
The button and tab control resizes well, even when you maximize the form, minimize it and restore it.
The tab control is set to resize to all sides, problem will arise when the form get's to small.
The buttons do well.
On form3 the groupbox is in fact very small.
Due unpredictable resizing it fails to maintain the size.
Thanks!
When properly set it will reposition or size controls on a logic location.
I wrote something for my designer which almost works but i have trouble with the previous size for dialog client area.
The previous size is required to calculate the current (right-side) offset.
Minimizing the form and restoring it makes it currently messing things up.
I was able to prevent it a little but i find it unstable.
Any idea how to use this on WM_SIZE and still being able to reliably measure the right side offset for a control which should be anhor'd right+bottom ?
Here is an executable, it's almost good.
The button and tab control resizes well, even when you maximize the form, minimize it and restore it.
The tab control is set to resize to all sides, problem will arise when the form get's to small.
The buttons do well.
On form3 the groupbox is in fact very small.
Due unpredictable resizing it fails to maintain the size.
Thanks!
Comment