*** empty log message ***

svn path=/trunk/boinc/; revision=11433
This commit is contained in:
Charlie Fenton 2006-11-01 08:58:24 +00:00
parent 397740e774
commit b043f38bcb
3 changed files with 22 additions and 2 deletions

View File

@ -11937,12 +11937,14 @@ Rom 31 Oct 2006
- Tag for 5.7.1 release, all platforms
boinc_core_release_5_7_1
Charlie 31 Oct 2006
Charlie 1 Nov 2006
- Mac: Work around Simple GUI hang due to bug in Mac version of
wxBufferedDC.GetTextExtent().
wxBufferedDC.GetTextExtent().
-Mac: Fix transparent text.
- Mac: more changes to XCode project to better build Simple GUI.
clientgui/
sg_CustomControls.cpp, .h
sg_ViewTabPage.cpp
mac_build/
boinc.xcodeproj/

View File

@ -61,6 +61,9 @@ void CTransparentStaticLine::OnPaint(wxPaintEvent& /*event*/) {
IMPLEMENT_DYNAMIC_CLASS (CTransparentStaticText, wxStaticText)
BEGIN_EVENT_TABLE(CTransparentStaticText, wxStaticText)
#ifdef __WXMAC__
EVT_ERASE_BACKGROUND(CTransparentStaticText::OnEraseBackground)
#endif
EVT_PAINT(CTransparentStaticText::OnPaint)
END_EVENT_TABLE()
@ -184,3 +187,15 @@ void CTransparentStaticTextAssociate::OnMouse(wxMouseEvent& event) {
event.Skip();
}
#if 0
void CTransparentStaticTextAssociate::OnEraseBackground(wxEraseEvent& event){
CSkinSimple* pSkinSimple = wxGetApp().GetSkinManager()->GetSimple();
wxASSERT(pSkinSimple);
wxASSERT(wxDynamicCast(pSkinSimple, CSkinSimple));
wxDC *dc = event.GetDC();
dc->DrawBitmap(*pSkinSimple->GetPreferencesDialogBackgroundImage()->GetBitmap(), 0, 0);
}
#endif

View File

@ -91,6 +91,9 @@ public:
virtual bool HasTransparentBackground() { return true; };
#ifdef __WXMAC__
virtual void OnEraseBackground(wxEraseEvent& /*event*/) {};
#endif
virtual void OnPaint(wxPaintEvent& event);
DECLARE_EVENT_TABLE()