Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
ClientHeight |
Tue, Oct 13 2015 8:38 AM | Permanent Link |
Matthew Jones | I can't find where I think I raised this before (XanaNews not good on
searching!) but I hit it again so I think it worth raising separately. Basically, I fill up a form with content, and want to have its height set according to that content. Measuring the content is easy, but setting the Height of the form is hard, as I have no idea how big the "chrome" is. In EWB 1 there was a ClientHieght property that could be set, and that solved the problem. Is there a way in EWB 2 of doing the same, so that the code is independent of the UI element appearance etc? -- Matthew Jones |
Tue, Oct 13 2015 11:50 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Matthew,
<< Basically, I fill up a form with content, and want to have its height set according to that content. Measuring the content is easy, but setting the Height of the form is hard, as I have no idea how big the "chrome" is. In EWB 1 there was a ClientHieght property that could be set, and that solved the problem. Is there a way in EWB 2 of doing the same, so that the code is independent of the UI element appearance etc? >> No, you have to manually subtract out the borders and padding. Luckily, there's an easy way to do this: Control.Height:=(Control.Height-Control.ClientHeight)+NewClientHeight; Tim Young Elevate Software www.elevatesoft.com |
Tue, Oct 13 2015 12:01 PM | Permanent Link |
Matthew Jones | Tim Young [Elevate Software] wrote:
> ClientHeight Indeed - I found that this was available as a readable value, and that allows one to work out the necessary. Thank you. (Also for the update, yay!) -- Matthew Jones |
This web page was last updated on Monday, January 20, 2025 at 05:58 AM | Privacy PolicySite Map © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |