attempts to fix the proplist crash - fruitless
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -810,7 +810,7 @@ void MyPanel::OnPageChanging( wxNotebookEvent &event )
|
||||
"page change from taking place - if you select\n"
|
||||
"[No] the current page will stay the third one\n",
|
||||
"Control sample",
|
||||
wxICON_QUESTION | wxYES_NO) != wxYES )
|
||||
wxICON_QUESTION | wxYES_NO, this) != wxYES )
|
||||
{
|
||||
event.Veto();
|
||||
|
||||
|
@@ -1071,6 +1071,8 @@ void DnDFrame::OnLeftDown(wxMouseEvent &WXUNUSED(event) )
|
||||
,wxCURSOR_PENCIL, // for copy
|
||||
wxCURSOR_SPRAYCAN, // for move
|
||||
wxCURSOR_QUESTION_ARROW // for nothing
|
||||
#elif defined(__WXGTK__)
|
||||
,wxICON(mondrian)
|
||||
#endif
|
||||
);
|
||||
|
||||
@@ -1511,19 +1513,19 @@ DnDShapeFrame::DnDShapeFrame(wxFrame *parent)
|
||||
SetDropTarget(new DnDShapeDropTarget(this));
|
||||
|
||||
m_shape = NULL;
|
||||
|
||||
|
||||
SetBackgroundColour(*wxWHITE);
|
||||
}
|
||||
|
||||
DnDShapeFrame::~DnDShapeFrame()
|
||||
{
|
||||
if (m_shape)
|
||||
if (m_shape)
|
||||
delete m_shape;
|
||||
}
|
||||
|
||||
void DnDShapeFrame::SetShape(DnDShape *shape)
|
||||
{
|
||||
if (m_shape)
|
||||
if (m_shape)
|
||||
delete m_shape;
|
||||
m_shape = shape;
|
||||
Refresh();
|
||||
|
@@ -588,6 +588,8 @@ void MyListCtrl::OnListKeyDown(wxListEvent& event)
|
||||
void MyListCtrl::OnChar(wxKeyEvent& event)
|
||||
{
|
||||
wxLogMessage(_T("Got char event."));
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
void MyListCtrl::LogEvent(const wxListEvent& event, const wxChar *eventName)
|
||||
|
@@ -245,6 +245,9 @@ void MyFrame::OnDeletePage(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
if (m_notebook->GetPageCount() > 0)
|
||||
m_notebook->DeletePage( m_notebook->GetPageCount()-1 );
|
||||
|
||||
// VZ: this crashes wxGTK
|
||||
//m_notebook->RemovePage( m_notebook->GetPageCount()-1 );
|
||||
}
|
||||
|
||||
void MyFrame::OnNextPage(wxCommandEvent& WXUNUSED(event))
|
||||
|
Reference in New Issue
Block a user