<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AWindowSetResizing</id>
	<title>API:WindowSetResizing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3AWindowSetResizing"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:WindowSetResizing&amp;action=history"/>
	<updated>2026-10-18T12:05:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:WindowSetResizing&amp;diff=30907&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:WindowSetResizing&amp;diff=30907&amp;oldid=prev"/>
		<updated>2026-10-16T19:52:02Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Window}}&lt;br /&gt;
Starts or stops resizing a window with the mouse.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WindowSetResizing(windowName, resizing, point, keepAspectRatio)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;windowName : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – Name of the window.&lt;br /&gt;
;resizing : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to start resizing, &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; to stop.&lt;br /&gt;
;point : &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; – The edge or corner the resize works on: &amp;lt;code&amp;gt;&amp;quot;topleft&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;topright&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;bottomleft&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;bottomright&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;top&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;bottom&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;quot;left&amp;quot;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;quot;right&amp;quot;&amp;lt;/code&amp;gt;. Ignored when &amp;lt;code&amp;gt;resizing&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
;keepAspectRatio : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to keep the window&amp;#039;s width-to-height ratio while resizing.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* &amp;lt;code&amp;gt;keepAspectRatio&amp;lt;/code&amp;gt; is stored on every call, also when &amp;lt;code&amp;gt;resizing&amp;lt;/code&amp;gt; is &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
* With &amp;lt;code&amp;gt;resizing = true&amp;lt;/code&amp;gt;, the client records the current mouse position and starts the resize from &amp;lt;code&amp;gt;point&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;quot;center&amp;quot;&amp;lt;/code&amp;gt; and unknown names do not start a resize; [[API:WindowGetResizing|WindowGetResizing]] then returns &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
* With &amp;lt;code&amp;gt;resizing = false&amp;lt;/code&amp;gt;, any running resize ends. The stock UI passes &amp;lt;code&amp;gt;&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; as &amp;lt;code&amp;gt;point&amp;lt;/code&amp;gt; in that case.&lt;br /&gt;
* Both flags must be real booleans. Passing &amp;lt;code&amp;gt;nil&amp;lt;/code&amp;gt; or a number raises an &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; error.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;WindowSetResizing&amp;#039;: Window %s does not exist&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;Error in function call &amp;#039;WindowSetResizing&amp;#039;: Window %s is currently locked and may not be modified from lua. ...&amp;lt;/code&amp;gt;&amp;lt;br/&amp;gt;This check never triggers in the current client. See [[API:WindowSetShowing|WindowSetShowing]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Starting a resize in &amp;lt;code&amp;gt;WindowUtils.BeginResize&amp;lt;/code&amp;gt;, from &amp;lt;code&amp;gt;easystem_windowutils/source/windowutils.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WindowAddAnchor( &amp;quot;ResizingWindowFrame&amp;quot;, anchorCorner, windowName, anchorCorner, 0, 0 )&lt;br /&gt;
&lt;br /&gt;
WindowSetResizing( &amp;quot;ResizingWindowFrame&amp;quot;, true, anchorCorner, false );&lt;br /&gt;
WindowSetShowing( &amp;quot;ResizingWindowFrame&amp;quot;, true )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ending it in &amp;lt;code&amp;gt;WindowUtils.EndResize&amp;lt;/code&amp;gt;, same file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
WindowSetResizing( &amp;quot;ResizingWindowFrame&amp;quot;, false, &amp;quot;&amp;quot;, false );&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:WindowGetResizing|WindowGetResizing]]&lt;br /&gt;
* [[API:WindowSetMoving|WindowSetMoving]]&lt;br /&gt;
* [[API:WindowGetMovable|WindowGetMovable]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>