Metodo QsUIShowInputBox(String, String, ListString, String, Boolean, InputBoxValidatingHandler, Int32, Int32, Int32, Int32)
|
Displays a prompt in a dialog box, waits for the user to input text or click a button.
Namespace: QsUIAssembly: QsUI (in QsUI.dll) Versione: 27.1.0
Sintassi public static InputBoxResult ShowInputBox(
string prompt,
string title,
List<string> defaultResponse,
string selectedText,
bool disableEdit,
InputBoxValidatingHandler validator,
int xpos,
int ypos,
int width,
int height
)
Public Shared Function ShowInputBox (
prompt As String,
title As String,
defaultResponse As List(Of String),
selectedText As String,
disableEdit As Boolean,
validator As InputBoxValidatingHandler,
xpos As Integer,
ypos As Integer,
width As Integer,
height As Integer
) As InputBoxResult
public:
static InputBoxResult^ ShowInputBox(
String^ prompt,
String^ title,
List<String^>^ defaultResponse,
String^ selectedText,
bool disableEdit,
InputBoxValidatingHandler^ validator,
int xpos,
int ypos,
int width,
int height
)
static member ShowInputBox :
prompt : string *
title : string *
defaultResponse : List<string> *
selectedText : string *
disableEdit : bool *
validator : InputBoxValidatingHandler *
xpos : int *
ypos : int *
width : int *
height : int -> InputBoxResult
Parametri
- prompt String
- String expression displayed as the message in the dialog box
- title String
- String expression displayed in the title bar of the dialog box
- defaultResponse ListString
- String expression displayed in the text box as the default response
- selectedText String
-
- disableEdit Boolean
- Boolean used to express if the user should be able to write custom values (true) or not (false).
- validator InputBoxValidatingHandler
- Delegate used to validate the text
- xpos Int32
- Numeric expression that specifies the distance of the left edge of the dialog box from the left edge of the screen.
- ypos Int32
- Numeric expression that specifies the distance of the upper edge of the dialog box from the top of the screen
- width Int32
- Width of the form
- height Int32
- Height of the form
Valore di ritorno
InputBoxResultAn InputBoxResult object with the Text and the OK property set to true when OK was clicked.
Vedi anche