Floating to Movable modal

Windows 11 - XOJO 25r1.1
I have a DesktopWindow opened as a Floating Window.
Starting an action in this window (click on button) I would like to make this window a Movable Modal. Stopping the action must make it a Floating Window again.
Is this possible in code ?
May I change the type for a window in the code of the window itself ?

I tried it but making the window movable modal it shows up in the upper left corner of the screen, and I can not move it from there.

Regards
Etienne

You definitely can’t do that in native Xojo code, and I’d be surprised if you could even do that with Declares. What is your app purpose? What does this functionality accomplish?

Thanks for the reply.

I was able to make it Movable Modal, but then also all the controls diappears from the window.
I will make it Movable Modal from within the inspector, and will find another solution for preventing other Window actions when playing.

The window that I open as Floating has a small midi player.
Once the play starts, i would like to prevent other windows from opening, or any action possible.
Stop playing needed to go back to the Floating window.

Regards
Etienne

You could show another window (a modal one) while the player plays, possibly with a “Stop” button on it. When the player ends, you’d close the window.