mac fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,6 +72,9 @@
|
|||||||
|
|
||||||
#include "wx/renderer.h"
|
#include "wx/renderer.h"
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
#include "wx/mac/private.h"
|
||||||
|
#endif
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// events
|
// events
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -4611,6 +4614,11 @@ bool wxGenericListCtrl::Create(wxWindow *parent,
|
|||||||
|
|
||||||
m_mainWin = new wxListMainWindow( this, -1, wxPoint(0,0), size, style );
|
m_mainWin = new wxListMainWindow( this, -1, wxPoint(0,0), size, style );
|
||||||
|
|
||||||
|
#if defined( __WXMAC__ ) && __WXMAC_CARBON__
|
||||||
|
wxFont font ;
|
||||||
|
font.MacCreateThemeFont( kThemeViewsFont ) ;
|
||||||
|
SetFont( font ) ;
|
||||||
|
#endif
|
||||||
if ( InReportView() )
|
if ( InReportView() )
|
||||||
{
|
{
|
||||||
CreateHeaderWindow();
|
CreateHeaderWindow();
|
||||||
|
@@ -270,7 +270,7 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
|
|||||||
wxYield();
|
wxYield();
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
MacUpdateImmediately();
|
Update();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -284,7 +284,7 @@ wxStaticText *wxProgressDialog::CreateLabel(const wxString& text,
|
|||||||
|
|
||||||
// VZ: I like the labels be centered - if the others don't mind, you may
|
// VZ: I like the labels be centered - if the others don't mind, you may
|
||||||
// remove "#ifdef __WXMSW__" and use it for all ports
|
// remove "#ifdef __WXMSW__" and use it for all ports
|
||||||
#if defined(__WXMSW__) || defined(__WXPM__)
|
#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXMAC__)
|
||||||
c->left.SameAs(this, wxCentreX, LAYOUT_X_MARGIN);
|
c->left.SameAs(this, wxCentreX, LAYOUT_X_MARGIN);
|
||||||
#else // !MSW
|
#else // !MSW
|
||||||
c->right.SameAs(this, wxRight, 2*LAYOUT_X_MARGIN);
|
c->right.SameAs(this, wxRight, 2*LAYOUT_X_MARGIN);
|
||||||
@@ -391,7 +391,7 @@ wxProgressDialog::Update(int value, const wxString& newmsg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
MacUpdateImmediately();
|
Update();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return m_state != Canceled;
|
return m_state != Canceled;
|
||||||
|
@@ -40,6 +40,10 @@
|
|||||||
|
|
||||||
#include "wx/renderer.h"
|
#include "wx/renderer.h"
|
||||||
|
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
#include "wx/mac/private.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// array types
|
// array types
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
@@ -734,7 +738,11 @@ void wxGenericTreeCtrl::Init()
|
|||||||
|
|
||||||
m_lastOnSame = FALSE;
|
m_lastOnSame = FALSE;
|
||||||
|
|
||||||
|
#if defined( __WXMAC__ ) && __WXMAC_CARBON__
|
||||||
|
m_normalFont.MacCreateThemeFont( kThemeViewsFont ) ;
|
||||||
|
#else
|
||||||
m_normalFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
|
m_normalFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
|
||||||
|
#endif
|
||||||
m_boldFont = wxFont(m_normalFont.GetPointSize(),
|
m_boldFont = wxFont(m_normalFont.GetPointSize(),
|
||||||
m_normalFont.GetFamily(),
|
m_normalFont.GetFamily(),
|
||||||
m_normalFont.GetStyle(),
|
m_normalFont.GetStyle(),
|
||||||
@@ -1898,8 +1906,12 @@ void wxGenericTreeCtrl::ScrollTo(const wxTreeItemId &item)
|
|||||||
// We have to call this here because the label in
|
// We have to call this here because the label in
|
||||||
// question might just have been added and no screen
|
// question might just have been added and no screen
|
||||||
// update taken place.
|
// update taken place.
|
||||||
if (m_dirty) wxYieldIfNeeded();
|
if (m_dirty)
|
||||||
|
#if defined( __WXMSW__ ) || defined(__WXMAC__)
|
||||||
|
Update();
|
||||||
|
#else
|
||||||
|
wxYieldIfNeeded();
|
||||||
|
#endif
|
||||||
wxGenericTreeItem *gitem = (wxGenericTreeItem*) item.m_pItem;
|
wxGenericTreeItem *gitem = (wxGenericTreeItem*) item.m_pItem;
|
||||||
|
|
||||||
// now scroll to the item
|
// now scroll to the item
|
||||||
@@ -2831,7 +2843,11 @@ void wxGenericTreeCtrl::Edit( const wxTreeItemId& item )
|
|||||||
// question might just have been added and no screen
|
// question might just have been added and no screen
|
||||||
// update taken place.
|
// update taken place.
|
||||||
if ( m_dirty )
|
if ( m_dirty )
|
||||||
|
#if defined( __WXMSW__ ) || defined(__WXMAC__)
|
||||||
|
Update();
|
||||||
|
#else
|
||||||
wxYieldIfNeeded();
|
wxYieldIfNeeded();
|
||||||
|
#endif
|
||||||
|
|
||||||
m_textCtrl = new wxTreeTextCtrl(this, itemEdit);
|
m_textCtrl = new wxTreeTextCtrl(this, itemEdit);
|
||||||
|
|
||||||
@@ -3016,7 +3032,11 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
// highlight the current drop target if any
|
// highlight the current drop target if any
|
||||||
DrawDropEffect(m_dropTarget);
|
DrawDropEffect(m_dropTarget);
|
||||||
|
|
||||||
|
#if defined( __WXMSW__ ) || defined(__WXMAC__)
|
||||||
|
Update();
|
||||||
|
#else
|
||||||
wxYieldIfNeeded();
|
wxYieldIfNeeded();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( (event.LeftUp() || event.RightUp()) && m_isDragging )
|
else if ( (event.LeftUp() || event.RightUp()) && m_isDragging )
|
||||||
@@ -3047,7 +3067,11 @@ void wxGenericTreeCtrl::OnMouse( wxMouseEvent &event )
|
|||||||
|
|
||||||
SetCursor(m_oldCursor);
|
SetCursor(m_oldCursor);
|
||||||
|
|
||||||
|
#if defined( __WXMSW__ ) || defined(__WXMAC__)
|
||||||
|
Update();
|
||||||
|
#else
|
||||||
wxYieldIfNeeded();
|
wxYieldIfNeeded();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user