Touchpanel Themes
staticattic
Posts: 200
I was wondering, if custom designed themes are used for TP's, are provisions written into the code to allow the user to switch between themes?
0
Comments
What do you mean by 'provisions written into the code'? If you write the code, then yes.
Paul
The easiest way I could see to accomplish this, from a programming and design perspective, would be to use TPD4 to program all of the page flips, show pop-ups, and hide pop-ups. Another way that I was thinking it could be handled purely through the code, would be to turn on page tracking and create a buffer for the TP. Name all of the pages or pop-ups something like Retro-DVD, SciFi-DVD, Art_Deco-DVD and then do string manipulation from the buffer to do the page flips.
I am new to custom designed themed touch panels. Having multiple themes on a single TP might not even be something that is routinely done. What I am trying to ask, first, are multiple themed TP's a common thing, and second, if multi themed TP's are common, what is the best way to control the page flips and pop-ups?
Paul
IRT themed TP's, that is new ground for me. In the past, I had always used flat style buttons, but had always loaded several different backgrounds on the TP's that the user could change via a settings button. All they could do really was change the color of the screen or the bitmap, everything else stayed the same. I was wondering if there was an easy way to do that with themed TP's as well. From the responses here and from deeper thought about it, it appears the correct answer would be: it's do-able, however it will take a lot of work to make everything work seamlessly, and in the end is it really worth it?
Kind of slightly changing the subject, themed TP's can get quite pricey. Some of the ones I was looking at ranged from $300 to $599. That being the case, buying or paying some one to design several themes for one TP could rapidly get expensive. Cost factor alone would probably change someone's mind about having multiple themes on one TP.
The first, and what I think you've already described, is just based on page flip names. As long as the entire functionality is the same, and the only different thing you have is graphics, then you just name the pages different things.
So you have the following pages
Retro Main Page
Retro Title Page
SciFi Main Page
SciFi Title Page
Enviro Main Page
Enviro Title Page
And the following popup pages
Retro DVD Controls
Retro TV Controls
SciFi DVD Controls
SciFi TV Controls
Enviro DVD Controls
Enviro TV Controls.
Then in your code, you just have a couple of variables and base your page flips on them.
If you wanted to get fancy, you could also make nActiveTheme an array, and allow different touchpanels to have different themes, so the kids can have a super space theme of some sort in the entertainment room but dad can have classy wood tones in his study.
I dumbed down the code a lot to make the example, obviously you'd use a source array and your theme change probably wouldn't occur on the Main page, but you get the point.
Alternately, if you're just looking to change things up a bit, just do all of your popup pages with transparent background and pick some buttons that look good universally, and then use the ^BMF command to change the background. I like doing my popup pages with partially transparent backgrounds so you don't really focus on the background, but its there. I haven't allowed users to change backgrounds before like this, but I do have a G4 panel I designed that does all the flips in Panel Preview that allows users to change the background, so that my sales guys can show clients different backgrounds on the same panel.
You can make it as easy or as difficult as you want. Just remember that if you do have 3 different themes on the panel, every time you change text or a button number, you have to do it on 3 different pages.
J