PAC Display Button color change when it is pressed

How I change touch button color when it is pressed then original color comes when released? PAC Display does not support that? Do I need to write that in the program?

for a very basic “button” you could use the circle tool in Pac Display to draw your button.
You then use the fill color option for controller driven attributes, use the discrete option and select your desired colors for ON and OFF.

For operator driven attribute use the send discrete - fixed data: DIRECT option.

That should give you the desired effect