How do I create a OSD keyboard? (1 Viewer)

hobbes487

Portal Pro
August 25, 2005
208
3
Home Country
United States of America United States of America
Title says it all. I can't find any explaination about how to implement a OSD keyboard. Can someone give a simple example of the skin and C# parts.

Thanks
 

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
This code will show it:

Code:
VirtualSearchKeyboard keyBoard = (VirtualSearchKeyboard)GUIWindowManager.GetWindow(1001);
keyBoard.Text = String.Empty;
keyBoard.Reset();
keyBoard.DoModal(activeWindow); // show it...

// keyBoard.Text will give you the input once the user has closed the keyboard

If you want to be notified everytime a key is pressed on the keyboard, you can subscribe to the events like so:

Code:
keyBoard.TextChanged += new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler

Sam
 

mzemina

Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,065
    14
    Tulsa, OK
    Home Country
    United States of America United States of America
    I believe Vanessa is willing (at least she was wanting to make some changes back a few weeks ago - I believe to the OSD of the keyboard) to make graphic changes. I maybe talking incorrectly but Vanessa will correct if that is the case.

    Mike
     

    hobbes487

    Portal Pro
    August 25, 2005
    208
    3
    Home Country
    United States of America United States of America
    This code will show it:

    Code:
    VirtualSearchKeyboard keyBoard = (VirtualSearchKeyboard)GUIWindowManager.GetWindow(1001);
    keyBoard.Text = String.Empty;
    keyBoard.Reset();
    keyBoard.DoModal(activeWindow); // show it...
    
    // keyBoard.Text will give you the input once the user has closed the keyboard

    If you want to be notified everytime a key is pressed on the keyboard, you can subscribe to the events like so:

    Code:
    keyBoard.TextChanged += new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler

    Sam


    thanks. what is activeWindow in your example? also, do I need to add somehting to the skin file?

    EDIT: i figured it out. thanks!
     

    CyberDannen

    Portal Member
    May 31, 2006
    46
    1
    Berlin
    Home Country
    Germany Germany
    Hello,
    I have one more Question...


    where kann I add the Prozess for..(keyboard_textChanged)?

    keyBoard.TextChanged += new MediaPortal.Dialogs.VirtualSearchKeyboard.TextChangedEventHandler(keyboard_TextChanged); // add the event handler

    Examble:
    public void keyboard_Textchanged() ?

    thx
     

    Users who are viewing this thread


    Write your reply...

    Similar threads

    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    This thread is intended for skin authors, plus those advanced users who have learnt skin programming and have customised the skins...
    Replies
    1
    Views
    1K
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for any entry in your music database: Artist, Album, Title, Lyrics... I'm afraid there is no such plugin :unsure:
    For music you may use --> https://www.team-mediaportal.de/erweiterungen/musik/global-search With GlobalSearch you can search for...
    HI, I'm new to MediaPortal and have a question about searching for data. I have an extensive collection of music, films, and TV...
    Replies
    1
    Views
    1K
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I don't have a fundamentally different solution for you, but with this approach you should achieve your goal. ;) The idea of first setting the current genre colors with the defines is certainly a good one, as...
    Well, I had already recognized your problem, but I still wanted to point out the basic connections once again. Unfortunately, I...
    Good afternoon, Does anyone know a way of referencing the genre colour of the currently selected item in the TV Guide. We are all...
    Replies
    4
    Views
    727
    That screen is generated by the file "MyVideo.xml", but it uses various other files too. When the list on the right is a list of episodes, the area in the middle contains the programme information for the episode that has the focus. In your screen shot, the list on the right is a list of folders. You could fill the area in the...
    That screen is generated by the file "MyVideo.xml", but it uses various other files too. When the list on the right is a list of...
    Can someone please assist me in the file name and location of which XML controls this screen. I want to create an additional box...
    Replies
    1
    Views
    250
    Attached are new TV service logs with your latest DLL. I see lots of EPG events and none of the messages from earlier. Congratulations!
    Attached are new TV service logs with your latest DLL. I see lots of EPG events and none of the messages from earlier. Congratulations!
    I have some weird behavior trying to operate the MP GUI in a new installation of MP 1.36 under Windows 11 Pro. Some of the remote...
    Replies
    33
    Views
    3K
    Top Bottom