LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the input in string control appear as stars as a password input?

How to make the input in string control appear as stars as a password input?
0 Kudos
Message 1 of 3
(2,924 Views)
CVI ships with a function panel that includes functions for a password control (...\cvi\tollslib\custctrl\pwctrl.fp) and a sample project that shows how to use it (...\cvi\samplesuserint\custctrl\password\pwsample.prj).
You need to add pwctrl.fp to your project, then you can create a password control in one of two ways.
1. You can create a password control in your code using PasswordCtrl_Create(), specifying the position of the control on the panel.
2. You can use the UI editor to place a string control on your panel and then use PasswordCtrl_ConvertFromString() to use that control to enter a password and mask the characters as they're typed.
I like PasswordCtrl_ConvertFromString() because it makes it easier to design your panel graphically.
0 Kudos
Message 2 of 3
(2,924 Views)
Sorry: I mistyped the path to pwctrl.fp: it's in ...\cvi\toolslib\custctrl\pwctrl.fp (not tollslib).
0 Kudos
Message 3 of 3
(2,924 Views)