Zoes
Mechanical
- Sep 30, 2011
- 46
I have been very confused with identifying a selected item from a list box generated from blockstyler.. I have sort of idea (see follwong code) Does anybody know how to do this? Isn't it simple to code?
Dim lw As ListingWindow = theSession.ListingWindow
Dim list_box0Props As PropertyList = list_box0.GetProperties()
Dim list_box0Values() As String = {"Item 1", "Item 2", "Item 3"}
list_box0Props.SetStrings("ListItems", list_box0Values)
Dim selected As String() = list_box0Props.SelectedItems
If selected(0) Then
lw = theSession.ListingWindow
lw.Open()
lw.WriteLine("Item 1")
End If