X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e17bc3f7333addb73a2ba6fee52d19d47d77360..b98738705265d77937c62bdfbf02343ccc1444eb:/src/mac/carbon/drawer.cpp diff --git a/src/mac/carbon/drawer.cpp b/src/mac/carbon/drawer.cpp index 14241ebca4..0e77b28702 100644 --- a/src/mac/carbon/drawer.cpp +++ b/src/mac/carbon/drawer.cpp @@ -4,8 +4,8 @@ // Drawer windows appear under their parent window and // behave like a drawer, opening and closing to reveal // content that does not need to be visible at all times. -// Author: Jason Bagley -// Modified by: +// Author: Jason Bagley +// Modified by: Ryan Norton (To make it work :), plus bug fixes) // Created: 2004-30-01 // RCS-ID: $Id$ // Copyright: (c) Jason Bagley; Art & Logic, Inc. @@ -17,19 +17,15 @@ #endif #include "wx/defs.h" - -#include "wx/mac/carbon/drawer.h" #include "wx/mac/private.h" #if defined( __WXMAC__ ) && TARGET_API_MAC_OSX && ( MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_2 ) -// TODO: -// ¥ Contents do not draw on drawer opening. They do when a window is deactivated -// with the drawer open, and contents stay visible thereafter. +#include "wx/mac/carbon/drawer.h" IMPLEMENT_DYNAMIC_CLASS(wxDrawerWindow, wxWindow) -// Use consants for now. +// Use constants for now. // These can be made into member variables and set dynamically. const int kLeadingOffset = 20; const int kTrailingOffset = 20; @@ -56,7 +52,7 @@ bool wxDrawerWindow::Create(wxWindow *parent, wxWindowID id, const wxString& title, wxSize size, wxDirection edge, const wxString& name) { - wxASSERT_MSG(NULL != parent, "wxDrawerWindows must be attached to a parent window."); + wxASSERT_MSG(NULL != parent, wxT("wxDrawerWindows must be attached to a parent window.")); // Constrain the drawer size to the parent window. const wxSize parentSize(parent->GetClientSize());