Mirage Source http://web.miragesource.net/forums/ |
|
Password Rich text http://web.miragesource.net/forums/viewtopic.php?f=201&t=2315 |
Page 5 of 6 |
Author: | Dragoons Master [ Sat Jul 21, 2007 2:53 pm ] |
Post subject: | Re: Password Rich text |
Use OnKeyPress method, but make sure you handle with backspace and delete. |
Author: | FirZen [ Sat Jul 21, 2007 3:10 pm ] |
Post subject: | Re: Password Rich text |
That would record the last key pressed, not the caption... How does that work? Enter and Backspace are handled differently? I do not have the MSDN, so I don't know how to work with OnKeyPress. Can you hint me out? FirZen |
Author: | Dragoons Master [ Sat Jul 21, 2007 3:13 pm ] |
Post subject: | Re: Password Rich text |
OnKeyPress gives you the ascii character of the letter, just add that to the variable and change the caption to len(variable) times * |
Author: | FirZen [ Sat Jul 21, 2007 3:24 pm ] |
Post subject: | Re: Password Rich text |
I see. Can Len() be used as a var or do I need to store it as a var first? No problems with Backspace or do I need extra attention on that one? As you can see, never coded in VB. FirZen |
Author: | Dragoons Master [ Sat Jul 21, 2007 3:27 pm ] |
Post subject: | Re: Password Rich text |
Len() is a function, like in any other language, it return the value, so yes, it can be used as a variable, no need to store. And for the back space, you'll need to make an If statement and remove the last letter. Use Mid and Len functions together, if you don't know this function, google it ^^ |
Author: | Lea [ Sat Jul 21, 2007 3:39 pm ] |
Post subject: | Re: Password Rich text |
Go into the form view. Click once on the text box. Scroll down the Properties box and find "Password Char" Enter "*" as the value Game Over man. |
Author: | FirZen [ Sat Jul 21, 2007 3:51 pm ] |
Post subject: | Re: Password Rich text |
Its a Rich Text box. FirZen |
Author: | Lea [ Sat Jul 21, 2007 4:43 pm ] |
Post subject: | Re: Password Rich text |
You shouldn't need a rich text box for this, or find a rich text box control on PSC that supports it. |
Author: | Robin [ Sat Jul 21, 2007 5:06 pm ] |
Post subject: | Re: Password Rich text |
He wants a transparent textbox so the GUI shows through. I don't know what wrong with just printing the text or using a label and replacing the string with the same amount of *'s. |
Author: | FirZen [ Sat Jul 21, 2007 5:08 pm ] |
Post subject: | Re: Password Rich text |
you mean, showing the actual password? Dunno... |
Author: | Robin [ Sat Jul 21, 2007 5:09 pm ] |
Post subject: | Re: Password Rich text |
Robin wrote: replacing the string with the same amount of *'s. No. I mean creating your own password character replacer |
Author: | FirZen [ Sat Jul 21, 2007 5:20 pm ] |
Post subject: | Re: Password Rich text |
Won't that mess with the info sending? No sig for 3 posts. You're lucky. |
Author: | Robin [ Sat Jul 21, 2007 6:30 pm ] |
Post subject: | Re: Password Rich text |
-sigh- You're going to store the password somewhere else, and then fill the textbox with *'s. |
Author: | FirZen [ Sat Jul 21, 2007 6:36 pm ] |
Post subject: | Re: Password Rich text |
yes I had that idea... Still working on it |
Author: | Robin [ Sat Jul 21, 2007 6:38 pm ] |
Post subject: | Re: Password Rich text |
William wrote: Why do you want to use a RTB? To make it transparent? If so, thats the only reason. And you will have to program the password chars, store what you type in a variable and show the * from the Len() of the text etc.. Actually, William had that idea when you were still fumbling around with controls. |
Author: | FirZen [ Sat Jul 21, 2007 7:19 pm ] |
Post subject: | Re: Password Rich text |
its not the first time I code. Just the first time I do it in VB. Already did some stuff with Pascal, GML (that's not even a coding language, is it?), C-Script... C++ I think. But that was waaaaay too back. So, I had that idea in my mind, just din't know how to put it into code. I was hoping someone came up with the same idea, but with better coding skills. Eh, screw this. Nobody can play my game surrounded by people. Period. |
Author: | Matt [ Sat Jul 21, 2007 7:28 pm ] |
Post subject: | Re: Password Rich text |
Um, if you use the RTB control, in the properties, isn't there a "Password Character" part where you set what key will show instead of what you type? O_o |
Author: | FirZen [ Sat Jul 21, 2007 7:30 pm ] |
Post subject: | Re: Password Rich text |
SP6? |
Author: | Matt [ Sat Jul 21, 2007 7:31 pm ] |
Post subject: | Re: Password Rich text |
SP6? Huh..? |
Author: | FirZen [ Sat Jul 21, 2007 7:42 pm ] |
Post subject: | Re: Password Rich text |
Visual Basic Service Pack 6 Maybe the RTB has a password field in SP6. |
Author: | Robin [ Sat Jul 21, 2007 7:57 pm ] |
Post subject: | Re: Password Rich text |
Matt, that's only a normal Textbox. |
Author: | Matt [ Sat Jul 21, 2007 8:28 pm ] |
Post subject: | Re: Password Rich text |
Oh. I don't have VB installed, or I'd have just checked myself. Doesn't Rez have this in his Zombie game? |
Author: | Robin [ Sat Jul 21, 2007 9:16 pm ] |
Post subject: | Re: Password Rich text |
He might use labels. |
Author: | Matt [ Sat Jul 21, 2007 10:16 pm ] |
Post subject: | Re: Password Rich text |
Robin wrote: He might use labels. Said he used the transparent RTB with it. |
Author: | Robin [ Sat Jul 21, 2007 10:39 pm ] |
Post subject: | Re: Password Rich text |
Hmm. |
Page 5 of 6 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |