Program: bbtk
Module: $RCSfile: bbtkWxGUIPackageBrowser2.cxx,v $
Language: C++
- Date: $Date: 2010/03/26 14:03:32 $
- Version: $Revision: 1.16 $
+ Date: $Date: 2010/03/29 16:07:15 $
+ Version: $Revision: 1.17 $
=========================================================================*/
/* ---------------------------------------------------------------------
void WxGUIBlackBoxList::OnBeginDrag(wxListEvent& event)
{
std::cout<<"RaC DRAG TABLE"<<std::endl;
- wxString text = this->GetItemText(event.GetIndex());
+ wxString text(wxT(this->GetItemText(event.GetIndex())));
wxListItem info;
info.m_itemId = event.m_itemIndex;
info.m_col = 0;
info.m_mask = wxLIST_MASK_DATA;
+ wxString sendtext(wxT(""));
if ( GetItem(info) )
{
// TO DO : STORE SMART PTR ?
BlackBoxDescriptor* d = (BlackBoxDescriptor*)(info.GetData());
if (d!=0)
{
- //mUser->WxGUIBlackBoxListUserOnSelected(d);
- //text = d->GetAuthor();
+ sendtext += wxT(d->GetFullTypeName());
}
}
else
wxFAIL_MSG(wxT("wxListCtrl::GetItem() failed"));
}
-
- //wxTextDataObject tdo(wxString::Format("%s %d",text,123456));
- //wxDropSource tds(tdo, this);
- //tds.DoDragDrop();
+
+ wxTextDataObject tdo(wxT(sendtext));
+ wxDropSource tds(tdo, this);
+ tds.DoDragDrop();
// const wxPoint& pt = event.m_pointDrag;
//wxLogMessage( wxT("OnBeginDrag at (%d, %d), item %ld."),