Mike C Posted June 28, 2005 Report Share Posted June 28, 2005 Hello everybody. I just wanted to metion a confirmed bug from NI. I was having problems displaying over 2000 items in a tree. When I contacted NI I received the following response: "Thank you for contacting National Instruments. There is a bug in the Tree Control that limits the number of displayable items in the tree to 1933 items. However it is important to note that this is simply the displayed items. You can safely have thousands of items in the tree, however if there are more then 1933 items displayed, it stops displaying the new items. This bug has reported to R&D and it will be fixed on next version" I hope this helps anyone that run into this. Quote Link to comment
brian175 Posted June 28, 2005 Report Share Posted June 28, 2005 This bug has reported to R&D and it will be fixed on next version" 5156[/snapback] Don't hold your breath, I reported this same bug in LV 7.0 back in Feb 2004 Quote Link to comment
Mike C Posted June 28, 2005 Author Report Share Posted June 28, 2005 Don't hold your breath, I reported this same bug in LV 7.0 back in Feb 2004 5160[/snapback] I'll make sure I don't. Is there a way to get around this bug? MikeC Quote Link to comment
brian175 Posted June 28, 2005 Report Share Posted June 28, 2005 It depends on whether you are using the tree control to store the data or display it. For example the tree example that ships with LabVIEW takes directory and first reads every file and sub directory and then adds to a tree. Here they are storing the entire directory structure in a tree (which takes a very long time). I wrote a tree control utility that only fetches the items as they are needed. So in my tree I only get the files and directories of the top level directory and when the user expands on a directory, then I get its contents and add to the tree. So in this case I can browse C:\ which has well over 1933 items but the tree control only contains the items that are being viewed. The tree never contains all the data, just what needs to be displayed. I don't have time right now, but hopefully I can post an example if it would help. Quote Link to comment
Mike C Posted June 29, 2005 Author Report Share Posted June 29, 2005 I don't have time right now, but hopefully I can post an example if it would help. 5162[/snapback] It would be very helpfull if you did. Quote Link to comment
brian175 Posted October 3, 2005 Report Share Posted October 3, 2005 It would be very helpfull if you did. I have an application that is available for free called DataAct Class Browser for LabVIEW that uses the technique I described. The full source is included which also includes some other examples for the tree control such as using the tree symbols. Sorry it took so long, but better late than never. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.