<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>Control &#187; Topic: change position and size of widgets dynamically</title>
		<link>http://charlie-roberts.com/Control/forum/topic.php?id=31</link>
		<description>forum for discussing Control interface software</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 16:09:29 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://charlie-roberts.com/Control/forum/rss.php?topic=31" rel="self" type="application/rss+xml" />

		<item>
			<title>admin on "change position and size of widgets dynamically"</title>
			<link>http://charlie-roberts.com/Control/forum/topic.php?id=31#post-229</link>
			<pubDate>Fri, 04 Mar 2011 16:17:54 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">229@http://charlie-roberts.com/Control/forum/</guid>
			<description><![CDATA[<p>Yes! Sorry for the errors. </p>
<p>So the stroke layer winds up being a different size than the fill? Hmmmm.... - Charlie
</p>]]></description>
					</item>
		<item>
			<title>misal on "change position and size of widgets dynamically"</title>
			<link>http://charlie-roberts.com/Control/forum/topic.php?id=31#post-228</link>
			<pubDate>Fri, 04 Mar 2011 15:38:52 +0000</pubDate>
			<dc:creator>misal</dc:creator>
			<guid isPermaLink="false">228@http://charlie-roberts.com/Control/forum/</guid>
			<description><![CDATA[<p>Thank you for your responses.</p>
<p>I tried both methods. The first approach works somehow. But the fill isn't set correctly. I will try to find out, what the exact problem is.<br />
The second approach with a global method does not work. Shouldn't the method be rewritten to something like this:</p>
<p><code><br />
function setSliderWidth(slider, _width) {<br />
    slider.fillDiv.style.width = _width + 'px';<br />
    slider.strokeDiv.style.width = _width + 'px';<br />
}<br />
</code>
</p>]]></description>
					</item>
		<item>
			<title>admin on "change position and size of widgets dynamically"</title>
			<link>http://charlie-roberts.com/Control/forum/topic.php?id=31#post-226</link>
			<pubDate>Fri, 04 Mar 2011 05:02:39 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">226@http://charlie-roberts.com/Control/forum/</guid>
			<description><![CDATA[<p>You could also add your own convenience methods at the top of the interface file, for example:</p>
<pre><code>function setSliderWidth(slider, width) {
    slider.fillDiv.style.width = this.value + &#39;px&#39;;
    slider.strokeDiv.style.width = this.value + &#39;px&#39;;
}</code></pre>
<p>And then inside your widget:</p>
<p><code>&#34;onvaluechange&#34;: &#34;setSliderWidth(slider1, this.value);&#34;</code></p>
<p>Depending on how often you were going to use it doing this would make sense. You could easily expand the method to also include height, x / y etc.
</p>]]></description>
					</item>
		<item>
			<title>admin on "change position and size of widgets dynamically"</title>
			<link>http://charlie-roberts.com/Control/forum/topic.php?id=31#post-225</link>
			<pubDate>Fri, 04 Mar 2011 04:58:27 +0000</pubDate>
			<dc:creator>admin</dc:creator>
			<guid isPermaLink="false">225@http://charlie-roberts.com/Control/forum/</guid>
			<description><![CDATA[<p>Hi Misal,</p>
<p>Yes, it's possible, but for some widgets it will be a little tricky. In the case of a slider it would be something like this:</p>
<p><code>&#34;onvaluechange&#34;: &#34;slider1.fillDiv.style.width = this.value + &#39;px&#39;; slider1.strokeDiv.style.width = this.value + &#39;px&#39;; &#34;</code></p>
<p>On the other hand the Button widget only has a fillDiv. For multitouchXY you'd have to change the container and then change all the children... this would be much more complicated. I would like to make it more convenient to do this type of stuff in a future update, where all widgets would have a <code>setWidth()</code> method that would take care of everything for you.
</p>]]></description>
					</item>
		<item>
			<title>evilmonkey on "change position and size of widgets dynamically"</title>
			<link>http://charlie-roberts.com/Control/forum/topic.php?id=31#post-222</link>
			<pubDate>Fri, 04 Mar 2011 02:18:21 +0000</pubDate>
			<dc:creator>evilmonkey</dc:creator>
			<guid isPermaLink="false">222@http://charlie-roberts.com/Control/forum/</guid>
			<description><![CDATA[<p>slider1.draw() needs to have a semicolon at the end, otherwise I don't know.
</p>]]></description>
					</item>
		<item>
			<title>misal on "change position and size of widgets dynamically"</title>
			<link>http://charlie-roberts.com/Control/forum/topic.php?id=31#post-221</link>
			<pubDate>Thu, 03 Mar 2011 23:38:23 +0000</pubDate>
			<dc:creator>misal</dc:creator>
			<guid isPermaLink="false">221@http://charlie-roberts.com/Control/forum/</guid>
			<description><![CDATA[<p>Hello</p>
<p>Is it somehow possible to change the position or size of the widgets dynamically.<br />
I already tried the following without success:<br />
<code>"onvaluechange": "slider1.width = this.value; slider1.draw()",</code></p>
<p>thanks for any help
</p>]]></description>
					</item>

	</channel>
</rss>
