Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 4 of 4 total |
Measuring text height |
Thu, Sep 17 2015 8:45 AM | Permanent Link |
Matthew Jones | Anyone know how to measure text height in EWB2?
TCanvasElement.MeasureText(const Text: String) sounds promising, but unfortunately only returns the width. This is because the browser doesn't offer anything more. In EWB1, I just had a hidden TLabel and it auto-sized and I read the height. Seems daft though - is there a better way? -- Matthew Jones |
Thu, Sep 17 2015 8:48 AM | Permanent Link |
Raul Team Elevate | On 9/17/2015 8:45 AM, Matthew Jones wrote:
> Anyone know how to measure text height in EWB2? > Tim had posted that there are ContentHeight and ContentWidth function in the global InterfaceManager instance. Have not used them myself though. Raul |
Thu, Sep 17 2015 9:12 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Matthew,
<< Anyone know how to measure text height in EWB2? >> As Raul indicates, what you want is this method: InterfaceManager.ContentHeight http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TInterfaceManager&method=ContentHeight Tim Young Elevate Software www.elevatesoft.com |
Thu, Sep 17 2015 10:42 AM | Permanent Link |
Matthew Jones | Tim Young [Elevate Software] wrote:
> As Raul indicates, what you want is this method: > > InterfaceManager.ContentHeight > Thanks both - I knew I'd seen something but couldn't remember the right words. -- Matthew Jones |
This web page was last updated on Thursday, March 28, 2024 at 06:05 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |