After using Wonderware, one of the irritating problems I had with RSView32 is the fact that there is no disable button function. This is how I solved it:

Create two button objects exactly the same.

Add your logic to one of the buttons and leave the other with no underlying logic.

To simulate the disable capability, make the button with logic invisible when you need the button disabled. Stack the button with logic on top of the button with no logic.

This should give you similar action to the disable function in Wonderware.