Page 1 of 1

Extend Get/SetGadgetAttribute() for StringGadgets

Posted: Sat Mar 23, 2019 6:57 am
by Little John
For StringGadgets for password input, making something like this possible

Code: Select all

SetGadgetAttribute(myStringGadget, #PB_String_PasswordDisclosed, #False)
isDisclosed = GetGadgetAttribute(myStringGadget, #PB_String_PasswordDisclosed)
would be useful.


This can be used for easily creating state-of-the-art password input requesters like this

Image

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.

Re: Extend Get/SetGadgetAttribute() for StringGadgets

Posted: Thu Apr 18, 2019 11:09 am
by RSBasic
+1

Re: Extend Get/SetGadgetAttribute() for StringGadgets

Posted: Thu Apr 18, 2019 7:02 pm
by davido
+1