LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lock tabs tab control

Solved!
Go to solution

 

Hi, 

i have some questions about tab control

What is the easiest way to lock/protect tabs in tab control on front panel?

I want to lock tab (NASTAVITVE)  with pasword so when you want to click or open that tab, it asks for pasword. In this tab i would have all the settings for setting up serial communication, the path to the sql for saving data, etc...

 

 

Im attaching my project below.

Thanks for any answer and advice

Best regards, Tim

0 Kudos
Message 1 of 4
(168 Views)

Hi Tim,

 

 


@tominsek wrote:

What is the easiest way to lock/protect tabs in tab control on front panel?


  • You can react on value change events of the tab control, this will work after the page has been selected…
  • You can react on "MouseDown" events of the tab control, even use the filtering event "MouseDown?". This will work before the page has been changed, so would be better to intercept user actions. You need to handle mouse positions to determine the user intention…
  • Set the tabs to invisible and use a ring/enum/listbox to let the user select the next tab. This way you get way more control on how to select the next tab and how to display the available options. You will need to implement some more code…

@tominsek wrote:

I want to lock tab (NASTAVITVE)  with pasword so when you want to click or open that tab, it asks for pasword.


Have that password input in a different place of the UI, like an input to select the user level (user, engineer, admin).

Based on that user level you can show/hide the alowed pages of the tab control.

No need to intercept user action anymore: much cleaner UI, better UX…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(151 Views)

Hi Gerdw, 

 

Do you maybe have some example how to do that or something similar....

I don't really understand what do you mean...

thanks

0 Kudos
Message 3 of 4
(130 Views)
Solution
Accepted by topic author tominsek

Hi Tim,

 


@tominsek wrote:

Do you maybe have some example how to do that or something similar....

I don't really understand what do you mean...


Like this:

Add your own code to handle your requirements…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 4
(124 Views)