Piet Henning wrote:
> Dear all,  Forgive me if this a bit off-topic.
> I'm writing watermarks to photos and in some cases get an ugly white edge 
> around the text.  This is not consistant with any Windows
> version.  At last I fount out it has to do with the  "Smooth edges on screen 
> fonts" setting.  If ON, the edges are there.
> To switch it on or off I do the following:
> For Windows 2000:
>  In the control panel, go to "Display" > "effects" > untick "Smooth edges on 
> screen fonts".
> For Windows XP Pro:
> - control panel >  system > advanced tab > settings button > select Custom 
> and untick.
> 
> My questions:
> Can I determine programatically from Delphi 6 if the the property is selected 
> or not for all windows version of say the last 3 years
> to date?
> Can I change the property from whithin my program and after the watermark 
> text set it back like it was?
> Thanks
> Piet

There is no way to determine what user properties were set from a given 
date to another date.  You can get/set the _current_ state of "font 
smoothing" using the SystemParametersInfo() API function with the 
SPI_GETFONTSMOOTHING/SPI_SETFONTSMOOTHING option.

Also, be sure to check out the additional settings for XP:

SPI_GETFONTSMOOTHINGCONTRAST
SPI_GETFONTSMOOTHINGTYPE

SPI_SETFONTSMOOTHINGCONTRAST
SPI_SETFONTSMOOTHINGTYPE

--
Thomas Hruska



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to