Seitenhierarchie

  Wiki Navigation

    Loading...


 Recently Updated


 Latest Releases

 MediaPortal 1.32
            Releasenews | Download
 MediaPortal 2.5
            Releasenews | Download


Purpose

  • Required:  No
  • Type of Change:  Bug Fix

Various labels need support for optional maximum text length independent of the actual gfx size to prevent overlapping

Description of Change

A new textpadding property has been added to the following controls:

  • Button
  • Button3Part - and textpadding2 
  • CheckButton
  • MenuButton
  • SelectButton - and textpadding2
  • SpinButton
  • Togglebutton

Padding provides "space" inside the label text itself.. So it actually shortens the text preventing overlaps with graphics that follow on the right of a label or list.

Note: Textpadding for:

  • ListControl - and textpadding2, textpadding3
  • Playlistcontrol - and textpadding2, textpadding3

has been deferred to a later release to avoid skin changes in 1.3.0 RC/Final.

Additional Information and References

Mantis Issue:

4118

Related xml(s):

references.xml or any xml that uses these control types

Windows IDs:

 

Related GUI control:

Button, Button3Part, CheckButton,MenuButton, SelectButton, SpinButton, ToggleButton, ListControl, PlaylistControl

Author:

Scythe42

Date added:

Sun, 27 Jan 2013

XML/Code Samples

The following example from Titan Skin shows the use of textpadding within a Style definition:

<style Name="SettingsCheckButton">
<width>385</width>
<height>58</height>
<textXOff>33</textXOff>
<textYOff>11</textYOff>
<textpadding>46</textpadding>
<textureFocus>settings_button_focus.png</textureFocus>
<textureNoFocus>settings_button_nofocus.png</textureNoFocus>
<scrollStartDelaySec>0</scrollStartDelaySec>
<textcolor>ff000000</textcolor>
<textcolorNoFocus>ffffffff</textcolorNoFocus>
<markXOff>23</markXOff>
<markYOff>10</markYOff>
</style>

Screenshots

 

 

   

 

This page has no comments.