I am adding a undo button in the application toolbar of my screen,now after certain time when there is no action left to undo , this button should be de -activated so that the user cannot click it any further
How to make on screen modification of application toolbar buttons?