Code: Select all
SetGadgetAttribute(myStringGadget, #PB_String_PasswordDisclosed, #False)
isDisclosed = GetGadgetAttribute(myStringGadget, #PB_String_PasswordDisclosed)
This can be used for easily creating state-of-the-art password input requesters like this
where the user can dynamically toggle disclosing/undisclosing the password by means of a checkbox.
Yes, we can code it ourselves, see e.g. this thread:
viewtopic.php?f=13&t=44714
However, I would appreciate it if this would be natively cross-platform built-in in PureBasic.