Select a widget in a scrollbox


I was wondering if there’s a way to select a widget in a scrollbox when I click on it like in the pic below (I’d like to be able to select the whole row)

I found a way round by putting a border and binding OnMouseBtnDown to a highlight function.

What I have been doing is dynamically generating my scrollbox items with code, through the use of another widget that I spawn and add to said scrollbox as a child. With that, you would have full access to the code of that child widget.