<?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>Clarion Edge &#187; Clarion</title>
	<atom:link href="http://www.clarionedge.com/category/clarion/feed" rel="self" type="application/rss+xml" />
	<link>http://www.clarionedge.com</link>
	<description>Get an Edge with Clarion!</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:58:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Hosting WPF user control in 2.0 WinForms</title>
		<link>http://www.clarionedge.com/windows/development/hosting-wpf-user-control-in-2-0-winforms.html</link>
		<comments>http://www.clarionedge.com/windows/development/hosting-wpf-user-control-in-2-0-winforms.html#comments</comments>
		<pubDate>Mon, 06 Feb 2012 13:52:47 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Addins]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=1057</guid>
		<description><![CDATA[&#160;
Ok, so before you ask why on earth would you bother let me explain  
As part of my work over at ClarionAddins I am always looking for way to improve the user experience as [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Ok, so before you ask why on earth would you bother let me explain <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As part of my work over at <a href="http://clarionaddins.com/" target="_blank">ClarionAddins</a> I am always looking for way to improve the user experience as well as stretching my knowledge of .Net programming. I thought it might be nice to use WPF but since the Clarion IDE is targeting v2.0 of the .Net framework this is not so easy. Hence this example!</p>
<p>Of course there are many resources out there related to this topic, see below, but nothing I could discover specific to v2.0 so for me it took a little work to get there. I learnt a lot about reflection along the way!</p>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/ms742215.aspx" target="_blank">Walkthrough: Hosting a WPF Composite Control in Windows Forms</a> </li>
<li><a href="http://www.switchonthecode.com/tutorials/wpf-tutorial-using-wpf-in-winforms" target="_blank">WPF Tutorial &#8211; Using WPF In WinForms</a> </li>
<li><a href="http://wrb.home.xs4all.nl/Articles/Article_WPFViewerXAML_02.htm" target="_blank">A XAML graphics viewer and validator for Windows Forms</a> </li>
</ul>
<p>This code assumes that the v3.5 Framework is installed on the target machine. For production it would of course be necessary to test for this and react accordingly.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
</pre></td><td class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.IO</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Reflection</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Forms</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> ClarionAddins<span style="color: #008000;">.</span><span style="color: #0000FF;">WpfTest</span>
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">public</span> <span style="color: #0600FF; font-weight: bold;">partial</span> <span style="color: #6666cc; font-weight: bold;">class</span> WpfTestForm <span style="color: #008000;">:</span> Form
    <span style="color: #008000;">&#123;</span>
        <span style="color: #0600FF; font-weight: bold;">public</span> WpfTestForm <span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            InitializeComponent<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            AddWpfControl<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
&nbsp;
        <span style="color: #0600FF; font-weight: bold;">private</span> <span style="color: #6666cc; font-weight: bold;">void</span> AddWpfControl<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #008080; font-style: italic;">// You need a full AssemblyQualifiedName for the elementHost class</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> elementHostQualifiedName <span style="color: #008000;">=</span> <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>System<span style="color: #008000;">.</span><span style="color: #0000FF;">Windows</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Forms</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Integration</span><span style="color: #008000;">.</span><span style="color: #0000FF;">ElementHost</span>, WindowsFormsIntegration, Version<span style="color: #008000;">=</span>3<span style="color: #008000;">.</span>0<span style="color: #008000;">.</span>0<span style="color: #008000;">.</span>0, Culture<span style="color: #008000;">=</span>neutral, PublicKeyToken<span style="color: #008000;">=</span>31bf3856ad364e35<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;;</span>
            <span style="color: #008080; font-style: italic;">// Using this it is possible to load the ElementHost class at runtime and create an instance we can use</span>
            Type elemHostType <span style="color: #008000;">=</span> Type<span style="color: #008000;">.</span><span style="color: #0000FF;">GetType</span><span style="color: #008000;">&#40;</span>elementHostQualifiedName, <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #6666cc; font-weight: bold;">object</span> ctrlHost <span style="color: #008000;">=</span> Activator<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateInstance</span><span style="color: #008000;">&#40;</span>elemHostType<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008080; font-style: italic;">// Dock this ElementHost into our WinForms control container</span>
            MethodInfo info <span style="color: #008000;">=</span> elemHostType<span style="color: #008000;">.</span><span style="color: #0000FF;">GetMethod</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Dock<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            elemHostType<span style="color: #008000;">.</span><span style="color: #0000FF;">GetProperty</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Dock<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SetValue</span><span style="color: #008000;">&#40;</span>ctrlHost, DockStyle<span style="color: #008000;">.</span><span style="color: #0000FF;">Fill</span>, <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008080; font-style: italic;">// Finally, add the ElementHost to the WinForms list of controls</span>
            <span style="color: #0600FF; font-weight: bold;">this</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Controls</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Add</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span>Control<span style="color: #008000;">&#41;</span>ctrlHost<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #008080; font-style: italic;">// Now, load the WPF UserControl to be displayed</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> currentPath <span style="color: #008000;">=</span> Path<span style="color: #008000;">.</span><span style="color: #0000FF;">GetDirectoryName</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">new</span> <span style="color: #000000;">System</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Uri</span><span style="color: #008000;">&#40;</span>Assembly<span style="color: #008000;">.</span><span style="color: #0000FF;">GetExecutingAssembly</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">CodeBase</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">AbsolutePath</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> userControlPath <span style="color: #008000;">=</span> Path<span style="color: #008000;">.</span><span style="color: #0000FF;">Combine</span><span style="color: #008000;">&#40;</span>currentPath, <span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>WpfControlLibrary<span style="color: #008000;">.</span><span style="color: #0000FF;">dll</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Assembly assembly <span style="color: #008000;">=</span> Assembly<span style="color: #008000;">.</span><span style="color: #0000FF;">LoadFrom</span><span style="color: #008000;">&#40;</span>userControlPath<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            Type userControlType <span style="color: #008000;">=</span> assembly<span style="color: #008000;">.</span><span style="color: #0000FF;">GetType</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>WpfControlLibrary<span style="color: #008000;">.</span><span style="color: #0000FF;">MyUserControl</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>, <span style="color: #0600FF; font-weight: bold;">true</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            <span style="color: #008080; font-style: italic;">// Create an instance of the UserControl and call the InitializeComponent method</span>
            <span style="color: #6666cc; font-weight: bold;">object</span> userControl <span style="color: #008000;">=</span> Activator<span style="color: #008000;">.</span><span style="color: #0000FF;">CreateInstance</span><span style="color: #008000;">&#40;</span>userControlType<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            info <span style="color: #008000;">=</span> userControlType<span style="color: #008000;">.</span><span style="color: #0000FF;">GetMethod</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>InitializeComponent<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
            info<span style="color: #008000;">.</span><span style="color: #0000FF;">Invoke</span><span style="color: #008000;">&#40;</span>userControl, <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
&nbsp;
            <span style="color: #008080; font-style: italic;">// Last of all, attach the UserControl to the ElementHost !</span>
            elemHostType<span style="color: #008000;">.</span><span style="color: #0000FF;">GetProperty</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>Child<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">.</span><span style="color: #0000FF;">SetValue</span><span style="color: #008000;">&#40;</span>ctrlHost, userControl, <span style="color: #0600FF; font-weight: bold;">null</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></td></tr></table></div>

<p>Here is a screenshot of this technique being used in an addin I am working on:</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/image66.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 3px 15px 3px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="WPF UserControl in an Addin Pad!" border="0" alt="WPF UserControl in an Addin Pad!" src="http://www.clarionedge.com/wp-content/uploads/image_thumb58.png" width="229" height="244" /></a></p>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/development/hosting-wpf-user-control-in-2-0-winforms.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Native Clarion in the Cloud (Azure)</title>
		<link>http://www.clarionedge.com/clarion/native-clarion-in-the-cloud-azure.html</link>
		<comments>http://www.clarionedge.com/clarion/native-clarion-in-the-cloud-azure.html#comments</comments>
		<pubDate>Thu, 05 Jan 2012 20:02:51 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Azure]]></category>
		<category><![CDATA[Clarion]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=1034</guid>
		<description><![CDATA[&#160;
The following is a simple example of running a native clarion win32 application as a cloud service.
Technologies used:

Clarion6 by Softvelocity (C7, C8 whatever should work fine)
NetTalk by Capesoft
Windows Azure by Microsoft

For the Impatient
See it running [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p>The following is a simple example of running a native clarion win32 application as a cloud service.</p>
<p>Technologies used:</p>
<ul>
<li>Clarion6 by <a href="http://www.softvelocity.com/" target="_blank">Softvelocity</a> (C7, C8 whatever should work fine)</li>
<li><a href="http://www.capesoft.com/accessories/netsp.htm" target="_blank">NetTalk</a> by Capesoft</li>
<li><a href="http://www.microsoft.com/windowsazure/learn/get-started/" target="_blank">Windows Azure</a> by Microsoft</li>
</ul>
<h3>For the Impatient</h3>
<p>See it running – <a href="http://wazclariontest.cloudapp.net/" target="_blank">WazClarion</a> (Waz – <strong>W</strong>indows <strong>Az</strong>ure!)</p>
<h3>Say what?!</h3>
<p>Using the PackAndDeploy example from the Smarx <a href="http://blog.smarx.com/posts/tutorial-running-the-mongoose-web-server-in-windows-azure" target="_blank">Running the Mongoose Web Server in Windows Azure</a> tutorial I have managed to successfully test and deploy a clarion application to the Windows Azure cloud service! Read on for some more info on the steps involved. Leave a comment or send me an email if you have any questions.</p>
<h3>Prerequisites</h3>
<p>Install the <a href="http://www.microsoft.com/windowsazure/learn/get-started/" target="_blank">Windows Azure SDK</a> to your dev machine.</p>
<h4>Step 1 –  Git clone the PackAndDeploy to a dev folder.</h4>
<p>See Step 1 in the <a href="http://blog.smarx.com/posts/tutorial-running-the-mongoose-web-server-in-windows-azure" target="_blank">Quick Walkthrough</a> from Smarx.</p>
<p>Additionally I highly recommend following that example and making sure that your Azure SDK and emulator are setup and running correctly and get a little familiar with Azure before you start adding clarion to the mix.</p>
<h4>Step 2 – Prepare your clarion APP</h4>
<p>I used the “BasicBrowseAndForm” example that comes with NetTalk. Anything that can reply to HTTP requests should work fine.</p>
<p>There were a couple of changes to get the example working</p>
<ul>
<li>WebServer procedure, in ThisWebServer.Open, before parent</li>
</ul>
<pre>SELF.Port = Command(‘port’)
SELF._ServerIP = Command(‘ip’)</pre>
<ul>
<li>WebServer procedure, in ThisWindow.Init</li>
</ul>
<pre>GlobalErrors.SetSilent(TRUE)</pre>
<ul>
<li>In application global properties, file control tab set the access mode to <strong>ReadOnly</strong>.</li>
</ul>
<h4>Step 3 – Adjust the PackAndDeploy example to work with the clarion app</h4>
<p>Delete all the files in the WorkerRole sub directory except for the Run.cmd</p>
<p>Edit the WorkerRole\Run.cmd file to look like this:</p>
<pre>cd /d "%~dp0"
start /w web1.exe port=%PORT% ip=%ADDRESS%</pre>
<p>Copy your clarion EXE and support directories into the WorkerRole folder. Anything in this folder gets included in the deployment package.</p>
<h4>Step 4 – Deploy to the cloud</h4>
<p>Use the “pack.cmd” from the PackAndDeploy example to create a package for upload and use the Windows Azure portal to deploy your application!</p>
<h4>Step 5 – See it in Action!</h4>
<p><a title="http://wazclariontest.cloudapp.net/" href="http://wazclariontest.cloudapp.net/">http://wazclariontest.cloudapp.net/</a></p>
<p>Ok so it is not perfect yet, I had to tell clarion to only access the files in ReadOnly mode. You would need to look into the various storage options to fix that if you really want to use TPS, a better alternative will most likely be to use SQL server for your data needs. Error handling and diagnostics would need some forethought. There is a way to access a remote desktop session for debugging via a GUI if you want though. The pack and deploy process can probably do with some further automation too <img class="wlEmoticon wlEmoticon-smile" style="border-style: none;" src="http://www.clarionedge.com/wp-content/uploads/wlEmoticon-smile3.png" alt="Smile" />.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/native-clarion-in-the-cloud-azure.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clarion syntax for the Sublime Text editor</title>
		<link>http://www.clarionedge.com/clarion/general/clarion-syntax-for-the-sublime-text-editor.html</link>
		<comments>http://www.clarionedge.com/clarion/general/clarion-syntax-for-the-sublime-text-editor.html#comments</comments>
		<pubDate>Fri, 30 Dec 2011 16:25:50 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Clarion]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=1028</guid>
		<description><![CDATA[&#160;
Sublime Text is a sophisticated text editor for code, html and prose. You&#8217;ll love the slick user interface and extraordinary features.

I must say that after a few days of use I totally agree! This is [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<blockquote><p align="center"><a href="http://www.sublimetext.com/" target="_blank">Sublime Text</a> is a sophisticated text editor for code, html and prose. You&#8217;ll love the slick user interface and extraordinary features.</p>
</blockquote>
<p align="left">I must say that after a few days of use I totally agree! This is looking like the top contender to replace <a href="http://textpad.com/" target="_blank">TextPad</a>, something I have been trying to do for years without any success. TextPad is great but falls short in a few places and until now I have not found anything that comes close to its ease of use and performance…</p>
<p align="left">Of course there is no syntax definition available for clarion files by default so I have made a start on one. </p>
<p align="left">Disclaimer, I am new to Sublime Text as well as GitHub but I will plug away at it for a while and see what comes out!</p>
<p align="left">You should take a look at the official help for <a href="http://sublimetext.info/docs/en/extensibility/syntaxdefs.html" target="_blank">creating Syntax Definitions</a> before trying to understand the files in the GitHub repo. When it is a little more mature I will create a package that can be loaded easily, for now you will have to do it the hard way <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="left">Grab the code for <a href="https://github.com/fushnisoft/SublimeClarion" target="_blank">SublimeClarion on GitHub</a>.</p>
<p align="left"><a href="http://www.clarionedge.com/wp-content/uploads/image65.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.clarionedge.com/wp-content/uploads/image_thumb57.png" width="244" height="179" /></a></p>
<p align="left">-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/general/clarion-syntax-for-the-sublime-text-editor.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing the HtmlHelp2 addin from Clarion IDE</title>
		<link>http://www.clarionedge.com/clarion/addins/removing-the-htmlhelp2-addin-from-clarion-ide.html</link>
		<comments>http://www.clarionedge.com/clarion/addins/removing-the-htmlhelp2-addin-from-clarion-ide.html#comments</comments>
		<pubDate>Fri, 30 Dec 2011 15:59:12 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Addins]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=1024</guid>
		<description><![CDATA[&#160;
This one came to my attention a while back because of something that happens in the “Make all toolbars the same size” feature of my MainToolbarExtras addin. When the addin first adjusts the toolbar sizes [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>This one came to my attention a while back because of something that happens in the “Make all toolbars the same size” feature of my <a href="http://clarionaddins.com/addins/MainToolbarExtras.html" target="_blank">MainToolbarExtras</a> addin. When the addin first adjusts the toolbar sizes it would trigger the HtmlHelp2 template to refresh its indexes. While not much of an issue depending on your hardware, this takes at least a little time and is annoying. Also, having a gazillion Pads in the IDE for a help system that is of no use just seems silly.</p>
<p>Normally you can just go to the AddinManager, select “Show Pre Installed Addins” and disable the addin you don’t want.</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/image64.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.clarionedge.com/wp-content/uploads/image_thumb56.png" width="244" height="244" /></a></p>
<p>However, the HtmlHelp2 addin is a little bit special. It contains a special property in the addin definition; <strong><em>addInManagerHidden = &quot;true&quot;</em></strong> so you cannot actually see it in the Addin Manager! </p>
<p>The way to get rid of it is to delete or rename the HtmlHelp2 addin files.</p>
<ol>
<li>Close the IDE </li>
<li>Navigate to <em>\Clarion8\Bin\Addins\Misc\HtmlHelp2</em> </li>
<li>Delete or rename the two <em>*.addin</em> files (if you choose to rename them, rename the extension e.g. <em>HtmlHelp2.addin.bak</em>)</li>
<li>Next time you start the IDE the HtmlHelp2 Menu items and Pads will no longer be there!</li>
</ol>
<p>&#160;</p>
<p>Of course you will have to redo this each time you load a new release from SoftVelocity…</p>
<p>Interestingly it <em>should </em>be possible for SV to “register” their help file so that it displays in the HtmlHelp2 UI but for some reason they have not done this.</p>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/addins/removing-the-htmlhelp2-addin-from-clarion-ide.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PropertyPadExtras &#8211; Automatic save/restore grid state!</title>
		<link>http://www.clarionedge.com/clarion/addins/propertypadextras-automatic-saverestore-grid-state.html</link>
		<comments>http://www.clarionedge.com/clarion/addins/propertypadextras-automatic-saverestore-grid-state.html#comments</comments>
		<pubDate>Tue, 27 Sep 2011 12:09:27 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Addins]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=935</guid>
		<description><![CDATA[PropertyPadExtras is available over at http://www.clarionaddins.com/addins/PropertyGridExtras.html
NOTE: This is still a work in progress but I plan to have it ready for release next week. 
So far it is working for all the main property grids [...]]]></description>
			<content:encoded><![CDATA[<p><em>PropertyPadExtras is available over at </em><a title="http://www.clarionaddins.com/addins/PropertyGridExtras.html" href="http://www.clarionaddins.com/addins/PropertyGridExtras.html"><em>http://www.clarionaddins.com/addins/PropertyGridExtras.html</em></a></p>
<p>NOTE: This is still a work in progress but I plan to have it ready for release next week. </p>
<p>So far it is working for all the main property grids except those in reports. I am very excited to have got this code working and I think it will be a huge productivity boost.</p>
<p>The property grid state is saved on a per &quot;context&quot; basis. This means that, for example, all buttons in the window designer will have the same expanded/contracted categories in their property grid. Same with lists, prompts, etc.</p>
<p>This week I will be concentrating on stabilising and testing this new feature as well as making sure it also works in all areas of the IDE! If I get a chance some other ideas are: expand/contract all buttons, filter grid items, hide grid items.</p>
<p><a href="http://www.clarionedge.com/files/PropertyGridExtras_StateDemo.swf.html" target="_blank">Here</a> is a short video showing how it works.</p>
<p>&#160;</p>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/addins/propertypadextras-automatic-saverestore-grid-state.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zeta Color Editor for Clarion.</title>
		<link>http://www.clarionedge.com/clarion/zeta-color-editor-for-clarion.html</link>
		<comments>http://www.clarionedge.com/clarion/zeta-color-editor-for-clarion.html#comments</comments>
		<pubDate>Tue, 20 Sep 2011 10:20:37 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Clarion]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[interop]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=915</guid>
		<description><![CDATA[&#160;
Inspired by a recent newsgroup thread and my latest experiments in Clarion &#8211;&#62; DotNet interop I have put together a simple program that shows you how to use the Zeta Color Editor from a clarion [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Inspired by a recent newsgroup thread and my latest experiments in Clarion &#8211;&gt; <a href="http://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports#TOC-Marshalling-sample" target="_blank">DotNet interop</a> I have put together a simple program that shows you how to use the Zeta Color Editor from a clarion app!</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/image63.png"><img style="background-image: none; border-bottom: 0px; border-left: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://www.clarionedge.com/wp-content/uploads/image_thumb55.png" width="244" height="149" /></a></p>
<p>&#160;</p>
<p>The <a href="http://www.codeproject.com/KB/miscctrl/ZetaColorEditor.aspx" target="_blank">Zeta Color Editor</a> is from an article in The Code Project and I have adapted it slightly to include a “Clarion Code” entry control as well as the “HTML code” it comes with. You may remember this control from the awesome <a href="http://www.clarionaddins.com/addins/InsertClarionColor.html" target="_blank">InsertClarionColor addin</a>.</p>
<p>This is the complete C# code used to call the Zeta Color Editor:</p>

<div class="wp_syntax"><div class="code"><pre class="csharp" style="font-family:monospace;"><span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Drawing</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">System.Windows.Forms</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">RGiesecke.DllExport</span><span style="color: #008000;">;</span>
<span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008080;">ZetaColorEditor.Runtime</span><span style="color: #008000;">;</span>
&nbsp;
<span style="color: #0600FF; font-weight: bold;">namespace</span> ColorPicker
<span style="color: #008000;">&#123;</span>
    <span style="color: #0600FF; font-weight: bold;">internal</span> <span style="color: #0600FF; font-weight: bold;">static</span> <span style="color: #6666cc; font-weight: bold;">class</span> UnmanagedExports
    <span style="color: #008000;">&#123;</span>
        <span style="color: #008000;">&#91;</span>DllExport<span style="color: #008000;">&#40;</span><span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>ShowColorDialog<span style="color: #008000;">&amp;</span>quot<span style="color: #008000;">;</span>, CallingConvention <span style="color: #008000;">=</span> <span style="color: #000000;">System.<span style="color: #0000FF;">Runtime</span><span style="color: #008000;">.</span><span style="color: #0000FF;">InteropServices</span></span><span style="color: #008000;">.</span><span style="color: #0000FF;">CallingConvention</span><span style="color: #008000;">.</span><span style="color: #0000FF;">StdCall</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#93;</span>
        <span style="color: #0600FF; font-weight: bold;">static</span> Int32 ShowColorDialog<span style="color: #008000;">&#40;</span>Int32 lastSelectedColor<span style="color: #008000;">&#41;</span>
        <span style="color: #008000;">&#123;</span>
            <span style="color: #6666cc; font-weight: bold;">string</span> colorstr <span style="color: #008000;">=</span> <span style="color: #6666cc; font-weight: bold;">string</span><span style="color: #008000;">.</span><span style="color: #0000FF;">Empty</span><span style="color: #008000;">;</span>
            <span style="color: #0600FF; font-weight: bold;">using</span> <span style="color: #008000;">&#40;</span>ColorEditorForm cd <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> ColorEditorForm<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">&#41;</span>
            <span style="color: #008000;">&#123;</span>
                ColorConverter cc <span style="color: #008000;">=</span> <span style="color: #008000;">new</span> ColorConverter<span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                cd<span style="color: #008000;">.</span><span style="color: #0000FF;">SelectedColor</span> <span style="color: #008000;">=</span> ColorTranslator<span style="color: #008000;">.</span><span style="color: #0000FF;">FromWin32</span><span style="color: #008000;">&#40;</span>lastSelectedColor<span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                <span style="color: #0600FF; font-weight: bold;">if</span> <span style="color: #008000;">&#40;</span>cd<span style="color: #008000;">.</span><span style="color: #0000FF;">ShowDialog</span><span style="color: #008000;">&#40;</span><span style="color: #008000;">&#41;</span> <span style="color: #008000;">==</span> DialogResult<span style="color: #008000;">.</span><span style="color: #0000FF;">OK</span><span style="color: #008000;">&#41;</span>
                <span style="color: #008000;">&#123;</span>
                    <span style="color: #0600FF; font-weight: bold;">return</span> ColorTranslator<span style="color: #008000;">.</span><span style="color: #0000FF;">ToWin32</span><span style="color: #008000;">&#40;</span>cd<span style="color: #008000;">.</span><span style="color: #0000FF;">SelectedColor</span><span style="color: #008000;">&#41;</span><span style="color: #008000;">;</span>
                <span style="color: #008000;">&#125;</span>
            <span style="color: #008000;">&#125;</span>
            <span style="color: #0600FF; font-weight: bold;">return</span> lastSelectedColor<span style="color: #008000;">;</span>
        <span style="color: #008000;">&#125;</span>
    <span style="color: #008000;">&#125;</span>
<span style="color: #008000;">&#125;</span></pre></div></div>

<p>The clarion declaration looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="clarion" style="font-family:monospace;">  MODULE('ColorPicker.dll')
ShowColorDialog PROCEDURE(LONG lastSelectedColor),LONG,NAME('ShowColorDialog'),PASCAL,RAW,DLL(TRUE)
  END</pre></div></div>

<p>The zip file contains a clarion 8 solution (app file, etc), compiled exe for the impatient, the C# wrapper (ColorPicker.dll) and the ZetaColorEditor.dll. This should be everything you need to do your own testing. The original source for the ZetaColorEditor is found at the Code Project link at the beginning of this post, my customisations can be found at the <a href="https://code.google.com/p/clarion-addins/" target="_blank">clarion-addins</a> google project page.</p>
<div class="download">
<table border="0">
<tbody>
<tr>
<th>Download:</th>
<td><a rel="nofollow" title="Download version 0.1 of ColorPickerTest.zip" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/ColorPickerTest.zip');" href="http://www.clarionedge.com/downloads/examples/ColorPickerTest.zip"><img src="http://www.clarionedge.com/wp-content/plugins/drain-hole/images/download.png" alt="download" width="128" height="128"/></a> <a rel="nofollow" title="Download version 0.1 of ColorPickerTest.zip" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/ColorPickerTest.zip');" href="http://www.clarionedge.com/downloads/examples/ColorPickerTest.zip">ColorPickerTest.zip</a></td>
</tr>
<tr>
<th>Version:</th>
<td>0.1</td>
</tr>
<tr>
<th>Updated:</th>
<td>September 20, 2011</td>
</tr>
<tr>
<th>Size:</th>
<td>852.29 KB</td>
</tr>
<tr>
<th>Downloads:</th>
<td>36</td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/zeta-color-editor-for-clarion.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>www.ClarionAddins.com has gone live!</title>
		<link>http://www.clarionedge.com/clarion/addins/www-clarionaddins-com-has-gone-live.html</link>
		<comments>http://www.clarionedge.com/clarion/addins/www-clarionaddins-com-has-gone-live.html#comments</comments>
		<pubDate>Sun, 04 Sep 2011 16:13:45 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Addins]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=898</guid>
		<description><![CDATA[I am astonished it has taken me this long to post an announcement here, it just goes to show how busy I have been I think. Anyway, a long time in the making with loads [...]]]></description>
			<content:encoded><![CDATA[<p>I am astonished it has taken me this long to post an announcement here, it just goes to show how busy I have been I think. Anyway, a long time in the making with loads of little tweaks required I am now proud to announce that my new website, dedicated to Addins for the Clarion IDE has been released for public consumption! <img src='http://www.clarionedge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://clarionaddins.com" target="_blank">http://clarionaddins.com</a></p>
<p>I plan to continue to blog here, the new site is more about making the addins easier to find and support.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/addins/www-clarionaddins-com-has-gone-live.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SQL Data Connection Dialog Source Code</title>
		<link>http://www.clarionedge.com/windows/development/sql-data-connection-dialog-source-code.html</link>
		<comments>http://www.clarionedge.com/windows/development/sql-data-connection-dialog-source-code.html#comments</comments>
		<pubDate>Tue, 09 Aug 2011 19:25:10 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/windows/development/sql-data-connection-dialog-source-code.html</guid>
		<description><![CDATA[Whilst looking for something else today I came across this little nugget. Something that should&#160; be handy for anyone connecting to SQL servers wanting to build a connection string at runtime.
Here is a link to [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst looking for something else today I came across this little nugget. Something that should&#160; be handy for anyone connecting to SQL servers wanting to build a connection string at runtime.</p>
<p>Here is a link to the blog:</p>
<p><a href="http://blogs.msdn.com/b/vsdata/archive/2010/02/02/data-connection-dialog-source-code-is-released-on-code-gallery.aspx" target="_blank">Data Connection Dialog Source Code is released on Code Gallery!</a></p>
<p>And a link to the source code just in case:</p>
<p><a title="http://code.msdn.microsoft.com/Connection/" href="http://code.msdn.microsoft.com/Connection/">http://code.msdn.microsoft.com/Connection/</a></p>
<p>&#160;</p>
<p>Enjoy,   <br />Brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/development/sql-data-connection-dialog-source-code.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Addin downloads still broken for IE users&#8230; *FIXED*</title>
		<link>http://www.clarionedge.com/clarion/addins/addin-downloads-still-broken-for-ie-users.html</link>
		<comments>http://www.clarionedge.com/clarion/addins/addin-downloads-still-broken-for-ie-users.html#comments</comments>
		<pubDate>Tue, 12 Jul 2011 02:52:48 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Addins]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/clarion/addins/addin-downloads-still-broken-for-ie-users.html</guid>
		<description><![CDATA[This appears to be fixed now. I had recently installed the &#34;Quick Cache&#34; plugin for wordpress which was messing with the downloads. If you still have problems please let me know. 
I am really sorry [...]]]></description>
			<content:encoded><![CDATA[<p><span class="attention">This appears to be fixed now. I had recently installed the &quot;Quick Cache&quot; plugin for wordpress which was messing with the downloads. If you still have problems please let me know. </span>
<p>I am really sorry about this, I thought I had it fixed a few months back but it seems to have returned. Thanks to Alan or helping me track down the problem. It could be IE or it could be the plugin I am using for downloads. I will have another look into it tomorrow and hopefully find the cause. </p>
<p>In the meantime, Firefox seems to be fine and I guess other browsers too.</p>
<p>Oh, and I am still working like mad to get the new website up… this one is specifically for the addins and I am very excited about it. It is surprising how long the little details take though!</p>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/addins/addin-downloads-still-broken-for-ie-users.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recommended reading for anyone dealing with MSSQL</title>
		<link>http://www.clarionedge.com/clarion/sql/recommended-reading-for-anyone-dealing-with-mssql.html</link>
		<comments>http://www.clarionedge.com/clarion/sql/recommended-reading-for-anyone-dealing-with-mssql.html#comments</comments>
		<pubDate>Fri, 17 Jun 2011 08:38:10 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/clarion/sql/recommended-reading-for-anyone-dealing-with-mssql.html</guid>
		<description><![CDATA[I am not sure if I have mentioned this blog before but it is worth mentioning again anyway. I always enjoy reading the articles over at SQL Fool, I have learnt a lot there! The [...]]]></description>
			<content:encoded><![CDATA[<p>I am not sure if I have mentioned this blog before but it is worth mentioning again anyway. I always enjoy reading the articles over at <a href="http://sqlfool.com/" target="_blank">SQL Fool</a>, I have learnt a lot there! The updates are not that frequent but they are worth waiting for. </p>
<p>Todays update: <a href="http://sqlfool.com/2011/06/index-defrag-script-v4-1/" target="_blank">Index Defrag Script, v4.1</a></p>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/sql/recommended-reading-for-anyone-dealing-with-mssql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.clarionedge.com/category/clarion/feed ) in 0.63524 seconds, on Feb 7th, 2012 at 11:08 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 7th, 2012 at 12:08 pm UTC -->
