<?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[Switch Images according to a  button&#x27;s values]]></title><description><![CDATA[<p dir="auto">Hello Everyone, Can Anyone help me with switching the images of buttons from another button.</p>
<p dir="auto">For now I'm able to switch the image but there is something wrong as it doesn't change the image unless I  reload the project</p>
<p dir="auto">I would appreciate if some can provide a snippet or an example that i go through and understand.</p>
<p dir="auto">Thanks</p>
<p dir="auto">inline function onDandLSwitchControl(component, value)<br />
{<br />
if(value){</p>
<p dir="auto">FXSlot2OnOff.set("filmstripImage", "{PROJECT_FOLDER}Layers_POWER_BUTTON_Yellow_72_X_144_X_2.png");</p>
<pre><code>LightModeImage.showControl(false);
DarkModeImage.showControl(true);
}else{
FXSlot2OnOff.set("filmstripImage", "{PROJECT_FOLDER}MacroMacro_LightMode_POWER_BUTTON_Yellow_72_X_144_X_2.png");
LightModeImage.showControl(true);
DarkModeImage.showControl(false);
}
</code></pre>
<p dir="auto">};</p>
<p dir="auto">Content.getComponent("DandLSwitch").setControlCallback(onDandLSwitchControl);</p>
]]></description><link>https://forum.hise.audio/topic/9892/switch-images-according-to-a-button-s-values</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Jul 2026 05:19:09 GMT</lastBuildDate><atom:link href="https://forum.hise.audio/topic/9892.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 18 Jun 2024 20:07:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Switch Images according to a  button&#x27;s values on Tue, 18 Jun 2024 22:10:07 GMT]]></title><description><![CDATA[<p dir="auto">Thanks @d-healey</p>
]]></description><link>https://forum.hise.audio/post/81978</link><guid isPermaLink="true">https://forum.hise.audio/post/81978</guid><dc:creator><![CDATA[Onik Sisodiya]]></dc:creator><pubDate>Tue, 18 Jun 2024 22:10:07 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Images according to a  button&#x27;s values on Tue, 18 Jun 2024 21:24:10 GMT]]></title><description><![CDATA[<p dir="auto">You can't change these images dynamically. You'd need to have two different buttons for the two images and hide/show them as needed.</p>
]]></description><link>https://forum.hise.audio/post/81974</link><guid isPermaLink="true">https://forum.hise.audio/post/81974</guid><dc:creator><![CDATA[David Healey]]></dc:creator><pubDate>Tue, 18 Jun 2024 21:24:10 GMT</pubDate></item></channel></rss>