Dear Sir,
In order to get the described functionality, you have to proceed with few steps:
1) create the PmData object in your application and in this object create a variable (Boolean type can be used for this purpose)
2) create a PmPanel object and open it for editing in panel editor in order to add a new graphic item from the library - two state button
3) once the two state button exists double click it to edit its configuration - go to button page and use the dynamic binding button in the "Button state" row
4) define a PP binding to the existing variable in PmData object
5) compile the application panels and run the app
6) you can check the correct functionality by opening the info system: PmRoot/Data - vars page (don't forget to activate the auto refresh)
I have prepared a very simple example (attached)