Inputrequester scrambled

Just starting out? Need help? Post your questions and find answers here.
Waussie
User
User
Posts: 24
Joined: Fri Nov 11, 2005 12:14 pm

Inputrequester scrambled

Post 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
Currently coding the unbelievable WFS program...
You'll know it, when it gets released...
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post 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).
~I see one problem with your reasoning: the fact is thats not a chicken~
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Inputrequester scrambled

Post 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

;)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post 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.
Post Reply