public InputWindow(int promptId, String title, String message, String defaultValue, bool canCancel) : base(promptId, title, message) { _inputControl = CreateInputControl(defaultValue); InputControl.AddChild(_inputControl); CreateButton("Ok", true); if (canCancel) { CreateButton("Cancel", false); } _inputControl.GrabKeyboardFocus(); }