Table of Contents

MESSAGEFONT property (System)

Description

Returns the font used by Windows for displaying text in message boxes.

Property Value

This property is an @svm-delimited array containing the following font information.

<0,0,1> Facename

<0,0,2> Height

<0,0,3> Weight

<0,0,4> Italic

<0,0,5> Underline

<0,0,6> Width

<0,0,7> Charset

<0,0,8> PitchAndFamily

<0,0,9> Strikeout

<0,0,10> OutPrecision

<0,0,11> ClipPrecision

<0,0,12> Quality

Property Traits

DevelopmentRuntimeIndexedScaledSynthetic
N/AGetNoNoNo

Remarks

The font returned is always scaled to 96 DPI.

Example

 
// Example - Get the Windows Message font, scale to the correct DPI, and set

   //           it for a static control called TXT_INFO

   

   MessageFont = Get_Property( "SYSTEM", "MESSAGEFONT" )

   ScaledFont  = Exec_Method( @Window : ".TXT_INFO", "SCALEFONT", MessageFont )

   Call Set_Property_Only( @Window : ".TXT_INFO", "FONT", ScaledFont )
 
 
 

See Also

Common GUI Font property, Common GUI SCALEFONT method, SYSTEM STATUSFONT property.