Specifies whether the characters in the font all have the same width.
type TFontPitch = (fpDefault, fpVariable, fpFixed); property Pitch: TFontPitch;
Description
Each typeface has an associated pitch. The characters in fixed-pitch fonts are all the same width. The characters in variable-pitch fonts differ in width. Fixed pitch fonts are generally used for representing source code, because they allow the indentation to line up properly. Variable pitch fonts are generally used to give text a more natural appearance.
Here are the possible values for Pitch:
Value Meaning
fpDefault The font pitch is set to the default value, which depends on the font specified in the Name property. fpFixed The font pitch is set to fixed. All characters in the font have the same width. fpVariable The font pitch is set to variable. The characters in the font have different widths.
Note: Setting the Pitch of a fixed-pitch font to fpVariable or a variable-pitch font to fpFixed will cause Windows to find what it considers the best match to all of the font characteristics that have been specified. This might have no effect on the appearance of a font, or might cause Windows to substitute a different font with the appropriate pitch. For example, setting the pitch of MS Serif (a variable-pitch font) to fpFixed causes Courier to be displayed.
Har prøvet, gi'r fejl. Har lagt de to linier oppe i type erklæringen. Jeg ved ikke meget om typer og properties. Hvor skal de to linier ligge??? Og skal der flere parameter på ??
Programmet kan slet ikke compileres med type og properties erklæringen. Har løst problemet ved at sætte Fonttypen i RichEdit'en til Courier New, opdagede lige at man kunne det. Men tak for hjælpen
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.