:: My another contributions in Delphi

»Delphi3000.com
posting and uploading delphi articles
[currently as Top 66 uploader]


»Komunitas Delphi Indonesia
starting as a member

Sunday, January 21, 2007

Zoom-In and Zoom-Out Text in a TRichEdit
[Undocumented Feature of TRichEdit]

Question/Problem/Abstract:

» How to do Zoom-In and Zoom-Out Text like in MS-Word

Answer:

To do zoom(in/out) of a Text
we can use TRichEdit.
TRichEdit in Default, has the ability to Zoom-In or Zoom-Out all the text within (but only in Run-Time)

So, the steps :
1. Put TRichEdit on the Form
2. Type your text in it (in TRichEdit)
3. Compile your application
4. To do Zoom-In / Zoom-Out,
just Click the left button mouse
combine with mouse-scroll-up or mouse-scroll-down
5. Look at the result/effect to the text in the TRichEdit


ps: I use Delphi 7. But i think, it'll work too with previous version

----------------
Have a good time.

copy of this article is located @ http://www.delphi3000.com/articles/article_4648.asp