Navigation:  Reference > Form Objects > Common Properties >


Print this Topic Previous pageReturn to chapter overviewNext page


This property controls what the text will look like.  Where it appears depends on the object itself.  This always defaults to the Font property on the parent (where the object is placed) form.  If you want to change the font for all objects then change the value on the form itself before placing any objects.


Each Font property has 6 subproperties.  These are:


Charset - Defaults to ANSI_CHARSET.  This is the standard for all Western language countries.  There are different Charset values for non-Western alphabets.


Color - What color the font will use when displayed.  The possible colors are defined in COMPILERCONSTANTS.TXT.


Height - The height of the font in pixels.


Name - The name of the font.


Pitch - This can be fpDefault (the normal for the font chosen), fpFixed (each character has the same width), fpVariable (each character has a different width depending on the character).  The options for this property are defined in COMPILERCONTSTANTS.TXT.


       Size - The point size for the Font.  This is generally used when you specify the size or how big the font will be.


There is a Property Editor attached to this property that will allow you to choose a font from a list and set it's subproperties.  TFont can also be changed during runtime.  If you want to change it in your program you would refer to the property value as:  'Font.Size' or 'Font.Color', etc.


Page url: