[mythtv-users] Re: Myxer Update - This time its a BIG one! (and probably the last one for a while....)

Scott catfather at donpoo.net
Tue Jun 21 12:19:07 UTC 2005

On Jun 21, 2005, at 7:46 AM, Stef Coene wrote:
> The main problem is that's is allmost impossible to do this with  
> php (or any
> other language).  You can put images together (like the background  
> and the
> watermark), but adding text and other stuff so it looks like a  
> "real" mythtv
> menu is not possible.  Or there must be a way to launch  
> mythfrontend and take
> a screenshot from a webpage.....

Rather than trying to build a composite image from a background,  
graphic elements, and text, could CSS2 positioning be used instead?  
For example, you would set the background of a <div  
class="background"> element to be the background of the MythTV  
screen. Next you would use a php function to construct a MythTV  
button but putting another graphic into a <div class="button"> with  
text contained in that <div> and use absolute positioning for the  
whole <div class="button"> element to place it at the appropriate  
location location on the <div class="background">.

Obviously this wouldn't be fully cross browser compatible but it  
would work with Mozilla and maybe even IE6.

You might also need to keep some meta data about the elements you're  
laying out. For example, there maybe a meta data based rule that say  
only 5 <div class="buttons"> from the theme XYZ can fit on a <div  
class="background"> because of the button height but from the theme  
ABC you could position up to 6 <div class="buttons">.

Scott <catfather at donpoo.net>
AIM: BlueCame1

More information about the mythtv-users mailing list