<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: User resize</title>
		<atom:link href="http://cycling74.com/forums/topic/user-resize/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/user-resize/feed</link>
		<description></description>
		<pubDate>Thu, 20 Jun 2013 02:58:02 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/user-resize/#post-52197</guid>
					<title><![CDATA[User resize]]></title>
					<link>http://cycling74.com/forums/topic/user-resize/#post-52197</link>
					<pubDate>Mon, 06 Sep 2010 22:01:00 +0000</pubDate>
					<dc:creator>danieleghisi</dc:creator>

					<description>
						<![CDATA[
						<p>Is there a way, in a UI, to catch the user resizing of an object? Is there a method which is called automatically when the user resizes the object in the patch? (without checking dimensions with a flag in the paint method?)</p>
<p>Thank,<br />
Daniele</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/user-resize/#post-187573</guid>
					<title><![CDATA[Re: User resize]]></title>
					<link>http://cycling74.com/forums/topic/user-resize/#post-187573</link>
					<pubDate>Mon, 06 Sep 2010 23:45:04 +0000</pubDate>
					<dc:creator>Emmanuel Jourdan</dc:creator>

					<description>
						<![CDATA[
						<p>You can define an oksize method for that, in your <code>main()</code></p>
<p><code>class_addmethod(c, (method)yourobject_oksize, "oksize", A_CANT, 0);</code></p>
<p>It has the following signature:</p>
<p><code>long yourobject_oksize(t_yourobject *x, t_rect *newrect)</code></p>
<p>you can just mess with the newrect->width and newrect->height.</p>
<p>If 1 is returned, the object size will be checked afterward to make sure it fits the min/max again.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/user-resize/#post-187574</guid>
					<title><![CDATA[Re: User resize]]></title>
					<link>http://cycling74.com/forums/topic/user-resize/#post-187574</link>
					<pubDate>Tue, 07 Sep 2010 16:38:52 +0000</pubDate>
					<dc:creator>danieleghisi</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks emmanuel.<br />
Is it called only when the user is resizing it a screen? Cause I&#8217;m resizing the object too, sometimes, from the code:  should I then put a flag to understand whether it&#8217;s me or the user?</p>
<p>thanks again,<br />
Daniele</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/user-resize/#post-187575</guid>
					<title><![CDATA[Re: User resize]]></title>
					<link>http://cycling74.com/forums/topic/user-resize/#post-187575</link>
					<pubDate>Tue, 07 Sep 2010 16:50:56 +0000</pubDate>
					<dc:creator>Emmanuel Jourdan</dc:creator>

					<description>
						<![CDATA[
						<p>It&#8217;s called whenever the object is resized. You probably want to store a flag in your object structure to avoid loops. It&#8217;s also called when you create the object, and probably other situations.</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

