Seitenhierarchie

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.32
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download


 

On Sat, 01 Dec 2012, Dadeo deprecated this page or content because it is no longer relevant, but has been retained for historical reference.  SMS input capabilities are now supported in the StandardKeyboard control.

GUISMSInputControl (smsinput)

Displays a SMS styled keyboard and allows entering text with a numpad. Seems a little dated, have a look at virtual keyboard:

private bool GetUserInputString(ref string sString, bool password)
        {
            VirtualKeyboard keyBoard = (VirtualKeyboard)GUIWindowManager.GetWindow((int)GUIWindow.Window.WINDOW_VIRTUAL_KEYBOARD);
            keyBoard.Reset();
            keyBoard.IsSearchKeyboard = true;
            keyBoard.Text = sString;
            keyBoard.Password = password;
            keyBoard.DoModal(GetID); // show it...
            if (keyBoard.IsConfirmed) sString = keyBoard.Text;
            return keyBoard.IsConfirmed;
        }

GUISMSInputControl Tags

Element Name

Data Type

Description

font

String

Font used to draw the main Number Block

font2

String

Font used to draw the letters

textcolor

Long

Textcolor used to draw the main Number Block

textcolor2

Long

Textcolor used to draw the letters

textboxFont

String

Font used for the textbox showing result

textboxXpos

Integer

X position of textbox showing result

textboxYpos

Integer

Y position of textbox showing result

textboxWidth

Integer

Width of textbox showing result

textboxHeight

Integer

Height of textbox showing result

textboxColor

Long

Color of textbox

textboxBgColor

Long

Backgroundcolor of textbox

Inherited Tags

(Inherits from GUIControl > Control > FrameworkElement > UIElement > ....)

 

Element Name

Data Type

Description

id

Integer

The id of the control. The id will couple the skin file to the code, so if we later on want to check that a user pressed a button, the id will be required and must be unique. For controls that will never be referenced in the code it is safe to set it to "1"

description

String

An optional description of the control for your reference

type

String

button

posX

Integer

The X-position on the window for this control

posY

Integer

The Y-position on the window for this control

width

Integer

The width of this control

height

Integer

The height of this control

onleft

Integer

The control id to move the focus to when the user moves left. If not specified (or zero) MediaPortal will find the closest control in that direction to move to

onright

Integer

The control id to move the focus to when the user moves right. If not specified (or zero) MediaPortal will find the closest control in that direction to move to

onup

Integer

The control id to move the focus to when the user moves up. If not specified (or zero) MediaPortal will find the closest control in that direction to move to

ondown

Integer

The control id to move the focus to when the user moves down. If not specified (or zero) MediaPortal will find the closest control in that direction to move to

colordiffuse

Long

Allows you to mix a color & a graphics texture. E.g. If you have a graphics texture like a blue button you can mix it with a yellow color diffuse and the end result will be green. Defaults to 0xFFFFFFFF

dimColor

Integer

Color for a control when it is not focussed. Defaults to half transparent (0x60ffffff)

Notes and Examples

<control>
  <description>sms input</description>
  <type>smsinput</type>
  <id>102</id>
  <posX>100</posX>
  <posY>100</posY>
  <width>200</width>
  <height>100</height>
  <font>font13</font>
  <textcolor2>ffAAAAAA</textcolor2>
  <textboxFont>font13</textboxFont>
  <textboxXpos>80</textboxXpos>
  <textboxYpos>350</textboxYpos>
  <textboxWidth>400</textboxWidth>
  <textboxHeight>22</textboxHeight>
  <textboxColor>FFFFFF00</textboxColor>
  <textboxBgColor>ffffffff</textboxBgColor>
</control>

   

 

This page has no comments.