Seitenhierarchie

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.32
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download


Purpose

  • Required:  Yes
  • Type of Change:  Feature

Implement new checkbutton control (1.2.0)

Description of Change

The Checkbutton control was introduced in 1.2.0 (see Checkbutton Control Created) as a replacement for the obsolete togglebutton control. 

In 1.3.0 alpha checkbutton has been implemented in the Settings > TV window (and will be implemented in many Settings windows in 1.3.0 beta).

Thus skins should add a default checkbutton control to their references.xml. See Default skin references.xml for example,

Skins should also as well as add the new buttons (ID 40 and 41) to settings_tv.xml

There are still instances in the MediaPortal core where a togglebutton control is used. 

Note: The togglebutton control is scheduled to be completely removed from MediaPortal in 1.4.0.

Additional Information and References

Mantis Issue:

3460

Related xml(s):

references.xml, settings_tv.xml

Windows IDs:

700

Related GUI control:

checkbutton

Author:

Dadeo

Date added:

Fri, 29 Jun 2012

XML/Code Samples

<control>
<description>Use button colors for TVGuide</description>
<type>checkbutton</type>
<id>40</id>
<label>1246</label>
<width>450</width>
<selected>#(skin.hassetting('#skin.tvguide.usecolorsforbuttons'))</selected>
<onclick>#(skin.togglesetting('#skin.tvguide.usecolorsforbuttons'))</onclick>
</control>

<control>
<description>Use guide colors for genre</description>
<type>checkbutton</type>
<id>41</id>
<label>1247</label>
<width>450</width>
<selected>#(skin.hassetting('#skin.tvguide.usecolorsforgenre'))</selected>
<onclick>#(skin.togglesetting('#skin.tvguide.usecolorsforgenre'))</onclick>
</control>

Screenshots

 

 

   

 

This page has no comments.