Board index » delphi » Text width in a Edit or Memo control...

Text width in a Edit or Memo control...

Is there any way to determine if a text (What ever text.. like 'Hello
world') will fit in a Memo or Edit control.

thanks Hokki

 

Re:Text width in a Edit or Memo control...


Quote
>"H?kan Fagerstr?m" wrote:

> Is there any way to determine if a text (What ever text.. like 'Hello
> world') will fit in a Memo or Edit control.

See TCanvas.TextWidth in the help.
________
Andreas
Delphi 5.01 Pro, NT4.0 Sp5
Direct replies mailto:p...@augsburg.netsurf.de

Re:Text width in a Edit or Memo control...


Great I got it...
Thanks!!

Quote
"Andreas Pawlik" <no~j...@augsburg.netsurf.de> wrote in message

news:3964FAA2.9D0446D2@augsburg.netsurf.de...
Quote
> >"H?kan Fagerstr?m" wrote:

> > Is there any way to determine if a text (What ever text.. like 'Hello
> > world') will fit in a Memo or Edit control.

> See TCanvas.TextWidth in the help.
> ________
> Andreas
> Delphi 5.01 Pro, NT4.0 Sp5
> Direct replies mailto:p...@augsburg.netsurf.de

Other Threads