guides:programming:programmers_reference_manual:messagefont_property_system

MESSAGEFONT property (System)

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

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

DevelopmentRuntimeIndexedScaledSynthetic
N/AGetNoNoNo

The font returned is always scaled to 96 DPI.

 
// 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 )
 
 
 

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

  • guides/programming/programmers_reference_manual/messagefont_property_system.txt
  • Last modified: 2023/10/25 10:50
  • by 127.0.0.1