#include <GFontSelect.h>
Inheritance diagram for GFontSelect:
Public Member Functions | |
GFontSelect (GView *Parent, void *Init=0) | |
Create the dialog. | |
int | OnNotify (GView *Ctrl, int Flags) |
Called when a child view or view with it's SetNotify() set to this window changes. | |
bool | Serialize (void *Data, bool Write) |
Public Attributes | |
char * | Face |
The face of the font selected. | |
int | Size |
The point size of the font selected. | |
bool | Bold |
True if the font should be bold. | |
bool | Underline |
True if the font should be underline. | |
bool | Italic |
True if the font should be italic. |
Example:
#if defined WIN32 LOGFONT Info; #else char Info[256]; #endif ZeroObj(Info); GFontSelect Dlg(MyWindow, Info); if (Dlg.DoModal() == IDOK) { Dlg.Serialize(Info, true); }
|
Create the dialog.
|
|
Called when a child view or view with it's SetNotify() set to this window changes. The event by default will bubble up to the GWindow at the top of the window heirarchy visiting each GView on the way. If it reaches a GView that processes it then the event stops propergating up the heirarchy. Reimplemented from GView. |
|
Read/Write the font information to a OS specific structure Currently on Windows that is a LOGFONT structure and on all other platforms it's a char buffer of at least 256 chars. |