Guidance
指路人
g.yi.org
software / RapidQ / RQ Doc / html / qfontdialog.html

Register 
新用户注册
Search 搜索
首页 
Home Home
Software
Upload

  
Appendix A: QFONTDIALOG
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
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sun 2017-9-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2015-12-25 19:42:36