I have a window (BI) that has 3 controls on it. 2 buttons and a listbox.
The window is initially a secondary window (Setup), until the window that calls is closed.
The Setup window is called by a Main window that closes.
The BI window has 2 problems that I can’t understand. For some recent versions of XOJO it hasn’t been able to highlight the titlebar, even if it is the only window.
I can also not figure out why a selected row becomes unselected. In the debugger it shows that row is selected, and when I try to select multiples, the first row is unselected.
I have two Listbox events in case I could figure out what is happening. The code I have for listbox rows is:
CellClick:
If row = -1 Or row > me.ListCount-1 Then Return True
#If TargetMacOS Then
If Keyboard.AsyncCommandKey Or Keyboard.AsyncShiftKey Then
Return False
End If
#elseIf TargetWin32 Or TargetLinux Then
If Keyboard.AsyncControlKey Or Keyboard.AsyncShiftKey Then
Return False
End If
#endif//#If TargetMacOS Then
me.ListIndex = row
me.Selected(row) = True
MouseDown
Dim row As Integer = me.RowFromXY(System.MouseX - me.Left - Self.Left, System.MouseY - me.Top - Self.Top)
Dim column As Integer = me.ColumnFromXY(System.MouseX - me.Left - Self.Left, System.MouseY - me.Top - Self.Top)
Dim filTxt As String = me.Cell(row, column)
If row > -1 Then me.CellHelpTag(row, column) = filTxt
Return True
Suggestions?