<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[A static GUI element that display floats without being editable]]></title><description><![CDATA[<p>Hi everyone, I'm working on the GUI of a patch and I need to display a static number. The user should not be able to change it directly from the GUI element.</p>
<p>I came up with two options:</p>
<ul>
<li>Making a <em>canvas</em> [cnv] object and sending a <em>label</em> message to it. This works, but I need to use [makefilename %d] because [cnv] complains if the <em>label</em> message contains only a float.</li>
<li>Using a <em>number</em> or <em>number2</em> object would be my ideal choice but I don't want the user to be able to change it. Is there a way to «disable» or make the number GUI element static?</li>
</ul>
<p>Thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 18:37:27 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/12801.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 May 2020 13:44:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to A static GUI element that display floats without being editable on Sat, 09 May 2020 16:42:22 GMT]]></title><description><![CDATA[<p>Hi everyone, I'm working on the GUI of a patch and I need to display a static number. The user should not be able to change it directly from the GUI element.</p>
<p>I came up with two options:</p>
<ul>
<li>Making a <em>canvas</em> [cnv] object and sending a <em>label</em> message to it. This works, but I need to use [makefilename %d] because [cnv] complains if the <em>label</em> message contains only a float.</li>
<li>Using a <em>number</em> or <em>number2</em> object would be my ideal choice but I don't want the user to be able to change it. Is there a way to «disable» or make the number GUI element static?</li>
</ul>
<p>Thanks</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable</guid><dc:creator><![CDATA[dom1817]]></dc:creator><pubDate>Sat, 09 May 2020 16:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to A static GUI element that display floats without being editable on Sat, 09 May 2020 14:56:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/dom1817">@dom1817</a> You can use a canvas to display dynamic text from a parameter object like a hslider so that you cannot modify the value but just read it (your canvas is like a screen that just shows your number). You can change the value in an indirect way by using the hslider in your GUI. The advantage of this idea is that you can have many parameters values and all of them can be shown into just one small canvas object saving a lot of space inside your GUI. Having a lot of number boxes inside GUI is not a good idea to show parameters values. The disadvantage is that you need to put more code into your GUI.</p>
<p>You can check this module that i made. It contains a feedback monitor screen for reading parameters. See the small &quot;<em>wave_sweep&lt;-0.61</em>&quot; canvas in the imagine. It shows the values of the sweep hslider.</p>
<p>WaveMaker patch download :<br />
<a href="/uploads/files/1589033018870-wavemaker.zip">WaveMaker.zip</a></p>
<p><img src="/uploads/files/1589033085564-snapshot.bmp" alt="Snapshot.bmp" class="img-responsive img-markdown" /></p>
<p><strong>Here is a more simplified version to show how to do it</strong> :<br />
<a href="/uploads/files/1589034813326-parameterfeedbackscreen.zip">ParameterFeedbackScreen.zip</a></p>
<p>OBS ! the &quot;$0-clear-send&quot; names come from right-click on each objects and set under &quot;<em>Messeges</em>&quot; the &quot;send symbol&quot; and &quot;receive symbol&quot; so that you don't need to use wiring between GUI objects. The &quot;<em>send symbol</em>&quot; is the output of that object and the &quot;<em>receive</em> <em>symbol</em>&quot; is the input. the &quot;<em>$0</em>&quot; symbol is used so that you can have the same GUI multiple times in the same patch without problems. You can also change in &quot;<em>label p1-$1</em>&quot; like &quot;<em>label Value:-&gt;$1</em>&quot; so in canvas will look like &quot;<em>Value:-&gt; [your parameter value]</em>&quot; for aesthetics purpose.</p>
<p>snapshot :<br />
<img src="/uploads/files/1589034855911-txy1.bmp" alt="TXY1.bmp" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/2</guid><dc:creator><![CDATA[Boran Robert]]></dc:creator><pubDate>Sat, 09 May 2020 14:56:44 GMT</pubDate></item><item><title><![CDATA[Reply to A static GUI element that display floats without being editable on Sat, 09 May 2020 14:18:14 GMT]]></title><description><![CDATA[<p>Hi<br />
You could do it this way<br />
<img src="/uploads/files/1589033700844-image.png" alt="image.png" class="img-responsive img-markdown" /><br />
<a href="/uploads/files/1589033861487-set-number.pd">set-number.pd</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/3</guid><dc:creator><![CDATA[Balwyn]]></dc:creator><pubDate>Sat, 09 May 2020 14:18:14 GMT</pubDate></item><item><title><![CDATA[Reply to A static GUI element that display floats without being editable on Sat, 09 May 2020 15:33:34 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/balwyn">@Balwyn</a> That's very good for display, but if the user changes the number it will be sent on down the chain.<br />
Is that the case?</p>
<p>If this is for your own machine that will be left somewhere for the public to use then you could set kiosk mode with a plugin......... <a href="https://puredata.info/downloads/kiosk-plugin" rel="nofollow">https://puredata.info/downloads/kiosk-plugin</a><br />
You can disable key bindings and the window menu...... so you could stop the user entering editmode and use a message box for your fixed value.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/4</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 09 May 2020 15:33:34 GMT</pubDate></item><item><title><![CDATA[Reply to A static GUI element that display floats without being editable on Sat, 09 May 2020 16:03:27 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/dom1817">@dom1817</a> Actually [value] should work....<br />
Combined with <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/balwyn">@Balwyn</a> solution to prevent a stack overflow.<br />
<a href="/uploads/files/1589039557584-fix.pd">fix.pd</a><br />
David.<br />
<img src="/uploads/files/1589040205472-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/5</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 09 May 2020 16:03:27 GMT</pubDate></item><item><title><![CDATA[Reply to A static GUI element that display floats without being editable on Sat, 09 May 2020 15:55:24 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> If it is only for display, there doesn't have to be a chain to go down. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /> <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/balwyn">@Balwyn</a>'s solution should be fine. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/6</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sat, 09 May 2020 15:55:24 GMT</pubDate></item><item><title><![CDATA[Reply to A static GUI element that display floats without being editable on Sat, 09 May 2020 15:58:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> Yes, I don't know what it's for.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/7</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Sat, 09 May 2020 15:58:36 GMT</pubDate></item><item><title><![CDATA[Reply to A static GUI element that display floats without being editable on Sat, 09 May 2020 16:36:16 GMT]]></title><description><![CDATA[<p>Thanks everyone!</p>
<p>I ended up using this solution:<br />
<img src="/uploads/files/1589041990244-pd.jpg" alt="pd.jpg" class="img-responsive img-markdown" /></p>
<p>The user won't be able to change value if the range is fixed.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/12801/a-static-gui-element-that-display-floats-without-being-editable/8</guid><dc:creator><![CDATA[dom1817]]></dc:creator><pubDate>Sat, 09 May 2020 16:36:16 GMT</pubDate></item></channel></rss>