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 |
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
|
|
|
Goto Forum:
Current Time: Sun May 12 03:38:18 CEST 2024
Total time taken to generate the page: 0.03006 seconds
|