07-30-2010 01:49 PM
Hello,
I've found this vi on this forum which creates a password on the third tab (in the example).
I've tried to change it to protect only the first tab (with the control button to relock the tab on the first page too), but it didn't work.
Also, is it possible to change the state from the tab being locked and not visible to being locked and visible?
Can someone please take a look at it?
Thank you,
Solved! Go to Solution.
07-30-2010 02:03 PM
When you say it didn't work, then please tell us what it did or didn't do.
For making a page be visible, but preventing a user from controlling anything on it, you may have to not set the visibility of the page, but go through all the controls on that page and set their status for enabled/disable/disabled & grey.
07-30-2010 03:32 PM
Thanks for your reply.
Let's do one thing at a time.
I've tried to change the constants in the vi (array index and True/False values). I've managed to get 2,3, &4 tabs locked, but I couldn't get only the first tab to be locked (with the boolean control inside).
07-30-2010 03:50 PM - edited 07-30-2010 03:54 PM
The VI provided does also lock the first tab when you set the index to 0 which grabs the correct reference of the tabpage. The problem what you are seeing that users still get to see page1 is caused because it is marked as the default page.
It is also possible to hide a tab, you can do that by using the PageVI property and setting it to false. Setting it to true shows it up again.
08-02-2010 03:23 PM
Well, ideally, I want to make the first tab viewable not hidden (when it is locked). When I changed the index value to zero the first tab is locked too, but how do I set it so it'll be the only locked tab?
08-03-2010 10:25 AM - edited 08-03-2010 10:28 AM
Hi simply_me,
Here's a modification that should allow you to do that: