SheetWindows and Global Floating Windows

Using macOS 14.4 with Xojo 2024r2.1 API2 I cannot seem to get a sheet window to attach to its parent when called with ShowModal(self). It will always attach to a global floating window that happens to be around. Surely passing in the parent should get it to attach to the correct window.

A simple test app is attached

SheetWindowTest.xojo_binary_project.zip (6.1 KB)

What am I missing here?

First, I can reproduce this behavior in your test project.

I notice that you have an unusual setting with MenuBarVisible=false:

image

But that doesn’t seem relevant here.

I also tried changing from API2 to API1 (e.g. DesktopWindow → Window) and it still behaves incorrectly in 2024 R2.1

I also tried it in Xojo 2019R1.1 and do not see the problem. Opening this API1 project back in 2024 and the problem occurs.

Conclusion: It’s a Xojo bug, introduced sometime between 2019 and 2024.

Here’s my API1 version.
SheetWindowTestAPI1.xojo_binary_project.zip (6.3 KB)

Would you like me to file a feedback case with Xojo?

I just tested in 2023r4 and 2024r3 beta and it works in both as expected, so appears to be fixed for next release.