Prevent window resizing

I have a resizable window. The user starts a process. During that process the window should not be resized as it interferes with the process. I noticed that changing the Resizable property does not work, that will probably only work while instantiating a window. Any thoughts?
ps Resizing is a valuable asset of the program.

Just set the Mix/Max-Width/Height.

You could add a FixedWidth, FixedHeight Property to the Window which you set as soon as the proportions of the window should no longer change.

Engange your Size-Lock by setting the Propertys and a Boolean. Like this:

If ResizingIsBlocked Then
  
  Self.FixedWidth = Self.Width
  Self.FixedHeight = Self.Height
  
  Self.MaximumWidth = FixedWidth
  Self.MinimumWidth = FixedWidth
  
  Self.MaximumHeight = FixedHeight
  Self.MinimumHeight = FixedHeight
  
Else
  
  Self.MaximumWidth = 64000
  Self.MinimumWidth = 64
  
  Self.MaximumHeight = 64000
  Self.MinimumHeight = 64
  
End If

if you use MBS Plugins, you can do this

if self.IsResizableMBS then
  Self.IsResizableMBS = False
Else
  Self.IsResizableMBS = True
end if
1 Like

Thanks.

Resizable = false only works if HasMaximizeButton = false, but also you are correct these are design-time only properties.