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