Manual - FileSystem Up
 Contents   News   View 

FontDialog Previous Next

FontDialog

Microsoft's FontDialog (aka System.Windows.Forms.FontDialog) can be used to solicit a System.Drawing.Font from the user. In the example below, a (FontDialogDemo) function is used to create such a FontDialog, and it returns the chosen System.Drawing.Font (if any).

Example:

         

Currently, Microsoft's .NET doesn't contain a WPF version of FontDialog. Quantum prefers newer WPF over older Forms. It would be neater for Quantum if Microsoft's .NET had a WPF FontDialog that returned a WPF Typeface (aka System.Windows.Media.Typeface) instead of the subtly different Forms System.Drawing.Font.

Quantum's automatic conversion between System.Drawing.Font's and Typeface's (aka System.Windows.Media.Typeface's) mitigates this annoying difference in many circumstances -- Such as passing the wrong type of font to a function, field setter, or property setter with an explicitly marked signature preference for the different type of font.

Reference Manual: User Interface



©2004-2024 Planet Quantum Kelly Roach