Hi,
I’m trying to understand why I’m able to change a button’s caption even when it’s disabled.
In the first screenshot, you can see what the application looks like when it first runs. If you type something into the edit box labeled "Type Your Caption Here" and then click the Caption Change button below, the caption of the top button updates as expected.
Next, try typing a new caption, but don’t click the Caption Change button yet. Instead, click the toggle button on the far left — you’ll see that the top button becomes disabled.
Now, if you click the Caption Change button, the caption of the top (disabled) button still updates.
Is this the expected and intended behavior? If so, that’s fine — I can work with it. But if not, what would be the recommended way to handle this? The zip file attached contains the source.
Thank you!