Windows titlebar not highlighted and can't select rows

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?

“when I try to select multiples”

… which is done using the SHIFT key, but as soon as a click occurs, you return. Maybe that stops the multi-select?

In mousedown , you set the cellhelptag to be the text of the cell.
Why do you need to do that in mousedown?
If its always = the cell text, why not just set it when you change the cell text or insert a line?

In cell click you select the row.
Doesnt it get selected anyway when you click with the mouse?

As I wrote above, by the time I try to select another row, the first is unselected. This happens whether I use the debugger or not. I throw that in since using the debugger will cause certain things to lose their focus.

About the helptag, I need to rewrite it. I have 2 columns and both columns will be included in that helptag.
I don’t care so much about the helptag as everything losing focus.

Update to the cell helptag. If I comment out the code for that piece, I can select multiple rows, but I still have problems. I have in the windows keydown an escape key chrb(27) routine and a maximized window that should restore the window but doesn’t.

Update. I solved my problem. I had code in resizing and resizing which I eliminated and my problem was solved

Then, please mark this Thread as fixed. Thank you.