#ifndef __LP64__
Rect frame;
wxMacGetPictureBounds( picHandle, &frame );
-
+#if wxUSE_METAFILE
wxMetafile mf;
mf.SetHMETAFILE( (WXHMETAFILE)m_pictHandle );
+#endif
wxMemoryDC mdc;
m_bitmap.Create( frame.right - frame.left, frame.bottom - frame.top );
mdc.SelectObject( m_bitmap );
+#if wxUSE_METAFILE
mf.Play( &mdc );
+#endif
mdc.SelectObject( wxNullBitmap );
#endif
#include "wx/wxprec.h"
+#if wxUSE_FILEDLG
+
#include "wx/filedlg.h"
#ifndef WX_PRECOMP
return (err == noErr) ? wxID_OK : wxID_CANCEL;
}
+
+#endif // wxUSE_FILEDLG
+
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_FONTDLG
+
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#endif // !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
-#endif
+#endif // wxMAC_USE_EXPERIMENTAL_FONTDIALOG
+
+#endif // wxUSE_FONTDLG
return true;
}
+#if wxUSE_STATUSBAR
wxStatusBar *wxFrame::OnCreateStatusBar(int number, long style, wxWindowID id,
const wxString& name)
{
m_frameStatusBar->SetSize(0, h, w, WX_MAC_STATUSBAR_HEIGHT);
}
}
+#endif // wxUSE_STATUSBAR
// Responds to colour changes, and passes event on to children.
void wxFrame::OnSysColourChanged(wxSysColourChangedEvent& event)
SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE));
Refresh();
+#if wxUSE_STATUSBAR
if ( m_frameStatusBar )
{
wxSysColourChangedEvent event2;
event2.SetEventObject( m_frameStatusBar );
m_frameStatusBar->ProcessEvent(event2);
}
+#endif // wxUSE_STATUSBAR
// Propagate the event to the non-top-level children
wxWindow::OnSysColourChanged(event);
}
#endif
-#if wxUSE_TOOLBAR
if (GetToolBar())
{
int tx, ty, tw, th;
#endif
}
}
-#endif
}
+#endif // wxUSE_TOOLBAR
void wxFrame::PositionBars()
{
#endif
}
-#endif
+
#include "wx/wxprec.h"
+#if wxUSE_STATUSBAR
+
#include "wx/statusbr.h"
#ifndef WX_PRECOMP
Refresh();
Update();
}
+
+#endif // wxUSE_STATUSBAR
+
#include "wx/wxprec.h"
+#if wxUSE_TIMER
+
#ifndef WX_PRECOMP
#include "wx/dynarray.h"
#endif
wxMacRemoveAllNotifiersForData( wxMacGetNotifierTable(), this );
}
-#endif
+#endif // wxMAC_USE_CARBON_TIMER
+
+#endif // wxUSE_TIMER
+
PicHandle m_backpict ;
bool m_shown ;
long m_mark ;
+#if wxUSE_TIMER
wxMacToolTipTimer* m_timer ;
-
+#endif
#if TARGET_CARBON
wxMacCFStringHolder m_helpTextRef ;
#endif
} ;
+#if wxUSE_TIMER
class wxMacToolTipTimer : public wxTimer
{
public:
wxMacToolTip* m_tip;
long m_mark ;
};
+#endif // wxUSE_TIMER
//-----------------------------------------------------------------------------
// wxToolTip
}
// --- mac specific
-
+#if wxUSE_TIMER
wxMacToolTipTimer::wxMacToolTipTimer( wxMacToolTip *tip , int msec )
{
m_tip = tip;
m_mark = tip->GetMark() ;
Start(msec, true);
}
+#endif // wxUSE_TIMER
wxMacToolTip::wxMacToolTip()
{
m_window = NULL ;
m_backpict = NULL ;
+#if wxUSE_TIMER
m_timer = NULL ;
+#endif
m_mark = 0 ;
m_shown = false ;
}
m_window =win;
s_ToolTipWindowRef = m_window ;
m_backpict = NULL ;
-
+#if wxUSE_TIMER
if ( m_timer )
delete m_timer ;
m_timer = new wxMacToolTipTimer( this , s_ToolTipDelay ) ;
+#endif // wxUSE_TIMER
}
wxMacToolTip::~wxMacToolTip()
{
+#if wxUSE_TIMER
if ( m_timer )
{
delete m_timer ;
m_timer = NULL;
}
-
+#endif // wxUSE_TIMER
if ( m_backpict )
Clear() ;
}
void wxMacToolTip::Clear()
{
m_mark++ ;
-
+#if wxUSE_TIMER
if ( m_timer )
{
delete m_timer ;
m_timer = NULL ;
}
-
+#endif // wxUSE_TIMER
if ( !m_shown )
return ;