> In MS Word 97 when you highlight some text, right-click, select Font...,
> and select the Character spacing tab, you can set the character spacing
> expanded or condensed in 0.1 increments which increases or decreases the
> distance between the characters displayed.  I would like to add this
> functionality at this stage to a TQRDBText and hopefully if I can modify
> TFont, I can use it elsewhere.  Any suggestions as to how I go about
> this?  Is it just a modification of the PixelsPerInch property?

The API call to use is SetTextCharacterExtra(Handle, integer) where the if you
set the integer to a negative the characters are spaced closer together and
setting the integer to positive moves the characters further apart.  On a
cooler note, you can do funky font 'dancing' by playing with the spacing.  I
will eventually get this into my text control... :-)

Tony Sinclair
Holliday Group Limited
Christchurch
New Zealand

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to