From c04dcc2e7d834218ef2d4194331e383402495ae1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 10 Apr 2024 20:07:22 +0200 Subject: Adding upstream version 2:20.4+dfsg. Signed-off-by: Daniel Baumann --- xbmc/guilib/GUIEditControl.dox | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 xbmc/guilib/GUIEditControl.dox (limited to 'xbmc/guilib/GUIEditControl.dox') diff --git a/xbmc/guilib/GUIEditControl.dox b/xbmc/guilib/GUIEditControl.dox new file mode 100644 index 0000000..9cad4d0 --- /dev/null +++ b/xbmc/guilib/GUIEditControl.dox @@ -0,0 +1,60 @@ +/*! + +\page skin_Edit_control Edit control +\brief **Used as an input control for the osd keyboard and other input fields.** + +\tableofcontents + +The edit control allows a user to input text in Kodi. You can choose the font, +size, colour, location and header of the text to be displayed. + +-------------------------------------------------------------------------------- +\section skin_Edit_control_sect1 Example + +~~~~~~~~~~~~~ + + My First edit control + 80 + 60 + 250 + true + center + + Enter search string + font14 + 10 + FFB2D4F5 + FF000000 + FFFFFFFF + button-focus.png + button-nofocus.png + no + +~~~~~~~~~~~~~ + +-------------------------------------------------------------------------------- +\section skin_Edit_control_sect2 Available tags + +In addition to the [Default Control Tags](http://kodi.wiki/view/Default_Control_Tags) +the following tags are available. Note that each tag is **lower case** only. This is +important, as `xml` tags are case-sensitive. + +| Tag | Description | +|--------------:|:--------------------------------------------------------------| +| aligny | Can be top or center. Aligns the text within its given control ``. Defaults to top +| label | Specifies the header text which should be shown. You should specify an entry from the **strings.po** here (either the Kodi strings.po or your skin's strings.po file), however you may also hardcode a piece of text also if you wish, though of course it will not be localized. You can use the full [label formatting syntax](http://kodi.wiki/view/Label_Formatting) and [you may also specify more than one piece of information here by using the $INFO and $LOCALIZE formats.strings.po](http://kodi.wiki/view/Label_Parsing)) +| hinttext | Specifies the text which should be displayed in the edit label control, until the user enters some text. It can be used to provide a clue as to what a user should enter in this control. +| font | Specifies the font to use from the **font.xml** file. +| textcolor | Specifies the color the text should be, in hex **AARRGGBB** format, or a name from the [colour theme](http://kodi.wiki/view/Colour_Themes). +| textwidth | Will truncate any text that's too long. + + +-------------------------------------------------------------------------------- +\section skin_Edit_control_sect3 See also + +#### Development: + +- [Add-on development](http://kodi.wiki/view/Add-on_development) +- [Skinning](http://kodi.wiki/view/Skinning) + +*/ -- cgit v1.2.3