Possible to use code in a tooltip?

Is there a way to use a variable in a Tooltip?
I have text in the Tooltip window that shows when hovering with the mouse over an object, some of the text is very general and I would like to replace some words with the actual data taken from a variable.

When mouse moves over new object and your code detect that, you could set a new tooltip value.

1 Like

You can set the tooltip to any string you like at runtime. I do this to show the filepath when hovering the mouse over a filename.

1 Like

Thanks. I created a Property that takes the value of a chosen name in a popup menu, and used the MouseEnter event on the Canvas object to trigger it.