OK, have a DirectScrolledList working which is showing me a list of files I have in a specific folder on my PC.
I would like to be able to select a file and then my code will read it and pull some info out of it so I can do something with it.
Going by the manual example, I created the list with DirectLabels (which I’m guessing aren’t clickable?). So I switched to DirectButtons which have the command param. My question is how would I write the command bit so it calls a function with the text of the button I clicked and then I use that value in my code. Or is there an easier way to watch for the event of someone clicking the list and returning the SelectedText? I did find this: getSelectedText(self)
but how do I “catch” the event?