<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Open Source | Web Custom Controls</title>
	<atom:link href="http://webcustomcontrols.com/category/open-source/feed/" rel="self" type="application/rss+xml" />
	<link>http://webcustomcontrols.com</link>
	<description>Web Custom Controls</description>
	<lastBuildDate>Fri, 09 May 2014 13:34:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.1</generator>
	<item>
		<title>RS2012 DOM Page Leak Fix</title>
		<link>http://webcustomcontrols.com/bugs/rs2012-dom-page-leak-fix/</link>
					<comments>http://webcustomcontrols.com/bugs/rs2012-dom-page-leak-fix/#respond</comments>
		
		<dc:creator><![CDATA[Daniel L. Taylor]]></dc:creator>
		<pubDate>Tue, 02 Apr 2013 19:31:10 +0000</pubDate>
				<category><![CDATA[Bugs & Fixes]]></category>
		<category><![CDATA[Open Source]]></category>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=697</guid>

					<description><![CDATA[NOTE: do not contact Real Software about this bug. They have already addressed it. The fix will be available in 2013r1. If you experience any problems with this code, please contact me, NOT Real Software. When you close a web page in Real Studio WE 2012 the div element for the page is not removed [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>NOTE: do not contact Real Software about this bug. They have already addressed it. The fix will be available in 2013r1. If you experience any problems with this code, please contact me, NOT Real Software.</strong></p>
<p>When you close a web page in Real Studio WE 2012 the div element for the page is not removed from the client browser DOM. This results in a memory leak on the client browser and presents a potential security issue. On a public computer someone could see previously displayed WE pages even if the previous user has logged out.</p>
<p>A quick and simple work around is to reset the Session whenever a user logs out. To do this simply call ShowURL with your web app&#8217;s address on log out. However, this does not work if the app disconnects before log out or if the user forgets to log out.</p>
<p>I&#8217;m releasing a class under the BSD license, SessionTD, which fixes both issues. When you close a page, SessionTD removes the page from the DOM. And it loads JavaScript which clears the DOM in the event that the app disconnects.</p>
<p><a href="http://webcustomcontrols.com/freeware/domleakfix.zip">Click here to download the fix.</a></p>
]]></content:encoded>
					
					<wfw:commentRss>http://webcustomcontrols.com/bugs/rs2012-dom-page-leak-fix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WebLink and Styles = WebLinkTD</title>
		<link>http://webcustomcontrols.com/open-source/weblink-and-styles-weblinktd/</link>
					<comments>http://webcustomcontrols.com/open-source/weblink-and-styles-weblinktd/#respond</comments>
		
		<dc:creator><![CDATA[Daniel L. Taylor]]></dc:creator>
		<pubDate>Tue, 12 Feb 2013 03:09:08 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=687</guid>

					<description><![CDATA[It was recently noted on the Real Software Forums that when you set the Style of a WebLink not all of the attributes take hold. I quickly checked Web Custom Controls and discovered that WebStyleTD and WebStyleExt had the same issue. The fix will be available in the next release (1.3.1). The fix was relatively [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="http://forums.realsoftware.com/viewtopic.php?f=23&amp;t=46873" target="_blank">It was recently noted on the Real Software Forums</a> that when you set the Style of a WebLink not all of the attributes take hold. I quickly checked Web Custom Controls and discovered that WebStyleTD and WebStyleExt had the same issue. The fix will be available in the next release (1.3.1).</p>
<p>The fix was relatively simple, so I decided to make a subclass of WebLink with a similar fix for Real Studio WE users who do not have a license to Web Custom Controls. <a href="http://webcustomcontrols.com/freeware/weblinktd_1.0.zip" target="_blank">You can download the WebLinkTD class by clicking here.</a></p>
<p>To use it:</p>
<ol>
<li>Add the WebLinkTD class to your project.</li>
<li>Change the Super of your WebLink controls to WebLinkTD.</li>
<li>If you assign styles in code, use WebLinkTD.StyleTD instead of WebLink.Style.</li>
</ol>
<p>This class is released under a BSD license and is free to use. I&#8217;ve tested it on 2011r3 and 2012r2.1.</p>
<p><strong>Please note</strong> that in fixing this I discovered another issue with WebLinks: once a link has been visited it will display in the visited color even on hover and click. This is not due to the WebLinkTD class. I think I know what&#8217;s going on and will report this in Feedback, and possibly try to patch this as well in a later version of WebLinkTD.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://webcustomcontrols.com/open-source/weblink-and-styles-weblinktd/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Adding WebLink Capability to WebButton &#038; WebImageView &#8211; Version 1.1</title>
		<link>http://webcustomcontrols.com/open-source/adding-weblink-capability-to-webbutton-webimageview-version-1-1/</link>
					<comments>http://webcustomcontrols.com/open-source/adding-weblink-capability-to-webbutton-webimageview-version-1-1/#comments</comments>
		
		<dc:creator><![CDATA[Daniel L. Taylor]]></dc:creator>
		<pubDate>Mon, 06 Aug 2012 10:58:06 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=628</guid>

					<description><![CDATA[I&#8217;ve uploaded a new version of the module which lets you add a standard &#60;a&#62; tag link to WE WebControls. This version takes a different approach and thereby solves a few bugs. Now the entire control div is wrapped in the link tag, not just the inner div. With this change I&#8217;ve also removed the [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve uploaded a new version of <a title="Adding WebLink Capability to WebButton &amp; WebImageView" href="http://webcustomcontrols.com/?p=621" target="_blank">the module which lets you add a standard &lt;a&gt; tag link to WE WebControls.</a> This version takes a different approach and thereby solves a few bugs.</p>
<p><span id="more-628"></span></p>
<ul>
<li>Now the entire control div is wrapped in the link tag, not just the inner div. With this change I&#8217;ve also removed the check to see if the control is a WebButton or WebImageView. <strong>However, I have only tested the module with those two types.</strong> I imagine this could break functionality in other control types, but I leave that up to the user to test just in case it&#8217;s useful with other controls.</li>
<li>This version fixes a bug which prevented the WebButton.Action event from firing on a control with a link. DoubleClick still does not fire on any browser except IE9, but I don&#8217;t consider that a bug. The other browsers are not capturing the second click because they are busy opening the link from the first click.</li>
<li>This version fixes a bug which prevented WebButton.Caption and WebImageView.URL from working after a link was added.</li>
<li>LinkAddTD now checks to see if a link has already been added, and if so it merely changes the existing link&#8217;s properties. This prevents multiple nested links in the event that your code accidentally calls LinkAddTD repeatedly.</li>
<li>There is now a method to remove the link. <strong>If you dynamically create and delete controls at runtime, be sure to remove the link before control deletion.</strong></li>
</ul>
<p>This little module is released under a BSD license and is free to use. <a href="http://webcustomcontrols.com/freeware/linkadd_1.1.zip">You can download the test project and module by clicking here.</a> Enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>http://webcustomcontrols.com/open-source/adding-weblink-capability-to-webbutton-webimageview-version-1-1/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Adding WebLink Capability to WebButton &#038; WebImageView</title>
		<link>http://webcustomcontrols.com/open-source/adding-weblink-capability-to-webbutton-webimageview/</link>
					<comments>http://webcustomcontrols.com/open-source/adding-weblink-capability-to-webbutton-webimageview/#respond</comments>
		
		<dc:creator><![CDATA[Daniel L. Taylor]]></dc:creator>
		<pubDate>Fri, 03 Aug 2012 06:18:15 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=621</guid>

					<description><![CDATA[Note: See the updated blog post for version 1.1. In Real Studio WE if you want to open a URL in another tab or window, you have two options. You can use a WebLink with a target of New Window. Or you can execute some JavaScript in response to an event. Popup blockers will not [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a href="http://webcustomcontrols.com/?p=628"><strong>Note: See the updated blog post for version 1.1.</strong></a></p>
<p>In Real Studio WE if you want to open a URL in another tab or window, you have two options. You can use a WebLink with a target of New Window. Or you can execute some JavaScript in response to an event. Popup blockers will not block the WebLink because the user has to click it, but they will block the JavaScript even if it&#8217;s executed in response to a user click on a button or image. But what if you want to open a URL in a new window from those controls?</p>
<p><span id="more-621"></span></p>
<p>This question was recently <a href="http://forums.realsoftware.com/viewtopic.php?f=23&amp;t=44885" target="_blank">asked on the forums,</a> so I thought I would take a look and see if there was a way, and found one. Web Custom Controls 1.3 will include two functions, LinkAddTD and LinkChangeTD, which allow you to add a link to WebButton or WebImageView, and change the link later. You can control the target, which defaults to _blank and will open the URL in a new tab/window. Since this is a small bit of code and not central to nor dependent upon wcc, <a href="http://webcustomcontrols.com/?p=628">I&#8217;m also releasing these two functions as open source (click here to download).</a></p>
<p>There are a few catches:</p>
<ol>
<li>Once you&#8217;ve added a link the Action and DoubleClick events no longer fire. MouseDown still fires.</li>
<li>Certain actions in MouseDown will prevent the link from opening. Showing a MsgBox is one. If your MouseDown code interferes with the link, try putting it in a WebTimer and starting the timer from MouseDown.</li>
<li>This works in 2011r3 and 2011r4.3, but there are no guarantees it will continue to work in the future. Real Software may change the way they organize the HTML for these controls which would break this little hack. <strong>If you organize your UI around this functionality, be prepared to change it in the future.</strong></li>
</ol>
<p>Otherwise this seems to work fine in the tests I&#8217;ve performed. Enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>http://webcustomcontrols.com/open-source/adding-weblink-capability-to-webbutton-webimageview/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Emails With Embedded Images Using Realbasic</title>
		<link>http://webcustomcontrols.com/open-source/emails-with-embedded-images-using-realbasic/</link>
					<comments>http://webcustomcontrols.com/open-source/emails-with-embedded-images-using-realbasic/#comments</comments>
		
		<dc:creator><![CDATA[Daniel L. Taylor]]></dc:creator>
		<pubDate>Thu, 21 Jun 2012 21:57:40 +0000</pubDate>
				<category><![CDATA[Open Source]]></category>
		<guid isPermaLink="false">http://webcustomcontrols.com/?p=545</guid>

					<description><![CDATA[Recently on the Real Software NUG somebody asked how to embed images (not image links) directly in HTML emails using Realbasic. I thought this would be easy at first and set out to provide an answer. Like many things in programming, it took a little longer than expected. But I did finally arrive at a solution [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Recently on the <a href="http://www.realsoftware.com/support/listmanager/" target="_blank">Real Software NUG</a> somebody asked how to embed images (not image links) directly in HTML emails using Realbasic. I thought this would be easy at first and set out to provide an answer. Like many things in programming, it took a little longer than expected. But I did finally arrive at a solution and I&#8217;m offering it to the community as open source. This new class, EmailMessageTD (<a href="http://webcustomcontrols.com/freeware/EmailMessageTD.zip">download</a>) is handy for any situation where you need to customize an email message in a manner not directly supported by the Realbasic classes before sending it via SMTPSocket.<span id="more-545"></span></p>
<p>My search for an answer brought me first to <a href="http://www.campaignmonitor.com/blog/post/1761/embedding-images-in-email/" target="_blank">this blog post.</a> This technique is simple to implement in Realbasic. All you need to do is write a few lines of code like this:</p>
<p><code>Dim s As String = imgTest.GetData(Picture.FormatJPEG)<br />
s = "data:image/jpeg;base64," + EncodeBase64(s)<br />
mail.BodyHTML = "&lt;img src=""" + s + """&gt;"</code></p>
<p>One problem is that this technique only works with a few email clients. So I read their <a href="http://www.campaignmonitor.com/blog/post/1759/embedding-images-revisited/" target="_blank">follow up post.</a> This looked like something that would be easy to do as well. Unfortunately I ran into a little problem: the Realbasic EmailMessage and EmailAttachment classes do not support the attachment Content-ID header.</p>
<p>First I tried to get, modify, and set EmailMessage.Source, but this doesn&#8217;t work. EmailMessage parses Source, fills its properties, and generates Source again when you access it later. So the Content-ID header I was adding was lost.</p>
<p>Then on a hunch I tried overriding EmailMessage.Source and discovered that <em>it is not implemented as a property but as two methods.</em> And the solution became rather simple.</p>
<p><a href="http://webcustomcontrols.com/freeware/EmailMessageTD.zip">EmailMessageTD</a> overrides the EmailMessage Source methods and allows you to customize the raw message source before sending your email. It includes another method, SetContentID, which allows you to add a Content-ID header to an attachment. If the attachment is an image you can embed the image in your BodyHTML using a line like this: <code>&lt;img src="cid:MyImageAttachmentId"&gt;</code></p>
<p>This class is useful for anyone who needs to modify an email message directly before sending it via SMTPSocket and avoids the tremendous hassle of having to implement full replacements for SMTPSocket and EmailMessage just to send a customized message. This was discussed on the list and it sounds like a few people have taken this rather tedious route.</p>
<p>I&#8217;ve tested EmailMessageTD by sending emails with embedded images using Real Studio 2011r3 and 2011r4.3. The emails I sent were correct in Mail.app and Gmail.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://webcustomcontrols.com/open-source/emails-with-embedded-images-using-realbasic/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
