<?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: UI objects other than rectangular and transparency issues</title>
		<atom:link href="http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 09:46:28 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-57197</guid>
					<title><![CDATA[UI objects other than rectangular and transparency issues]]></title>
					<link>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-57197</link>
					<pubDate>Wed, 18 May 2011 15:24:02 +0000</pubDate>
					<dc:creator>Luigi Castelli</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there,</p>
<p>I was writing a circular UI object and I encountered a problem when overlapping it with other objects in Max.</p>
<p>The scenario is basically the following:<br />
the circular object is resized and made pretty large. Another standard UI object lies in the background (for example let&#39;s say a dial object) and my circular object is on top of it. The dial object is exactly under one of the corners of the circular object box. Now, being a circular object, the area in proximity of the box corners is completely transparent and it is supposed to let any user action through (such as a mouse click). However even if it doesn&#39;t &#8220;physically&#8221; cover the dial object my circular object does intercept every user action (clicking, dragging, etc&#8230;) with the consequence that I am not able to click on the dial.</p>
<p>This does not happen among standard Max/MSP UI objects which always behave in the expected way.</p>
<p>So, what am I missing here ?</p>
<p>Thanks.</p>
<p>- Luigi </p>
<p>P.S.<br />
I have attached a picture to help better understand the issue.</p>
<p> [attachment=162560,2260]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204881</guid>
					<title><![CDATA[Re: UI objects other than rectangular and transparency issues]]></title>
					<link>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204881</link>
					<pubDate>Sat, 21 May 2011 17:19:20 +0000</pubDate>
					<dc:creator>spectro</dc:creator>

					<description>
						<![CDATA[
						<p>It does not appear to be the case in Max (at least with the example below) that transparent areas of an enlarged UI object will allow user input to pass through to smaller underlying objects. The solution is to arrange smaller objects such that they lie &#8220;above&#8221; larger ones.</p>
<div><span id="toggle204881-0" class="patchtoggle" onmousedown="toggleMaxPatch('post204881-0', 'er204881-0');">&#8211; Pasted Max <span id="maxversion204881-0"></span> Patch, click to <span id="er204881-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A220.3ocqPEjCBCBD7L7JHbFMTpns9ULFCshULHXZoI0X7uq.0p8PiW5kgkAl%0Aclce.A3BamrAi1h1g.fGP.HP4I.82A3qhtRsnI7M7QkPiIwGtIbkmUlpC0xR%0AWrIb9RJAsh5QVJa3.suWio8ps0oktP6R5YiTt62jw1fOosh2s7iJ0wf41hKK%0AR93dQUoUaqiBnKyVy1rhSln5a.7VoLxQZ2jQSyYjIpXbZd1uCfxLjeO2SHzC%0Aj4YCxRyCqP9Xb9VfrAyqkMRiS3TVyOAHMODfjjf2zd3%2ByOZO7I7EZA%2BglB%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post204881-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode204881-0">----------begin_max5_patcher----------
220.3ocqPEjCBCBD7L7JHbFMTpns9ULFCshULHXZoI0X7uq.0p8PiW5kgkAl
clce.A3BamrAi1h1g.fGP.HP4I.82A3qhtRsnI7M7QkPiIwGtIbkmUlpC0xR
WrIb9RJAsh5QVJa3.suWio8ps0oktP6R5YiTt62jw1fOosh2s7iJ0wf41hKK
R93dQUoUaqiBnKyVy1rhSln5a.7VoLxQZ2jQSyYjIpXbZd1uCfxLjeO2SHzC
j4YCxRyCqP9Xb9VfrAyqkMRiS3TVyOAHMODfjjf2zd3+yOZO7I7EZA+glB
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204882</guid>
					<title><![CDATA[Re: UI objects other than rectangular and transparency issues]]></title>
					<link>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204882</link>
					<pubDate>Sun, 22 May 2011 18:56:17 +0000</pubDate>
					<dc:creator>Luigi Castelli</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for your reply, Spectro.</p>
<p>Well, the dial object cannot really considered a circular object and just setting the alpha channel to 0.0 won&#8217;t work because the real boundaries of the object remain rectangular.</p>
<p>I was more referring to object that are or could be made circular (or almost circular) such as the textbutton object for example. Check out the attached patch.</p>
<div><span id="toggle204882-0" class="patchtoggle" onmousedown="toggleMaxPatch('post204882-0', 'er204882-0');">&#8211; Pasted Max <span id="maxversion204882-0"></span> Patch, click to <span id="er204882-0">expand</span>. &#8211;</span> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  width="110" height="14" class="clippy" ><param name="allowScriptAccess" value="always" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param NAME="FlashVars" value="copied=copied!&#038;copyto=copy to clipboard"/><param name="bgcolor" value="#FFFFFF"/><param name="wmode" value="opaque"/><embed src="/wp-content/plugins/bbpress-copy-compressed/clippy.swf"  width="110" height="14"   name="clippy"  quality="high"  allowScriptAccess="always"  type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  FlashVars="text=----------begin_max5_patcher----------%0A253.3ociPsraCCBD7L7Uf1ytQfyip1a8KnW5spnHrM1kHLDYuVxsQ4eOFvNk%0AH0V0CvpclQZmYNSIPgaT0CrmYuyHjyTBI.4AHy6DnUNVZj8AY.pFwhADcVHK%0ARaGZ0ViBC7hYvZmE60eo7X47U7u05FvEwqmQiP3mmTQm.PV7osHv1Oqp0UoR%0AOgtJXHWwwGdBRNqU1FzAuzoklEFuum7rG%2BMWSiQwd0lxcGSc8B0IIV9g11bn%0ASUhQ2IxES4gI3gwVQtejuc2J9Mq14FrUpf%2BBDdzKTp%2BK6e1yUId%2BGa36qRwu%0AUk0FmLoDSJsc%2BYFeLlwM9wF9xOaeRTlVtPuBf1kghA%0A-----------end_max5_patcher-----------&#038;copied=copied!&#038;;copyto=copy to clipboard"  bgcolor="#ffffff"  wmode="opaque" /> </object></div>
<div id="post204882-0" style="display:none;visibility:hidden;" >
<div class="patchtoggleInfo"><small>Copy <b>all</b> of the following text.Then, in Max, select <em>New From Clipboard</em>.</small></div>
<div class="patchtogglediv">
<pre><code id="pastedcode204882-0">----------begin_max5_patcher----------
253.3ociPsraCCBD7L7Uf1ytQfyip1a8KnW5spnHrM1kHLDYuVxsQ4eOFvNk
H0V0CvpclQZmYNSIPgaT0CrmYuyHjyTBI.4AHy6DnUNVZj8AY.pFwhADcVHK
RaGZ0ViBC7hYvZmE60eo7X47U7u05FvEwqmQiP3mmTQm.PV7osHv1Oqp0UoR
OgtJXHWwwGdBRNqU1FzAuzoklEFuum7rG+MWSiQwd0lxcGSc8B0IIV9g11bn
SUhQ2IxES4gI3gwVQtejuc2J9Mq14FrUpf+BDdzKTp+K6e1yUId+Ga36qRwu
Uk0FmLoDSJsc+YFeLlwM9wF9xOaeRTlVtPuBf1kghA
-----------end_max5_patcher-----------</code></pre></div>
</div>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204883</guid>
					<title><![CDATA[Re: UI objects other than rectangular and transparency issues]]></title>
					<link>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204883</link>
					<pubDate>Mon, 23 May 2011 05:05:43 +0000</pubDate>
					<dc:creator>spectro</dc:creator>

					<description>
						<![CDATA[
						<p>I see what you are saying Luigi, and clearly should have tried more UI objects like the Text Button before posting a reply. With that said, It does seem strange as the text button&#8217;s outlets suggest a rectangular &#8220;background&#8221; while the active area is round(ed). Perhaps one of the Cycling74 team will be able to explain. Apologies for the noise&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204884</guid>
					<title><![CDATA[Re: UI objects other than rectangular and transparency issues]]></title>
					<link>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204884</link>
					<pubDate>Wed, 25 May 2011 15:25:19 +0000</pubDate>
					<dc:creator>Timothy Place</dc:creator>

					<description>
						<![CDATA[
						<p>It is possible.  For example, bpatcher allows clicks to pass through.  First, add a &#8216;hittest&#8217; method:</p>
<pre>class_addmethod(c, (method)myobj_hittest, "hittest", A_CANT, 0);</pre><p>Then implement the method like this:</p>
<pre>long myobj_hittest(t_myobj *x, t_object *patcherview, t_pt pt)
{
	long rv = 1;

	// Do something here and set rv = 0
	// if you want the click to pass through

	return rv;
}</pre><p>best,<br />
  Tim</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204885</guid>
					<title><![CDATA[Re: UI objects other than rectangular and transparency issues]]></title>
					<link>http://cycling74.com/forums/topic/ui-objects-other-than-rectangular-and-transparency-issues/#post-204885</link>
					<pubDate>Thu, 26 May 2011 05:19:46 +0000</pubDate>
					<dc:creator>Luigi Castelli</dc:creator>

					<description>
						<![CDATA[
						<p>Once again, thank you so much Tim.<br />
Works like a charm.</p>
<p>Best</p>
<p>- Luigi</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

