- this->tree_Projects->EnsureVisible(event.GetInt());
- this->tree_Projects->SetItemBold(event.GetInt(), true);
- this->tree_Projects->SetItemTextColour(event.GetInt(), wxColour(0,0,255));
- this->tree_Projects->SetItemBackgroundColour(event.GetInt(), wxColour(230,230,255));
+ modelCDMIProjectTreeNode* item = (modelCDMIProjectTreeNode*)event.GetClientData();
+ this->tree_Projects->EnsureVisible(item->GetId());
+ this->tree_Projects->SetItemBold(item->GetId(), true);
+ this->tree_Projects->SetItemTextColour(item->GetId(), wxColour(0,0,255));
+ this->tree_Projects->SetItemBackgroundColour(item->GetId(), wxColour(230,230,255));