Hi All,
Does anyone know if there is a way of making a window non-resizeable.
Basically I have a few windows that are modal and will never need to change size and I was hoping to be able to set that so that hovering over the border didn’t give you the resize arrows. Is there maybe a border type that will give me this?
Many thanks in anticipation
Caroline
In the Smart Client you could possibly put some code in OnResize() to force the size back to what you want.
I had thought of that but figured it would look very messy.
All I really want is a fixed border!
You could try this:
var window = application.getWindow( 'yourWindowName' )
window.resizable = false
Many thanks Kim that did the trick.
Shame you can’t set that in the design screen!
in what property would you set that?
Windows can’t be designed at all… So how would you do that on design time.
I am interested in preventing window resize. i Notice the function asks for the window name, i didnt create any windows, i am just running it in the smart client window, what would be the window name in this case?
To get the main window object, use the same method but do not specify a window name:
var window = application.getWindow()