private bool GetUserInputString(ref string sString) { VirtualKeyboard keyBoard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)Window.WINDOW_VIRTUAL_KEYBOARD); if (null == keyBoard) { return(false); } keyBoard.IsSearchKeyboard = true; keyBoard.Reset(); keyBoard.Text = sString; keyBoard.DoModal(m_dwParentWindowID); // show it... if (keyBoard.IsConfirmed) { sString = keyBoard.Text; } return(keyBoard.IsConfirmed); }
public static bool GetKeyboard(ref string strLine, int windowId) { VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)Window.WINDOW_VIRTUAL_KEYBOARD); if (null == keyboard) { return(false); } keyboard.Reset(); keyboard.Text = strLine; keyboard.DoModal(windowId); if (keyboard.IsConfirmed) { strLine = keyboard.Text; return(true); } return(false); }