-
Robert Carlson
- PowerBuilder
- Saturday, 16 May 2026 03:03 PM UTC
Hello All! I am having an issue with the pbm_enable event on a command button not firing when themes are active. Is this expected behavior? I searched the site and can't find anything about.
We have a user security system set up in our software that will prevent certain buttons on different windows from being enabled depending on what the user has access too. This logic relies on the pbm_enable event to capture when the enable/disable state might be changing, and stop the button from being enabled if it needs to. After adding and enabling themes in our software, this behavior has stopped working. I discovered that the pbm_enable event does not fire anymore after themes are enabled.
I am wondering if this is to be expected, and if not, can it be fixed? Otherwise I will have to rewrite a lot of logic in a lot of different windows to get this working as it was before.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.