LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change Password Protected Tab

Solved!
Go to solution

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,

0 Kudos
Message 1 of 6
(3,353 Views)

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.

0 Kudos
Message 2 of 6
(3,348 Views)

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).

0 Kudos
Message 3 of 6
(3,333 Views)

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.

0 Kudos
Message 4 of 6
(3,322 Views)

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?

0 Kudos
Message 5 of 6
(3,280 Views)
Solution
Accepted by simply_me

Hi simply_me,

 

Here's a modification that should allow you to do that:

 

Jared S.
Applications Engineering
National Instruments
0 Kudos
Message 6 of 6
(3,255 Views)