Options
Best way of displaying channel logo based on channel number feedback....
Hi again Guys,
I have setup a serial connection to a UK Sky HD box and am retrieving serial data including
Channel number, Channel Name, Programme Name and Programme Synopsis back to the
touchpanel.
I have then setup several popup pages in TPD4 and am first clearing all popus and then
calling for a popup if a particular channel number is true based on the serial feedback.
It is working very well but is incredibly cumbersome to programme. The idea is I want
to have a 25% visible channel icon PNG logo behind the area with the current channel
details being displayed as text which will change as you change channels.
Is the way that I am doing it the right way? I was hoping to be able to change just a single
buttons bitmap for this but cannot see a way of doing this under dynamic images as it only
offers IP or FTP address options.
Any ideas?
Thanks as always!
Mike
I have setup a serial connection to a UK Sky HD box and am retrieving serial data including
Channel number, Channel Name, Programme Name and Programme Synopsis back to the
touchpanel.
I have then setup several popup pages in TPD4 and am first clearing all popus and then
calling for a popup if a particular channel number is true based on the serial feedback.
It is working very well but is incredibly cumbersome to programme. The idea is I want
to have a 25% visible channel icon PNG logo behind the area with the current channel
details being displayed as text which will change as you change channels.
Is the way that I am doing it the right way? I was hoping to be able to change just a single
buttons bitmap for this but cannot see a way of doing this under dynamic images as it only
offers IP or FTP address options.
Any ideas?
Thanks as always!
Mike
Comments
Off the top of my head without going into huge detail, you can change the bitmap on a standard button as long as it's loaded into the panel's resources.
Or you can make it a multistate button and use the animation command to change states.
Or you can make it a multistate level and send the level, but I've never really figured out how to do this yet. Lots of people love this method however.
The way I do it is a bit different because I don't have boxes that allow RS232 connections (so I do it from the code). But I let the user make the changes, (Name and channel number). But the method for the image is virtually the same.
I load the bitmaps on the panel so flaky connections don't ruin it. I then send the command ^BMP for the bitmap see AMX-PI. Change the opacity with the ^BOP command, or just do it in the panel's design.
If you want to change the text you can use ^TXT, but because of the opacity I'd create a separate label for that so it isn't affected.
The same channel might have a different assignment over its lifetime.
I'd make a station array that's independent from channels.
Something along the lines of
ID 001 is always CNN Headline News.
Sat_Chan_Number[1]='202'. Sat_icon[1]='HLN.jpg'. Sat_Chan_Nane[1]='CNN Headline News'
That way if/when they change the channel lineup you just change the data in the table. You don't need to alter the code.
But I use a method similar to Eric's except I store my channel and image data in a CSV file on the master. The program then looks it up, and if there are any channel lineups from the provider I just update the CSV and re-load it on the master.
Whoa!, that sounds awesome!!