PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Petrus Vorster on November 29, 2014, 03:47:22 PM

Title: Quick recap on Re-sizing and controls
Post by: Petrus Vorster on November 29, 2014, 03:47:22 PM
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....
Title: Re: Quick recap on Re-sizing and controls
Post by: Klaas Holland on November 29, 2014, 04:43:53 PM
You can fix it like you will in the Control Properties --> ResizeRules
Title: Re: Quick recap on Re-sizing and controls
Post by: David Kenny on November 29, 2014, 06:19:10 PM
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"
Title: Re: Quick recap on Re-sizing and controls
Post by: Theo Gottwald on November 29, 2014, 06:25:51 PM
It does not wpork with "Custom Controls".
And Paul does not answer ...
Title: Re: Quick recap on Re-sizing and controls
Post by: David Kenny on November 30, 2014, 04:48:28 AM
Theo,

Didn't the workaround I mentioned in the thread you last posted in work for you?
Title: Re: Quick recap on Re-sizing and controls
Post by: Petrus Vorster on December 02, 2014, 12:54:04 PM
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.
Title: Re: Quick recap on Re-sizing and controls
Post by: Petrus Vorster on December 02, 2014, 01:00:30 PM
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.. :)