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
Inputrequester scrambled
Inputrequester scrambled
Currently coding the unbelievable WFS program...
You'll know it, when it gets released...
You'll know it, when it gets released...
-
Killswitch
- Enthusiast

- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm
I'm not sure about doing that for an input requester, but you can do it with a stringgadget:
(From the manual)
All you'd need to do is make a requester-like window (with proper event handling).
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
All you'd need to do is make a requester-like window (with proper event handling).
~I see one problem with your reasoning: the fact is thats not a chicken~
Re: Inputrequester scrambled
> 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

Yes, use the Search function here, and you'll see my tip from March 2006:
http://www.purebasic.fr/english/viewtopic.php?p=6168
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.


