In SmartClient 8, I am trying to dynamically modify the tooltip text for a ButtonItem. It is set originally in the prompt property of the ButtonItem constructor. Then at some point, I change the title and the prompt for that item. The title changes but hovering over the button still gives the original prompt string. So far, this is what I've found:
Say the ButtonItem is called "isc_ButtonItem_1.
My code is something like this:
This causes the title of the button to change but the hoverover text is still the same. Checking the prompt property of the ButtonItem shows that it has been changed.
Looking at the page with the Developer Console, it appears that when you hover over a ButtonItem, you are actually hovering over a ButtonItem_button. So in my example, I see the object being identified as
isc_ButtonItem_1_button.
So if I change the prompt property of isc_ButtonItem_1_button, then the hoverover text is appropriately changed.
So my question is, how is one supposed to dynamically change the prompt string? Is this a bug?
Say the ButtonItem is called "isc_ButtonItem_1.
My code is something like this:
Code:
isc_ButtonItem_1.setTitle("New Title"); isc_ButtonItem_1.prompt = "new tooltip";
Looking at the page with the Developer Console, it appears that when you hover over a ButtonItem, you are actually hovering over a ButtonItem_button. So in my example, I see the object being identified as
isc_ButtonItem_1_button.
So if I change the prompt property of isc_ButtonItem_1_button, then the hoverover text is appropriately changed.
So my question is, how is one supposed to dynamically change the prompt string? Is this a bug?
Comment