WidgetChooseFont Class Template Reference
[Widgets]

ChooseFontDialog class. More...

List of all members.

Public Types

typedef WidgetChooseFont<
Parent > 
ObjectType
 Object type.
typedef WidgetChooseFont<
Parent > 
ThisType
 Class type.

Public Member Functions

FontPtr showDialog ()
 Shows the dialog.
 WidgetChooseFont (Parent *parent=0)
 Constructor Taking pointer to parent.


Detailed Description

template<class Parent>
class SmartWin::WidgetChooseFont< Parent >

ChooseFontDialog class.

choosefont.PNG
Class for showing a common ChooseFontDialog box.
Either derive from it or call WidgetFactory::createChooseFont.
Note!
If you wish to use this class with Parent classes other than those from SmartWin you need to expose a public function called "parent" taking no arguments returning an HWND on the template parameter class.
the complete signature of the function will then be "HWND parent()"


Member Typedef Documentation

typedef WidgetChooseFont< Parent > ObjectType

Object type.

Note, not a pointer!!!!


Member Function Documentation

FontPtr showDialog (  ) 

Shows the dialog.

Returns a valid FontPtr if user presses Ok or an empty FontPtr if user press cancel.

Back to SmartWin website
SourceForge.net Logo