wxMenu compile fix

new drawing tests
  tree ctrl GCC compile fix (I hope)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3083 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-07-22 15:05:52 +00:00
parent 619d05280a
commit b62c3631c9
6 changed files with 233 additions and 101 deletions

View File

@@ -411,7 +411,8 @@ bool wxTreeCtrl::Create(wxWindow *parent, wxWindowID id,
#endif
SetBackgroundColour( *wxWHITE );
m_dottedPen = wxPen( "GREY", 0, wxDOT );
// m_dottedPen = wxPen( "grey", 0, wxDOT );
m_dottedPen = wxPen( "grey", 0, 0 );
return TRUE;
}
@@ -1650,7 +1651,8 @@ void wxTreeCtrl::OnChar( wxKeyEvent &event )
else
{
wxTreeItemId next = GetNextSibling( m_key_current );
if (next == 0)
// if (next == 0)
if (!next)
{
wxTreeItemId current = m_key_current;
while (current && !next)
@@ -1659,7 +1661,8 @@ void wxTreeCtrl::OnChar( wxKeyEvent &event )
if (current) next = GetNextSibling( current );
}
}
if (next != 0)
// if (next != 0)
if (next)
{
SelectItem( next, unselect_others, extended_select );
m_key_current=next.m_pItem;