<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / HMI - Rexygen HMI designer/inkscape - custom buttons]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=479&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=479"/>
	<updated>2018-09-03T07:26:05Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=479</id>
	<entry>
		<title type="html"><![CDATA[Re: HMI - Rexygen HMI designer/inkscape - custom buttons]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2032#p2032"/>
		<content type="html"><![CDATA[<p>This &#039;old&#039; post should be already a big help :</p><p><a href="https://www.rexygen.com/oldforum/viewtopic.php?id=11" rel="nofollow">Creating a button in Inkscape </a></p>]]></content>
		<author>
			<name><![CDATA[scoobsalamander]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=6</uri>
		</author>
		<updated>2018-09-03T07:26:05Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2032#p2032</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: HMI - Rexygen HMI designer/inkscape - custom buttons]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2024#p2024"/>
		<content type="html"><![CDATA[<p>Hello Hubert,</p><p>yes, there is possibility to create your own custom components, however it requires some knowledge of JavaScript.<br />Try to go through example &quot;0301-10 Custom HMI Component&quot; and modify it to act as a button with desired behaviour.</p><p>Core of the JavaScript will contain following code:</p><div class="codebox"><pre><code>REX.UI.SVG.CustomButton = function(svgElem, args) {
    // Inherit from base component
    var that = new REX.UI.SVG.HTMLComponent(svgElem, args);
    var button = $(document.createElement(&#039;button&#039;));            
    $(that.div).append(button);  
    return that;
};</code></pre></div><p>Other functionality is up to you.</p><p>Hope it helps.</p><p>Regards, Tomas</p>]]></content>
		<author>
			<name><![CDATA[tomáš čechura]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=39</uri>
		</author>
		<updated>2018-08-28T10:19:28Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2024#p2024</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[HMI - Rexygen HMI designer/inkscape - custom buttons]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2020#p2020"/>
		<content type="html"><![CDATA[<p>Hello again,</p><p>Is there a possibility to create a custom button?<br />I would like to use my own svg graphics file as a button - when I click on it, it will temporary change a CNB element value.</p><p>Hubert</p>]]></content>
		<author>
			<name><![CDATA[hubc]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=98</uri>
		</author>
		<updated>2018-08-27T13:49:18Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2020#p2020</id>
	</entry>
</feed>
