pgButtonHTML() and setting enabled property

pgButtonHTML() is designed to set the caption of a button.
The advantage of the function is that it can include HTML entities and tags in the caption.
However, . . .
As a general rule, set the enabled property of the button to true BEFORE calling pgButtonHTML() to avoid anomalies in how the button caption looks.
Once the caption is set, the normal actions editor enabled (true or false) should work properly.
The advantage of the function is that it can include HTML entities and tags in the caption.
However, . . .
As a general rule, set the enabled property of the button to true BEFORE calling pgButtonHTML() to avoid anomalies in how the button caption looks.
Once the caption is set, the normal actions editor enabled (true or false) should work properly.