Thread Rating:
  • 379 Vote(s) - 2.68 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tooltipの内容を改行したい
07-14-2016, 02:29 PM,
#4
RE: tooltipの内容を改行したい
大分遅くなって申し訳ありませんが、次のような代わりのやり方でいかがでしょうか?

Code:
{let vb-for-tooltip:VBox =
    {VBox "This is a test line"}
}

{def cb =
    {CommandButton
        label = "&Click me!",
        tooltip= vb-for-tooltip,
        style = "standard",
        {on Action at btn:CommandButton do
            set btn.label = "Thanks for the &Click."
        }
    }
}

{value cb}
{let i:int = 1}

{CommandButton
    label="Add new long line to tooltip",
    {on Action do
        {vb-for-tooltip.add
            "new long long long long long long long long long long long long long long long long line:" & i
        }
        set i = i + 1
    }
}

{CommandButton
    label="Add new short line to tooltip",
    {on Action do
        {vb-for-tooltip.add
            "new short line:" & i
        }
        set i = i + 1
    }
}


Messages In This Thread
tooltipの内容を改行したい - by battiruno - 06-30-2016, 03:03 PM
RE: tooltipの内容を改行したい - by tdeng - 07-14-2016, 02:29 PM
Forum Jump:


Users browsing this thread:
1 Guest(s)

MyBB SQL Error

MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1017 - Can't find file: 'mybb_threadviews' (errno: 2)
Query:
INSERT INTO mybb_threadviews (tid) VALUES('1372')