spaghetti_developer Posted March 13, 2012 Report Share Posted March 13, 2012 Hi Guys, I'm populating a tree control with a lot of information and I would like to avoid that the information I'm updating are shown step by step to the user, I would prefer they will be shown when the updating procedure has finished to update the control. Is it possible to lock the control for updating and when the updating procedure is finished show the information? How can I do that? Thank you in advance... Quote Link to comment
tnt Posted March 13, 2012 Report Share Posted March 13, 2012 --> defer panel updates ? see also http://forums.ni.com...low/td-p/310481 http://lavag.org/top...e-tree-control/ 1 Quote Link to comment
crelf Posted March 13, 2012 Report Share Posted March 13, 2012 I agree, but PS: make sure you turn it to false after it's done (yes, I know that sounds obvious, but I was fault finding an app recently, and found that node was wired with an error cluster that had an erro upstream, so it didn't execute - very frustrating, yet highly hillarious ) Quote Link to comment
MikaelH Posted March 13, 2012 Report Share Posted March 13, 2012 Chris, that could be solved if you right click on the property node and select this option: ...but of course you need to have LabVIEW 2013 Alpha installed 1 Quote Link to comment
jgcode Posted March 13, 2012 Report Share Posted March 13, 2012 These controls need a defer update method of their own IMHO. I think there is a LVIE idea for this. Quote Link to comment
Darin Posted March 14, 2012 Report Share Posted March 14, 2012 These controls need a defer update method of their own IMHO. I think there is a LVIE idea for this. http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Make-Defer-Updates-an-Object-Property-as-well-as-a-Panel/idi-p/1292100 Quote Link to comment
Popular Post Mads Posted March 14, 2012 Popular Post Report Share Posted March 14, 2012 On a side note: if you are going to populate it with a lot of items (hundreds) it might be an idea to not fill it all in one go. Add child items on demand instead, i.e. when a node is expanded (use the "Item Open" filter event to intercept). Otherwise population of the native tree control can be extremely slow and make the GUI abnormally unresponsive. 4 Quote Link to comment
spaghetti_developer Posted March 19, 2012 Author Report Share Posted March 19, 2012 Thank you to everybody, it works very well. 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.