首页 > comp > gb.qt4 > dialog > selectfont 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
Dialog.SelectFont (gb.qt4)
Static Function SelectFont ( ) As Boolean

Calls the font standard dialog.

Returns TRUE if the user clicked on the Cancel button, and FALSE if the user clicked on the OK button.

This example sets the Font of a TextArea to a font selected by the user. If the user cancels the dialog then the font is not updated.

Example

PUBLIC SUB ButtonFont_Click()
  Dialog.Font = TextAreaEdit.Font
  IF Dialog.SelectFont() THEN RETURN
  TextAreaEdit.Font = Dialog.Font
END