08-06-2025 01:59 AM - edited 08-06-2025 02:00 AM
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
Solved! Go to Solution.
08-06-2025 02:19 AM - edited 08-06-2025 02:26 AM
Hi Tim,
@tominsek wrote:
What is the easiest way to lock/protect tabs in tab control on front panel?
@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…
08-06-2025 02:58 AM
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
08-06-2025 03:09 AM - edited 08-06-2025 03:10 AM
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…