#4511: wxMac 2.8.6: Drawing to Notebook windows that are not shown
---------------------------+-----------------------
Reporter: grinsven | Owner: csomor
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: wxOSX-Carbon | Version:
Resolution: | Keywords:
Blocked By: | Blocking:
Patch: 0 |
---------------------------+-----------------------
Comment (by oneeyeman):
Applying following patch:
{{{
diff -bru wxWidgets.orig/samples/notebook/notebook.cpp
wxWidgets/samples/notebook/notebook.cpp
--- wxWidgets.orig/samples/notebook/notebook.cpp 2014-07-31
21:16:47.000000000 -0700
+++ wxWidgets/samples/notebook/notebook.cpp 2014-08-24
14:38:59.000000000 -0700
@@ -178,7 +178,9 @@
wxPanel *panel = CreateRadioButtonsPage(parent);
parent->AddPage( panel, RADIOBUTTONS_PAGE_NAME, false,
GetIconIndex(parent) );
-
+wxWindowDC dc( panel );
+dc.SetPen( wxPen( *wxBLACK_DASHED_PEN ) );
+dc.DrawLine( 5, 5, 100, 100 );
panel = CreateVetoPage(parent);
parent->AddPage( panel, VETO_PAGE_NAME, false, GetIconIndex(parent)
);
}}}
and running the sample, I don't see any line being drawn on the first
page.
Tested on Cocoa.
This can be closed unless the test is incorrect.
--
Ticket URL: <
http://trac.wxwidgets.org/ticket/4511#comment:2>