Browse Source

Added initialValue:String="" param to mojox.RequestString.

Mark Sibly 8 years ago
parent
commit
040c1e9dcb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/mojox/requesters.monkey2

+ 2 - 2
modules/mojox/requesters.monkey2

@@ -42,12 +42,12 @@ This function must not be called from the main fiber.
 
 
 #end
-Function RequestString:String( message:String="Enter a string:",title:String="String requester" )
+Function RequestString:String( message:String="Enter a string:",title:String="String requester",initialValue:String="" )
 	Assert( Fiber.Current()<>Fiber.Main(),"RequestString cannot be used from the main fiber" )
 
 	Local future:=New Future<String>
 	
-	Local textField:=New TextField
+	Local textField:=New TextField( initialValue )
 	
 	Local label:=New Label( message )
 	label.AddView( textField )