Rapid-Q Documentation by William Yu (c)1999 Appendix A: QFONT


QFONT Component

QFont is a component used to specify the font, color, and size for your text. It's not meant to be used as a stand-alone component, it has no effect until you assign a QFONT component to a component that uses it.

QFont Properties
FieldTypeR/WDefaultSupport





CharsetINTEGERRWDEFAULT_CHARSETW
ColorINTEGERRWW
FontCountINTEGERRW
FontNameARRAY of STRINGRW
HandleINTEGERRWW
NameSTRINGRWWX
PitchINTEGERRWfpDefaultW
SizeINTEGERRWWX

QFont Methods
MethodTypeDescriptionParamsSupport





AddStylesSUBIAdd styles [bold, italic, etc]INTEGER, InfiniteW
DelStylesSUBIDelete styles [bold, italic, etc]INTEGER, InfiniteW


QFont Undocumented commands
qfont.bold (variable)
qfont.italic (variable)
qfont.underline (variable)
qfont.strikeout (variable)



QFont Examples

  $INCLUDE "RAPIDQ.INC"

  DIM Font AS QFONT
  DIM Label AS QLABEL

  Font.Name = "Arial"
  Font.AddStyles(fsBold, fsItalic)
  Label.Font = Font      '' Assign font values

Prev Component Contents Next Component