Quick recap on Re-sizing and controls

Started by Petrus Vorster, November 29, 2014, 03:47:22 PM

Previous topic - Next topic

Petrus Vorster

I know we had examples of this here somewhere...
I need a control to stick to the RIGHT-Hand side of the form, regardless of how its being re-sized.
It must just keep say 10 pixels from the right-side.
I usually made fixed size forms, now i need one that can be sized and the control are all over the place.  ;D

Just a quick recap someone please....
-Regards
Peter

Klaas Holland

You can fix it like you will in the Control Properties --> ResizeRules

David Kenny

#2
Klaas posted before I was done... My response was based on you having already known what he is saying.  I now realize that was an assumption I shouldn't have made (although it was based on your statement that the control were "all over the place" implying that at least some of them had resizing rules in place).  Here is my response just in case:

I need a control to stick to the RIGHT-Hand side of the form
In the resizing rules for that control, set the Right Side drop-down  to Fixed Right (Fixed Right means the distance to the right side will not change).

Now, if the control should get bigger when the form gets bigger, then you need to set the Left Side drop-down to Fixed Left.  And if the control should stay the same size, then the Left Side should be Fixed Right (same setting as the right side of the control from above).

I am assuming that the problem you are having is because of the multiple meanings for the word "Fixed" in English.  Normally it is the opposite of "Broken", but in this case means "Attached to"

Theo Gottwald

It does not wpork with "Custom Controls".
And Paul does not answer ...

David Kenny

Theo,

Didn't the workaround I mentioned in the thread you last posted in work for you?

Petrus Vorster

Thanks guys.

haven't been around for a while on the forum. I will go back and test all options you gave me.

Thanks a million.
-Regards
Peter

Petrus Vorster

Thanks everyone.
Yes, Fixed right on the right dropdown, and again fixed right on the left dropdown and it sticks to the right-hand border of that for like glue. :D

I should program more, i am losing focus.. :)
-Regards
Peter