Seitenhierarchie

  Wiki Navigation

    Loading...


 Recently Updated


 Download 

 MediaPortal 1
            Releasenews | Download
 MediaPortal 2
            Releasenews | Download



Question

How do I use a virtual keyboard?

Answer

Simply use the following code:

VirtualKeyboard keyboard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD);
if (null == keyboard)
  return;

keyboard.Reset();
keyboard.Text = strLine;
keyboard.DoModal(GetID);
if (keyboard.IsConfirmed)
{
  // Do something here. The typed value is stored in "keyboard.Text"
}

   

 

This page has no comments.