Hello,
I have a problem with the refresh of a TGListTree. In my program, I am creating a TGListTree of some items (itemPKI and a listPKI which a vector of items) with default icons. At one time, I have these following lines to change the icons:
[code]itemPKI->SetPictures(gClient->GetPicture(“img/red.png”),gClient->GetPicture(“img/red.png”)); //PKI
for(unsigned int i(0); i<listPKI.size();++i)
{
listPKI[i]->SetPictures(gClient->GetPicture(“img/red.png”),gClient->GetPicture(“img/red.png”));
}
gClient->NeedRedraw(fListDevices);[/code]
I found the last line on the forum, however I have still the same icons, I need to click on one of them to change all the icons. Is there a solution to refresh the list instantaneously?
Thank you,
Pierre-Louis