1. wxFontMapper seems to work for wxMSW
2. font functions moved into a separate file, duplicated code in font.cpp and fontdlg.cpp removed 3. wxCustomDataObject docs finished git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -305,7 +305,7 @@ bool MyFrame::DoEnumerateFamilies(bool fixedWidthOnly,
|
||||
facenames[n] = fontEnumerator.GetFacenames().Item(n);
|
||||
|
||||
if ( silent )
|
||||
n = 1;
|
||||
n = 0;
|
||||
else
|
||||
n = wxGetSingleChoiceIndex("Choose a facename", "Font demo",
|
||||
nFacenames, facenames, this);
|
||||
@@ -542,10 +542,9 @@ BEGIN_EVENT_TABLE(MyCanvas, wxWindow)
|
||||
END_EVENT_TABLE()
|
||||
|
||||
MyCanvas::MyCanvas( wxWindow *parent )
|
||||
: wxWindow( parent, -1 )
|
||||
: wxWindow( parent, -1 ),
|
||||
m_colour(*wxRED), m_font(*wxNORMAL_FONT)
|
||||
{
|
||||
m_font = *wxNORMAL_FONT;
|
||||
m_colour = *wxRED;
|
||||
}
|
||||
|
||||
MyCanvas::~MyCanvas()
|
||||
|
Reference in New Issue
Block a user