It seems that it's not possible to select controls at run time like you do for example in the UIR editor, 'cause there is no 'selected' or 'highlighted' attribute for controls like list boxes and you cannot draw a rectangle on CVI panels.
So you have to find a way to visually identify a selected one, maybe changing its frame color or background color (I personally won't do the latter in order to maintain the possibility to select individuals items in the list box and highlight them).
Second problem: you must discriminate between a click that selects the entire list box and a click that selects (and possibly highlights) a single item in it: could it be clicking on the label or on the frame?
Third item: the possibility to select multiple controls by dragging an are
a on the screen.
I suggest you to look at \samples\userint\moustate.pry, where you will find a skeleton for this trace job: obtain mouse coordinates, if the left button is still on the user is dragging a rectangle, so look if any control lies in this rectangle, then 'select' it as we saw before.
You have to make a struct with control ID , x and y coord and whatever else you need, allocate an array of elements with that struct and fill the array elements while you are generating the controls, so you can look in the array to discriminate if controls are or not in the rectangle drawn... a very hard stuff: surely do you need it?
Good work in case you walk this way...
Roberto