|
-
Nov 20th, 2011, 10:54 PM
#5
Thread Starter
Member
Re: Child Control Anchoring and Padding Problem
 Originally Posted by jmcilhinney
...Can you provide a set of steps we can follow to demonstrate this alleged bug?
The following steps are done within the Designer.
- Start with a blank Form or an empty Panel. (I think any container control might yield the same results.)
- Add a Label and a Button to the Control from (1).
- Leave all of the properties for the Controls set to their default values.
- Change either the Top or Left Padding value (or both) for the Control from (1) to 50 (or some other value that would be easy to notice Control repositioning). You should notice that the Label is offset, while the Button is not.
- Set all of the Padding values for the Control from (1) back to 0. The Label should return to its original position.
- Change the Anchoring property of the Button to anything other than Top + Left.
- Change the respective Padding value (Top, Left, etc.) for the Control from (1). Now, both the Button and the Label should be offset.
- Set all of the Padding values for the Control from (1) back to 0. Both the Button and the Label should be in their original positions.
- Change the Anchoring property of the Button back to Top + Left.
- Set the Button's Autosize property to True.
- Change any of the Padding values for the Control from (1). Both the Button and the Label should be in their original positions.
I should point out that the Anchoring values set will affect how the button is offset by the padding. The same rules that govern how the control is repositioned when it's Parent Container is resized are the same with Padding.
 Originally Posted by boops boops
We don't know what kind of controls he was using.
I've found that this feature is found in any Controls that have both an Anchoring Property and an Autosize Property.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|