Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / BlueGUI - Here is example code of masked password entry into an edit box

Author
Message
Bored of the Rings
User Banned
Posted: 18th Feb 2014 10:28 Edited at: 19th Feb 2014 08:54
I am currently working on an application to organise my programming functions for various languages and wanted to share some example code for anyone who wants to know how to program a password entry box using "*" to mask the characters in BLUEGUI.

I created 2 edit boxes, a visible password edit box and a hidden edit box to store the actual keys that were pressed. The visible box displays the "*" characters as a mask.

An array was used to store the key presses:
global dim keylist(0) as string

The code below is with a do...loop block along with the getevent command.



Then when the user presses the 'Login' button, I used the following code to validate the string in the global array keylist().



[EDIT] - after all that and searching the forums again, I found the SetPassWordOnly <gadget handle>, bool command with an updated version of BlueGUI. Oh well, I learnt something.

Login to post a reply

Server time is: 2026-07-06 21:42:56
Your offset time is: 2026-07-06 21:42:56