How do I hide characters with asterisks? [*]

BlitzPlus Forums/BlitzPlus Beginners Area/How do I hide characters with asterisks? [*]

modmcdl(Posted 2015) [#1]
Hello there!

I am trying to create a program using BlitzPlus, and I was wondering how I could hide characters?

For example, if tey were to input a password of sorts [ex: 12345], is there any possible way for when they type it out, it appears as [*****] instead? Or is this not possible with BlitzPlus?

Thanks in advance.


Kryzon(Posted 2015) [#2]
Hello.
If you look in the documentation, the 'style' parameter of CreateTextField can be set to 'zero' for a regular text field or '1' for a password-masking textfield.

http://www.blitzbasic.com/bpdocs/command.php?name=CreateTextField&ref=gui_cat

So you need to create the textfield gadget with the 'style' parameter set as '1'.