// resources
// ----------------------------------------------------------------------------
-#ifndef __WXMSW__
+#ifndef wxHAS_IMAGES_IN_RESOURCES
#include "../sample.xpm"
#endif
wxTextDataObject *obj = new wxTextDataObject;
obj->SetText( node->m_title );
event.SetDataObject( obj );
+ event.SetDragFlags(wxDrag_AllowMove); // allows both copy and move
}
void MyFrame::OnDropPossible( wxDataViewEvent &event )
{
wxLogMessage("There is no current item.");
}
+
+ wxDataViewColumn *col = m_ctrl[0]->GetCurrentColumn();
+ if ( col )
+ {
+ wxLogMessage("Current column: %d",
+ m_ctrl[0]->GetColumnPosition(col));
+ }
+ else
+ {
+ wxLogMessage("There is no current column.");
+ }
}
void MyFrame::OnSetNinthCurrent(wxCommandEvent& WXUNUSED(event))
if (ctrl->IsContainer(selected)) {
wxDataViewItem newitem = ctrl->AppendItem( selected, "Item", 0 );
ctrl->Select(newitem);
- ctrl->StartEditor(newitem, 0);
+ ctrl->EditItem(newitem, ctrl->GetColumn(0));
}
}