Show Tree widget row contents on hover?

HENRY LOWE hlowe at
Fri Apr 23 12:35:07 EDT 2021


Take a look at the widget’s ActionInspect message. 

The actionInspect message is sent to the widget's script object when the inspect icon is clicked on.
The inspect icon appears when the value string of a particular array element contains a newline character,
OR if it is too large to fit in the space provided. The pPath parameter contains the path to the element whose icon was clicked.

Use the ActionInspect pPath message to get the array element and then use a contextual menu to display the truncated element (tElement):

set the text of btn “TreeView_Contextual_Menu" to tElement
popup button “TreeView_Contextual_Menu"

This requires the user to click on the inspect icon of the truncated array element element to display the full element.

I agree that it would be nice to do this with a hover.


> On Apr 23, 2021, at 9:10 AM, Keith Clarke via use-livecode <use-livecode at> wrote:
> Hi folks,
> I’m experimenting with a tree widget and indentation means that row content gets truncated, so I’m wondering if there is any simple way to show the current row’s content in a tooltip on hover?
> The dictionary doesn’t mention any mouse-related messages and the highlightedElement property returns a path as a comma-delimited list of array keys but not the row’s content.
> Am I missing some LiveCode magic here that’s too obvious to document?
> Thanks in advance.
> Keith 
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list