]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/mac/classic/fontdlg.cpp
don't let the user modify the contents of read-only control (modified patch 1463707)
[wxWidgets.git] / src / mac / classic / fontdlg.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: fontdlg.cpp
3// Purpose: wxFontDialog class. NOTE: you can use the generic class
4// if you wish, instead of implementing this.
5// Author: Stefan Csomor
6// Modified by:
7// Created: 1998-01-01
8// RCS-ID: $Id$
9// Copyright: (c) Stefan Csomor
10// Licence: wxWindows licence
11/////////////////////////////////////////////////////////////////////////////
12
13#include "wx/mac/fontdlg.h"
14#include "wx/cmndata.h"
15
16IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
17
18/*
19 * wxFontDialog
20 */
21
22wxFontDialog::wxFontDialog()
23{
24 m_dialogParent = NULL;
25}
26
27wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data)
28{
29 Create(parent, data);
30}
31
32bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
33{
34 m_dialogParent = parent;
35
36 m_fontData = data;
37
38 // TODO: you may need to do dialog creation here, unless it's
39 // done in ShowModal.
40 return TRUE;
41}
42
43int wxFontDialog::ShowModal()
44{
45 // TODO: show (maybe create) the dialog
46 return wxID_CANCEL;
47}
48