}
}
-bool wxPopupWindow::Create(wxWindow *parent, int flags)
+bool wxPopupWindow::Create(wxWindow *parent, int WXUNUSED(flags))
{
m_macIsUserPane = false ;
WindowClass wclass = kHelpWindowClass;
WindowAttributes attr = kWindowCompositingAttribute ;
- WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
Rect bounds = { 0,0,0,0 };
OSStatus err = ::CreateNewWindow( wclass , attr , &bounds , (WindowRef*)&m_popupWindowRef ) ;
if ( err == noErr )
{
-// SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
+#if 0
+ WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
+ SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
+#endif
}
m_peer = new wxMacControl(this , true /*isRootControl*/) ;
{
CGContextRef cgContext;
wxGCDCImpl *impl = (wxGCDCImpl*) dc.GetImpl();
-
+
cgContext = (CGContextRef) impl->GetGraphicsContext()->GetNativeContext();
{
if ( !dc.IsKindOf( CLASSINFO( wxPaintDC ) ) )
{
- wxRect rect( (int) splitterRect.origin.x, (int) splitterRect.origin.y, (int) splitterRect.size.width,
+ wxRect rect( (int) splitterRect.origin.x, (int) splitterRect.origin.y, (int) splitterRect.size.width,
(int) splitterRect.size.height );
win->Refresh( &rect );
}
}
void
-wxRendererMac::DrawItemSelectionRect(wxWindow *win,
+wxRendererMac::DrawItemSelectionRect(wxWindow * WXUNUSED(win),
wxDC& dc,
const wxRect& rect,
- int flags )
+ int flags)
{
if ( !(flags & wxCONTROL_SELECTED) )
return;
-
- wxColour col( wxMacCreateCGColorFromHITheme( (flags & wxCONTROL_FOCUSED) ?
+
+ wxColour col( wxMacCreateCGColorFromHITheme( (flags & wxCONTROL_FOCUSED) ?
kThemeBrushAlternatePrimaryHighlightColor
: kThemeBrushSecondaryHighlightColor ) );
wxBrush selBrush( col );
-
+
dc.SetPen( *wxTRANSPARENT_PEN );
dc.SetBrush( selBrush );
dc.DrawRectangle( rect );