Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder 2 Preview » View Thread |
Messages 1 to 2 of 2 total |
TextManager replacement? |
Thu, May 21 2015 12:05 PM | Permanent Link |
Doug B | In EWB 1 I was using the TextManager to get the text width/height.
Is there a similar class in EWB 2? Thanks, Doug |
Thu, May 21 2015 12:35 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Doug,
<< In EWB 1 I was using the TextManager to get the text width/height. Is there a similar class in EWB 2? >> Yes, you want these methods from the global InterfaceManager instance: function ContentWidth(AFont: TFont; const AContent: String; AAlignment: TContentAlignment=caLeft; AWrap: Boolean=False; AWrapWidth: Integer=0): Integer; function ContentHeight(AFont: TFont; const AContent: String; AAlignment: TContentAlignment=caLeft; AWrap: Boolean=False; AWrapWidth: Integer=0): Integer; Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Saturday, May 4, 2024 at 12:54 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |