Page 1 of 1

Flags for InputRequester

Posted: Wed Sep 08, 2004 9:23 pm
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!

Posted: Thu Sep 09, 2004 6:55 pm
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:__:__ |
|                   |
+-------------------+

Posted: Thu Sep 09, 2004 7:58 pm
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.

Posted: Thu Sep 09, 2004 8:15 pm
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