Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Setting hover string in tabs

    Hi,

    I would like to dynamically change a hover string on tabs.
    I use setPrompt() method on Tab object, and newly provided string is shown on tab only in case when I set it before the tab is attached to TabSet. If I invoke setPrompt() method later, the prompt string is not changed.

    Is it a bug? How can I workaround this?

    Thanks in advance.

    #2
    hi ,

    Its not a bug..

    for setPrompt(String) displayed in hover canvas only if showHover is true.
    so put setShowHover(true);
    then setPrompt(String);

    or else u can use setTooltip(String);
    Last edited by vinuriyer; 18 Mar 2011, 03:15.

    Comment


      #3
      The original post is correct. Changing the prompt string with setPrompt() doesn't change the text that shows in the hover. Is there a way to have the hover text be dynamic?

      Comment


        #4
        Call tabSet.getTabCanvas().setPrompt() if the TabSet has already been drawn.

        Comment

        Working...
        X