Apple style on/off slide button for G4
George Krietsepis
Posts: 284
Dear All,
has anyone of you ever used/made an apple style on/off slide button for G4 panels ? If so, can you please share it with us ?
Thanks,
George
has anyone of you ever used/made an apple style on/off slide button for G4 panels ? If so, can you please share it with us ?
Thanks,
George
0
Comments
In code whenever buttons are pressed, toggle state and update feedback.
ew. that made my inside hurt.
HAHAHAHAHA!
I made it with a "multi state" button using a circle icon as a text - AMX icons library. I'm just changing the icon position on each state moving it to the right ( text X offset ). So simple...
Gesture swipe right sends ^ANI-40,2,2,0 to call the 'right side state'. A swipe left sends the command ^ANI-40,1,1,0 for left slide state.
We also send a COMMAND with text 'CAM-2' on the right swipe, which the DATA_EVENT [dvTP] looks for a command with matching text of 'CAM-2'. When found we simply switch our Atlona switcher from nput to input 2.
Swiping left generates 'CAM-1' as the command back to dvTP. Works!