#endif
#ifndef WX_PRECOMP
- #include "wx/mac/fontdlg.h"
#include "wx/cmndata.h"
#endif
+#include "wx/mac/fontdlg.h"
+
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
#endif
#include "wx/msgdlg.h"
+//color isn't working in carbon impl
+#define ISCOLORWORKING 0
+
// ============================================================================
// implementation
// ============================================================================
FMFontFamily fontfamily;
FMFontStyle fontstyle;
FMFontSize fontsize;
+#if ISCOLORWORKING
RGBColor fontcolor;
+#endif
status = GetEventParameter (event, kEventParamFMFontFamily,
typeFMFontFamily, NULL,
check_noerr (status);
+#if ISCOLORWORKING
status = GetEventParameter (event, kEventParamFontColor,
typeRGBColor, NULL,
sizeof( RGBColor ), NULL, &fontcolor);
check_noerr (status);
+#endif
//now do the conversion to the wx font data
wxFontData theFontData;
wxFont theFont;
-
+
+#if ISCOLORWORKING
//set color
wxColour theColor;
theColor.Set(&(WXCOLORREF&)fontcolor);
theFontData.SetColour(theColor);
+#endif
//set size
theFont.SetPointSize(fontsize);
while(FPIsFontPanelVisible())
{
//yeild so we can get events
- ::wxSafeYield(m_dialogParent, false);
+ wxTheApp->Yield(false);
}
}
else