VirtualKeyboard text disappears (1 Viewer)

JDWestoby

MP Donator
  • Premium Supporter
  • April 9, 2008
    265
    32
    67
    Poltimore, Devon
    Home Country
    United Kingdom United Kingdom
    Using MP 1.3 RC1 using the [very] basic skin.

    Found out that the virtual keyboard has changed since 1.2.3 and I now have to do -
    keyboard.Label = Initial
    keyboard.SetLabelAsInitialText(True)
    But upon entering ANY key the text disappears!

    This is true even if just moving using the cursor keys.

    I have done a search but nothing mentions this as an existing issue, have I missed something.

    (I was trying to make 1.3 compatible version of my Clock/Internet Radio/HomeSeer and Automation plugins. Which all use this to configure themselves inside of MP proper.)

    So, what the deuce have I missed please....?
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    If you prefer old behaviour, use:
    Code:
    keyboard.SetLabelAsInitialText(false); // makes sure, it is NOT using any predefined text from skin control definitions, which do exist in new default skins
    keyboard.Text = yourpresettext;
     

    JDWestoby

    MP Donator
  • Premium Supporter
  • April 9, 2008
    265
    32
    67
    Poltimore, Devon
    Home Country
    United Kingdom United Kingdom
    HUGE thanks Guzzi (biker?), I'll try that.

    I did do a search before asking (honest!) but I couldn't find anything except a few examples - my old 1.2.3 code didn't work at all, just came up blank.

    See, this is a nice friendly forum, people answer questions without being condescending - it's wonderful. If it were like SOME forums I've been on I'd drop MP like a brick.

    Thnak you again.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    You're welcome. "Fortunately" I just recently got reported exactly the same problem and had to look for a solution ;-)
    (And no, unfortunately not a biker anymore since quite a long time ... maybe I'll restart next summer ...)
     

    Users who are viewing this thread

    Top Bottom