scls19fr Posted April 10, 2009 Report Share Posted April 10, 2009 Hello, I've made a VI for my students. This VI contains data, graph and calculate some values. I'd like to hide the calculated values but when I click on a button a modal window would appear in which I could enter a password to make the whole user interface available. Is there an easy way to do this. I've ever user property node (to hide some part of the user interface) an other idea could be to have two forms (a limited form and a full form) does anyone here has ever try to do something like the two ideas above ? How can I open a modal window ? Kind regards Quote Link to comment
Grampa_of_Oliva_n_Eden Posted April 10, 2009 Report Share Posted April 10, 2009 QUOTE (scls19fr @ Apr 9 2009, 09:23 AM) Hello,I've made a VI for my students. This VI contains data, graph and calculate some values. I'd like to hide the calculated values but when I click on a button a modal window would appear in which I could enter a password to make the whole user interface available. Is there an easy way to do this. I've ever user property node (to hide some part of the user interface) an other idea could be to have two forms (a limited form and a full form) does anyone here has ever try to do something like the two ideas above ? How can I open a modal window ? Kind regards I'll leave the modal window" for other to answer but hiding groups of control can be accomplished by using a tab control with a tab page that is hidden until the password is entered. I find the tab control approach to be an easy way to control the visablity of a collection of objects. Ben Quote Link to comment
scls19fr Posted April 10, 2009 Author Report Share Posted April 10, 2009 Thanks for the tab suggestion I will also have a look at md5 hash to avoid storing the password in the LV source. An other good idea could be to use an ini file to store password(s) hash(s) Quote Link to comment
TobyD Posted April 10, 2009 Report Share Posted April 10, 2009 QUOTE (scls19fr @ Apr 9 2009, 07:41 AM) Thanks for the tab suggestionI will also have a look at md5 hash to avoid storing the password in the LV source. An other good idea could be to use an ini file to store password(s) hash(s) This is a little program I threw together quite a while ago. A friend wanted a way to quickly launch sound files. It has some really simple resize code in it that hides the configuration area when not needed. It's not very pretty, but it might help. http://lavag.org/old_files/post-8758-1239291739.zip'>Download File:post-8758-1239291739.zip (saved in LV8.5) Quote Link to comment
scls19fr Posted April 10, 2009 Author Report Share Posted April 10, 2009 Thanks for this idea of changing window width in order to hide a part of the UI. But my application runs in full screen mode (maximized) so this is not a solution for me. About using tab... I've tryied two ideas 1) Use a tab control with only 1 page. I set this tab control in order to hide page(s) name(s). This works fine. 2) I'm trying to put all the UI that need to be hidden in the second page of a tab control. I'd like to hide the whole page of the tab control (not the tab control itself)... but I succeed in doing this using this http://wiki.lavag.org/TAB_Control About md5... I've found what I was looking for at OpenG. I'll do it later. About user interface... I'm also wondering if LabVIEW can use the same concept of layouts to automatically modify the size and position of controls (like in Java or C++/Qt) 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.