<<"'"<<level
<<std::endl);
int _id=0;
+ int r=100;
+ int g=100;
+ int b=100;
//Adds columns
GetTreeHandler()->LoadChildren(*i,1);
tree::Node::ChildrenListType::reverse_iterator j;
item.SetText( crea::std2wx(s));
// item.SetTextColour(*wxRED);
- // item.SetBackgroundColour(*wxBLACK);
+
+ //Setting the color according to the parent
+ /*
+ if(l==0)
+ {
+ item.SetBackgroundColour(wxColour(r,g,b));
+ mColorMap.insert(NodeColorPair(*j,wxColour(r,g,b)));
+ }
+ else if(l!=mLevelList.size()-1)
+ {
+ item.SetBackgroundColour(mColorMap[*i]);
+ mColorMap.insert(NodeColorPair(*j,mColorMap[*i]));
+ }
+ else
+ {
+ item.SetBackgroundColour(mColorMap[*i]);
+ }
+ r+=20;
+ g+=20;
+ b+=20;*/
+
item.SetColumn(0);
- //Sets the last level as selecte....How to make it select only the first time?
+ //Sets the last level as selected....How to make it select only the first time?
//if (level==mLevelList.size()) item.SetState(wxLIST_STATE_SELECTED);
GetCtrl(l)->SetItem(item);