Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::CommonFontDialog Class Reference

This class is used to display a common font dialog. More...

#include <vcf/ApplicationKit/CommonFontDialog.h>

Inheritance diagram for VCF::CommonFontDialog:

VCF::CommonDialog VCF::Component VCF::ObjectWithCallbacks VCF::Object List of all members.

Public Member Functions

 CommonFontDialog (Control *owner)
 Creates a font dialog.
virtual ~CommonFontDialog ()
virtual bool execute ()
 Displays the dialog.
FontgetSelectedFont ()
 Returns the font the user selected, or NULL.
void setSelectedFont (Font *selectedFont)
 Sets the initial font characteristics to show when the dialog is displayed.

Detailed Description

This class is used to display a common font dialog.


Constructor & Destructor Documentation

VCF::CommonFontDialog::CommonFontDialog Control owner  ) 
 

Creates a font dialog.

If the owner is NULL then the dialog is non modal. If the owner is not NULL then the dialog is modal relative to the control that started it. For most cases you do not want to pass in a NULL owner.

virtual VCF::CommonFontDialog::~CommonFontDialog  )  [virtual]
 


Member Function Documentation

virtual bool VCF::CommonFontDialog::execute  )  [virtual]
 

Displays the dialog.

If the user selects a font, then it returns true, otherwise false.

Implements VCF::CommonDialog.

Font* VCF::CommonFontDialog::getSelectedFont  ) 
 

Returns the font the user selected, or NULL.

void VCF::CommonFontDialog::setSelectedFont Font selectedFont  ) 
 

Sets the initial font characteristics to show when the dialog is displayed.

This is generally called before the execute() function is called.


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information