XOJO 2022r1 - Windows 10
In my app I have several BevelButtons to open different windows.
When more than one window is opened, moving over the bevelbuttons with the mouse sets the corresponding window in focus.
This has always worked perfect, but after convertion to API2 it doesn’t work anymore.
The code for doing this recides in the ‘MouseEnter’ event of each BevelButton.
Each window has a flag that is set to true when the corresponding window is opened. (windowXOpened, windowYOpened and windowZOpened).
Think of 3 Bevelbuttons opening WindowX, windowY and windowZ.
In the MouseEnter event the corresponding code looks like ;
BevelButton MouseEnter event for WindowX
If windowXOpened Then
windowX.SetFocus
End If
BevelButton MouseEnter event for WindowY
If windowYOpened Then
windowY.SetFocus
End If
BevelButton MouseEnter event for WindowZ
If windowZOpened Then
windowZ.SetFocus
End If
What could be the solution for making this work again ?
Thanks
Regards