CustomAttributes to add a update button

I want to add a update button to many of our components to let them
refresh data coming from a server app, did all the drawing stuff and mouse button event
stuff to detect the button click but I don’t know how to refresh the component so the user gets the button down feedback.
I have searched for a refresh , invalidate , or Canvas routine to do it

Basically we have detected a mouse button click and need to draw the button in a “down” state
to then detect the “mouse up” and redraw in a “up” state

Any help ? Or is there any snippet on this, I saw many custom components doing it

Thanks
gd