Take a look at conditional formatting. You can set up a conditional format expression such as:
And then specify a fill color that fill color specified for the buttons "Pressed" state. You script can then include this step:
Set Variable [$$ButtonPressed ; value: True ]
If you have a list view layout where this button is displayed over and over again, you may want to use a field in place of the variable.
your suggesting to look at Conditional formatting led me to a good link:
any suggestion on how I can get the button to simultaneous insert time into a field?
Set Field [YourTable::TimeFIeld ; Get ( CurrentTime ) ]