[mythtv] MythUIProgressBar width/height problem?

Stuart Morgan stuart at tase.co.uk
Thu Sep 24 23:56:53 UTC 2009

On Thursday 24 Sep 2009 23:53:43 Nigel Pearson wrote:
> Trying to add PlaybackBox's usedbar in a theme:

> gives me a bar in the specified position,
> but it is always about 500x60 in size.
> The one in base.xml is <area>0,0,10,10</area>,
> so I can't see this as an inheritance thing.
> Any suggestions before I start dissecting code?

The images which make up the widget are 536x38, they aren't automatically 
stretched when you resize the widget unless you added an 
<area>0,0,100%,100%</area> to those imagetypes. The reason why they aren't 
auto scaled using percentage values is that the results would be pretty 
horrific, rounded images don't stretch well.

You have two choices, either create new images or override the sizes in your 
new definition. e.g.

    <progressbar name="baseprogressbar">
        <imagetype name="background">
            <area>0,0,100%,100%</area> <!-- or 375,45 -->
        <imagetype name="progressimage">
            <area>0,0,100%,100%</area> <!-- or 375,45 -->

I should probably modify the progress bar to accept shapes in addition to 
images but I don't have the time.
Stuart Morgan

More information about the mythtv-dev mailing list