How Can I Password-Protect My Panels under Lookout?
I am interested in password-protecting the panels of my Lookout program. That is, each panel should be made available only after prompting and verifying the user's password. I can use Pushbuttons of different security levels to pop-up different panels, but this is not fully practical. What if all the users have the same security level, or if I don't want the user with the higher security level to acces the other panels? The only solution is to prompt for password and activate the panels independently. How can I do this?
Here is how it can be done: Imagine we want to have three pushbuttons, each bringing up a password-protected panel. Each pushbutton should first bring up the same "Password panel" (a pop-up no-icon panel). A TextEntry box here prompts for password. The EXACT expression compares the password with the pre-set password in the activate member of the individual panels.
Using the TextEntry box is a little tricky because, normally, the password is displayed on the "TextEntry1.display" and remains there. So, anybody can view it. To avoid this, we "erase" the password immediately by writing " " (nothing) once the corresponding panel is active. This is done by having the TextEntry object remoted to: tif(PanelA.active or PanelB.active or PanelC.active,"",TextEntry1).