Change TP Palette dynamically in code
davidg
Posts: 16
Hi All,
Does anyone know of a command that exists to select a TP palette in code (G4 and G5 panels)? I know you can switch and select the active palette through TPD directly but I'd like to dynamically set the active palette in code. I've searched through AMX-PI and can't find a command for this so I'm assuming one doesn't exist. Thought I'd check though. Seems like something that would be useful to have...
Thanks!
Does anyone know of a command that exists to select a TP palette in code (G4 and G5 panels)? I know you can switch and select the active palette through TPD directly but I'd like to dynamically set the active palette in code. I've searched through AMX-PI and can't find a command for this so I'm assuming one doesn't exist. Thought I'd check though. Seems like something that would be useful to have...
Thanks!
0
Comments
http://www.amxforums.com/forum/technical-forum/amx-user-interfaces/4788-touchpanel-themes
We pack 24 radically different themes in every panel, user select-able or by preset user preferences. To ship an entire panel with hundreds of pages/pops (every button, background, page, and pop) from one theme to another takes only about 5 seconds on an old G4 and TPControl, 2 on an XG4. You don't have to do it by palette. We just riff through a lookup table with the addresses and send them by range when possible, and singly when not.
Here's the same page, same panel, seconds apart.
Well, I see the first one is from a different build batch, but you get the idea.
Not a huge deal but I just figured since I already have the palettes set up, why not make use of them, you know?
Here's a snippet for an example: