Button TooltipText Help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ButtonMaker
    Forum Member
    • Mar 2007
    • 172

    Button TooltipText Help

    is the code wrong ? and it is label not button

    Code:
    name = Mary
    address = London
    phone = 0044...
    
    Label.SetProperties("Label", {TooltipText = name, address, phone});
    Last edited by ButtonMaker; 03-16-2009, 03:15 AM.
  • TopicTJ
    Indigo Rose Customer
    • Oct 2008
    • 63

    #2
    Originally posted by ButtonMaker View Post
    is the code wrong ? and it is label not button

    Code:
    name = Mary
    address = London
    phone = 0044...
    
    Label.SetProperties("Label", {TooltipText = name, address, phone});
    It doesn't need to be as long-winded but this is the order of events you need to follow.

    Code:
    -- Create and populate a table from label's existing properties
    LabelProperties = Label.GetProperties("Label1");
    
    -- Get the text for the tooltip
    name = "Mary"
    address = "London"
    phone = "0044..."
    
    -- Change the item(s) required in the table you created
    LabelProperties.TooltipText = name.." "..address.." "..phone;
    
    -- Set the new properties 
    Label.SetProperties("Label1", LabelProperties);

    TTJ
    TTJ

    Comment

    • ButtonMaker
      Forum Member
      • Mar 2007
      • 172

      #3
      thanks TTJ
      why this doesnt work ?

      Code:
      Label.SetProperties("Label1", {TooltipText = name.."\r\n "..address.."\r\n "..phone});
      Last edited by ButtonMaker; 03-16-2009, 05:23 AM.

      Comment

      • TopicTJ
        Indigo Rose Customer
        • Oct 2008
        • 63

        #4
        So far as I know, ToolTips will not use multi lines but use SEARCH and check for yourself.

        I'm sure there are better ways but I just use a paragraph object...
        1. Paragraph.SetVisible("NameofParagraph", false) in the Page On Show script
        2. Paragraph.SetVisible("NameofParagraph", true) on the Label On Enter script
        3. Paragraph.SetVisible("NameofParagraph", false) on the Label On Leave script


        TTJ
        TTJ

        Comment

        Working...
        X