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

QFONTDIALOG Component

QFontDialog displays Window's font selection dialog

QFontDialog Properties
FieldTypeR/WDefault
ColorINTEGERRW
FontCountINTEGERR
FontNameARRAY of STRINGR
MaxFontSizeINTEGERRW
MinFontSizeINTEGERRW
NameSTRINGRW
SizeINTEGERRW

QFontDialog Methods
MethodTypeDescriptionParams
AddStylesSUBIAdd styles [bold, italic, etc]INTEGER, Infinite
DelStylesSUBIDelete styles [bold, italic, etc]INTEGER, Infinite
AddOptionsSUBIAdd options [fdLimitSize, fdNoSizeSel, etc.]INTEGER, Infinite
DelOptionsSUBIDelete options [fdNoStyleSel, fdScalableOnly, etc.]INTEGER, Infinite
ExecuteFUNCTIONReturns TRUE or FALSE0
GetFontSUB GetFont(F AS QFONT)Get font attributes1
SetFontSUB SetFont(F AS QFONT)Set font attributes1

QFontDialog Events
EventTypeOccurs when...Params
OnApplyVOIDUser clicks on apply button0


QFontDialog Examples
  '-- Simple demo
  DIM FontDialog AS QFontDialog
  DIM Font AS QFont
      Font.Name = "Arial"

  FontDialog.GetFont(Font)
  IF FontDialog.Execute THEN
    ShowMessage "You selected "+FontDialog.Name
    FontDialog.SetFont(Font)
  END IF

Prev Component Contents Next Component
Hosted by uCoz
D>
Hosted by uCoz