Extend Get/SetGadgetAttribute() for StringGadgets

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Little John
Addict
Addict
Posts: 4527
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Extend Get/SetGadgetAttribute() for StringGadgets

Post 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.
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: Extend Get/SetGadgetAttribute() for StringGadgets

Post by RSBasic »

+1
Image
Image
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Extend Get/SetGadgetAttribute() for StringGadgets

Post by davido »

+1
DE AA EB
Post Reply