// Modified by:
// Created: 04/01/98
// RCS-ID: $Id$
-// Copyright: (c) Julian Smart and Markus Holzem
+// Copyright: (c) Julian Smart
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
}
else
{
- images->Add(wxBitmap(icons[i].ConvertToImage().Rescale(size, size)));
+ images->Add(wxBitmap(wxBitmap(icons[i]).ConvertToImage().Rescale(size, size)));
}
}
void MyTreeCtrl::name(wxTreeEvent& event) \
{ \
wxLogMessage(wxT(#name)); \
+ SetLastItem(wxTreeItemId()); \
event.Skip(); \
}
void LogKeyEvent(const wxChar *name, const wxKeyEvent& event)
{
wxString key;
- long keycode = event.KeyCode();
+ long keycode = event.GetKeyCode();
{
switch ( keycode )
{
if ( itemDst.IsOk() && !ItemHasChildren(itemDst) )
{
// copy to the parent then
- itemDst = GetParent(itemDst);
+ itemDst = GetItemParent(itemDst);
}
if ( !itemDst.IsOk() )