How to disable window drag?

Hi,

With my Dashboard, I’m using several ContainerControl window by using page panel.
The problem is that I can drag the window freely(?).
I don’t want user to drag the window.

Whey those windows can be drag?

Thanks.

[quote=219592:@changwon lee]Hi,

With my Dashboard, I’m using several ContainerControl window by using page panel.
The problem is that I can drag the window freely(?).
I don’t want user to drag the window.

Whey those windows can be drag?

Thanks.[/quote]

Use a plain box window instead. It will not be possible to drag it.

There is a DashBoard window, and it has 2 ContainerControl.
The problem is that user can drag those ContainerControl window.

I have tried to make the Dashboard window with Plain box, but this issue is the same and I can’t use Close/Maximize button.

[quote=219654:@changwon lee]There is a DashBoard window, and it has 2 ContainerControl.
The problem is that user can drag those ContainerControl window.

I have tried to make the Dashboard window with Plain box, but this issue is the same and I can’t use Close/Maximize button.[/quote]

See https://forum.xojo.com/13860-prevent-window-from-moving/0

You can also save the position of the window in properties and replace it where it was in the Moved event.

After adjusting the size of ContainerControls with PagePanel, I can’t drag it anymore.
I think the size of ContainerControl matters, and I should make it smaller than PagePanel.

Thanks.