I tried to use pteGetSelection() but it only works for "Grids" & "Objects". What is exactly the function for me to return a value of which layer is selected right now in Data Palette? I also tried to find some leLSW* function, but I didn't find any possibilities.
Thank you.