Page 1 of 1
Inputrequester scrambled
Posted: Wed Sep 20, 2006 9:31 am
by Waussie
Is there a way to scramble the text when using inputrequester?
So the entered textFro example "test" appears something like this?
****
Thanks for all solutions
Posted: Wed Sep 20, 2006 9:46 am
by Killswitch
I'm not sure about doing that for an input requester, but you can do it with a stringgadget:
Code: Select all
; Shows possible flags of StringGadget in action...
If OpenWindow(0, 0, 0, 322, 205, "StringGadget Flags", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) And CreateGadgetList(WindowID(0))
StringGadget(0, 8, 10, 306, 20, "Normal StringGadget...")
StringGadget(1, 8, 35, 306, 20, "1234567", #PB_String_Numeric)
StringGadget(2, 8, 60, 306, 20, "Readonly StringGadget", #PB_String_ReadOnly)
StringGadget(3, 8, 85, 306, 20, "lowercase...", #PB_String_LowerCase)
StringGadget(4, 8, 110, 306, 20, "uppercase...", #PB_String_UpperCase)
StringGadget(5, 8, 140, 306, 20, "Borderless StringGadget", #PB_String_BorderLess)
StringGadget(6, 8, 170, 306, 20, "Password", #PB_String_Password)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
(From the manual)
All you'd need to do is make a requester-like window (with proper event handling).
Re: Inputrequester scrambled
Posted: Wed Sep 20, 2006 10:36 am
by PB
> Is there a way to scramble the text when using inputrequester?
Yes, use the Search function here, and you'll see my tip from March 2006:
http://www.purebasic.fr/english/viewtopic.php?p=6168

Posted: Wed Sep 20, 2006 11:44 am
by Derek
Remember, its not always clear what to search for?
Enter 'scramble searchrequester' into the search engine and you only get this thread.
Your inputrequester routine is good though.