ShellBrowser Delphi Components Documentation
|
Returns the width in pixels for the given text.
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.