U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TreeCtrl » Anomaly in tree control
Re: Anomaly in tree control [message #29784 is a reply to message #29782] Tue, 16 November 2010 12:00 Go to previous message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member
Not sure.
close directory in the example is this

void CloseDir(int id) {
tree1.RemoveChildren(id);
}

I changed it to this but it didn't fix the problem

void CloseDir(int id) {
tree1.Close(id);
tree1.RemoveChildren(id);
}

so I guess the minus sign is showing there's no children.
I'm wondering if there should be no plus or minus icon on a node that has no children - but then for this example you wouldn't be able to re-populate the node so perhaps remove-children isn't quite the normal thing to do in CloseDir.

[Edit] - oops, didn't see your second answer before I posted this. Thanks.

[Updated on: Tue, 16 November 2010 12:02]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Basic query: id, key and value in a TreeCtrl.
Next Topic: Changing tree control style
Goto Forum:
  


Current Time: Thu Aug 27 14:22:21 GMT+2 2026

Total time taken to generate the page: 0.01210 seconds