Flags for InputRequester

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Ralf
Enthusiast
Enthusiast
Posts: 203
Joined: Fri May 30, 2003 1:29 pm
Location: Germany

Flags for InputRequester

Post by Ralf »

What do you think about following flags for inputrequester?

Code: Select all

Text$ = InputRequester(Title$, Message$, StandardText$,[Flags]) 

  #PB_Input_Password  !!!!! (i miss this!)

  #PB_Input_Alphanumeric  (a,b,c...)
  #PB_Input_Numeric          (1,2,3...)
  #PB_Input_LowerCase 
  #PB_Input_UpperCase
would it be possible to use multiline text for the second parameter Message$ ? Would be nice!
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Better a format-String

InputRequester(Title$, Message$, StandardText$,[Format$])

0=nummeric
a=chars (a,b,c)
A=chars (NummericChars)
'text' = Mask

for example:
"'Insert Time:'00':'00'"

Would open a Window like this

Code: Select all

+-------------------+
|                   |
| Insert Time:__:__ |
|                   |
+-------------------+
GreenGiant
Enthusiast
Enthusiast
Posts: 252
Joined: Fri Feb 20, 2004 5:43 pm

Post by GreenGiant »

Like the idea. I'd say use % like the FormatDate command though, just for consistency. And I think it'd be more useful in string gadgets than the input requester, then people could always make their own input requester in a few seconds anyway.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

Greengiant is a bit right, but still, using an inputrequester is simpler, and
its very easy. eg string.s=inputrequester("","hmm what was ur name :P ","")

So for both would be best :D
Post Reply