ShellBrowser Delphi Components Documentation
ContentsIndexHome
PreviousUpNext
ShellBrowser.TShellControlHelper.GetTextWidth

Returns the width in pixels for the given text.

Syntax
Pascal
class function GetTextWidth(const pText: String; pControl: TWinControl): integer;
Parameters 
Description 
const pText: String 
The text whose width should be calculated. 
pControl: TWinControl 
The control in which the text should be displayed. 

integer: The size of the text in pixels if displayed in the control; 0 if the operation failed.