<?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; Examples</title>
	<atom:link href="http://www.clarionedge.com/category/clarion/examples/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>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>QuickStartTemplates addin example</title>
		<link>http://www.clarionedge.com/clarion/examples/quickstarttemplates-addin-example.html</link>
		<comments>http://www.clarionedge.com/clarion/examples/quickstarttemplates-addin-example.html#comments</comments>
		<pubDate>Wed, 27 Apr 2011 11:45:52 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Addins]]></category>
		<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=655</guid>
		<description><![CDATA[&#160;
This is a very basic addin which shows you how you can add additional items in the Quick Starts section of the New Solution, Project or Application dialog. It is based on the shipping quick [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>This is a very basic addin which shows you how you can add additional items in the <em>Quick Starts</em> section of the <em>New Solution, Project or Application</em> dialog. It is based on the shipping quick starts found in the ClarionWin backend binding and hacked together to give you an idea of what is possible. </p>
<p><strong>Disclaimer:</strong> I have not actually tested the code generated by this example project template but it should give you an idea of how it works!</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/image56.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="New solution dialog showing the example quick start" border="0" alt="New solution dialog showing the example quick start" src="http://www.clarionedge.com/wp-content/uploads/image_thumb48.png" width="244" height="231" /></a>&#160;<a href="http://www.clarionedge.com/wp-content/uploads/image57.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="This example creates a new project/solution with basic INC/CLW files pre-loaded" border="0" alt="This example creates a new project/solution with basic INC/CLW files pre-loaded" src="http://www.clarionedge.com/wp-content/uploads/image_thumb49.png" width="244" height="118" /></a></p>
<p>There are a few things that are done incorrectly in this example, such as not using string resources for the prompts but you should get the idea. You can inspect the code once you have installed the addin by looking in the %appdata%\SoftVelocity\Clarion\7.0\AddIns\ folder or just extract the contents of the sdaddin package (it is just a zip file). There is no DLL associated with this, all you need is a .addin file which defines the search path for the XPT files which define the quick starts.</p>
<div class="download">
<table border="0">
<tbody>
<tr>
<th>Download:</th>
<td><a rel="nofollow" title="Download version 0.1 of QuickStartTemplates.sdaddin" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/3rdParty/QuickStartTemplates.sdaddin');" href="http://www.clarionedge.com/downloads/3rdParty/QuickStartTemplates.sdaddin"><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 QuickStartTemplates.sdaddin" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/3rdParty/QuickStartTemplates.sdaddin');" href="http://www.clarionedge.com/downloads/3rdParty/QuickStartTemplates.sdaddin">QuickStartTemplates.sdaddin</a></td>
</tr>
<tr>
<th>Version:</th>
<td>0.1</td>
</tr>
<tr>
<th>Updated:</th>
<td>June 3, 2011</td>
</tr>
<tr>
<th>Size:</th>
<td>1.49 KB</td>
</tr>
<tr>
<th>Downloads:</th>
<td>95</td>
</tr>
</tbody>
</table></div>
<p>-brahn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/examples/quickstarttemplates-addin-example.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Generate SubVersion template</title>
		<link>http://www.clarionedge.com/clarion/examples/generate-subversion-template.html</link>
		<comments>http://www.clarionedge.com/clarion/examples/generate-subversion-template.html#comments</comments>
		<pubDate>Tue, 19 Apr 2011 10:01:24 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[Templates]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=632</guid>
		<description><![CDATA[A while back on the ClarionLive skype chat I mentioned this template and promised to upload a version. I completely forgot all about it a few days later but here it is finally! 
This template [...]]]></description>
			<content:encoded><![CDATA[<p>A while back on the <a href="http://www.clarionlive.com/" target="_blank">ClarionLive</a> skype chat I mentioned this template and promised to upload a version. I completely forgot all about it a few days later but here it is finally! </p>
<p>This template just calls up <a href="http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-subwcrev.html" target="_blank">SubWCRev.exe</a> which is shipped with <a href="http://tortoisesvn.net/" target="_blank">TortoiseSVN</a>. After that it is up to you to arrange to compile the details into your EXE or DLL. This is very easy to do using the VersionRes.TPL shipped with Clarion but it should also work fine with any other similar template designed to include values from an external file. </p>
<p>At this point I don’t intend to ship a fully working example but hopefully the following explanation will be enough to get you going.</p>
<h3>The Template:</h3>

<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
44
45
46
47
48
49
50
</pre></td><td class="code"><pre class="clarion" style="font-family:monospace;">#TEMPLATE(ClarionEdge_GenerateSubVersion, 'ClarionEdge Generate Sub Version'), FAMILY('ABC'),FAMILY('CW20')
#!*********************************************************************************************************
#EXTENSION(ce_EnableGenerateSubVersion,'Generate SubVersion Revision Number'),APPLICATION,FIRST
#!*********************************************************************************************************
#SHEET 
  #TAB('General')
    #DISPLAY('Generate SubVersion'), AT(10,,,30), PROP(PROP:FontStyle, FONT:bold), PROP(PROP:FontSize, 14)
    #DISPLAY('This Extension Template will enable automatic generating of the SubVersion Revision Number for the specified working copy.'), AT(10,,150, 30), PROP(PROP:FontStyle, FONT:italic)
    #DISPLAY('')
    #PROMPT('Activate Generate Subversion',CHECK), %GenerateSubVersionON, DEFAULT(0), AT(10)
    #DISPLAY('')    
    #BOXED(''), WHERE(%GenerateSubVersionON=1)    
       #PROMPT('Location of SubWCRev:',OPENDIALOG( 'Select SubWCRev', 'SubWCRev.exe|SubWCRev.exe' )),%RunSubWCRev,DEFAULT('%ProgramFiles%\TortoiseSVN\bin\SubWCRev.exe')
       #DISPLAY('Can be found in &quot;%ProgramFiles%\TortoiseSVN\bin\&quot;'), PROP(PROP:FontStyle, FONT:italic), PROP(PROP:FontColor, 00808080h)
       #DISPLAY('')
       #PROMPT('Working copy root:',@s255),%RunParamRoot,DEFAULT('.\')
       #PROMPT('Source version file:',OPENDIALOG( 'Source Version File', 'Source Version Information|*.in|All Files|*.*' )),%RunParamSource,DEFAULT('SubVersion.in')
       #PROMPT('Destination version file:',OPENDIALOG( 'Destination Version File', 'Source Version Information|*.in|All Files|*.*' )),%RunParamDest,DEFAULT('SubVersion')
       #DISPLAY('e.g. Use this destination file as the input for versionres.tpl'), PROP(PROP:FontStyle, FONT:italic), PROP(PROP:FontColor, 00808080h)
       #DISPLAY('')
       #DISPLAY('Run Command Used (refreshed after generation):'), PROP(PROP:FontStyle, FONT:italic), PROP(PROP:FontColor, 00808080h)
       #PROMPT('Run Command:',TEXT),%RunCommand,PROP(PROP:READONLY,1), PROP(PROP:Background, 00808080h)
    #ENDBOXED
  #ENDTAB
#ENDSHEET
#!
#AT(%AfterGeneratedApplication), WHERE(%GenerateSubVersionON=%TRUE)
  #IF( NOT FILEEXISTS( %RunParamDest ) )
    #INSERT(%BuildCommand)
  #ENDIF
#ENDAT
#!
#AT(%ShipList), WHERE(%GenerateSubVersionON=%TRUE)
  #REPLACE(%RunParamDest &amp; '.version' , %RunParamDest)
  #REMOVE(%RunParamDest)
#ENDAT
#!
#!****************************************************************
#GROUP(%BuildCommand)
#!****************************************************************
#DECLARE(%ThisRootParam)
#SET(%ThisRootParam, %RunParamRoot)
#SET(%RunCommand, '&quot;' &amp; %RunSubWCRev &amp; '&quot; ' &amp; %ThisRootParam &amp; ' ' &amp; %RunParamSource &amp; ' ' &amp; %RunParamDest)
#! Update 26-01-2011 - now uses a batch file because #RUN is broken again PTSS#37470 
#CREATE('GenerateSubVersion.bat')
%RunCommand
#CLOSE('GenerateSubVersion.bat')
#RUN('GenerateSubVersion.bat'),WAIT
#REPLACE(%RunParamDest &amp; '.version' , %RunParamDest)
#!****************************************************************</pre></td></tr></table></div>

<p>&#160;</p>
<p><span class="note">This template has only been tested with Clarion7 ABC but it should work fine in C6 as well as legacy applications.</span> </p>
<h3>Some screenshots that should explain how I use it:</h3>
<p>&#160;</p>
<p>1. Add the global extension to your application</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/image53.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="GenerateSubVersion template dialog with default values" border="0" alt="GenerateSubVersion template dialog with default values" src="http://www.clarionedge.com/wp-content/uploads/image_thumb45.png" width="227" height="244" /></a></p>
<p>Note the name of the “Source version file”. This is the template used as the input for SubWCRev. Here is an example of how you might want to use it:</p>
<p><span class="note">You will need to create this “SubVersion.in” file yourself. The destination file “SubVersion” is generated for you)</span></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
44
45
46
47
</pre></td><td class="code"><pre class="clarion" style="font-family:monospace;">! These values are compiled into the application version file.
! The indenting is intended to match the indenting already in the destination file.
PRODUCTVERSION 1,1,0,$WCREV$
      VALUE &quot;ProductName&quot;, &quot;TestGenerateSubVersion\0&quot;
      VALUE &quot;ProductVersion&quot;, &quot;5.1.$WCREV$.$WCDATE=%d %B %Y$&quot;
&nbsp;
&nbsp;
==================================
Format options for $WCDATE$:
&nbsp;
strftime 
Syntax: 
  #include &lt;ctime&gt;
  size_t strftime( char *str, size_t maxsize, const char *fmt, struct tm *time );
&nbsp;
The function strftime() formats date and time information from time to a format specified by fmt, then stores the result in str (up to maxsize characters). Certain codes may be used in fmt to specify different types of time:
&nbsp;
Code Meaning 
%a abbreviated weekday name (e.g. Fri) 
%A full weekday name (e.g. Friday) 
%b abbreviated month name (e.g. Oct) 
%B full month name (e.g. October) 
%c the standard date and time string 
%d day of the month, as a number (1-31) 
%H hour, 24 hour format (0-23) 
%I hour, 12 hour format (1-12) 
%j day of the year, as a number (1-366) 
%m month as a number (1-12). Note: some versions of Microsoft Visual C++ may use values that range from 0-11. 
%M minute as a number (0-59) 
%p locale's equivalent of AM or PM 
%S second as a number (0-59) 
%U week of the year, (0-53), where week 1 has the first Sunday 
%w weekday as a decimal (0-6), where Sunday is 0 
%W week of the year, (0-53), where week 1 has the first Monday 
%x standard date string 
%X standard time string 
%y year in decimal, without the century (0-99) 
%Y year in decimal, with the century 
%Z time zone name 
%% a percent sign 
&nbsp;
The strftime() function returns the number of characters put into str, or zero if an error occurs.
&nbsp;
Related topics: 
gmtime
localtime
time</pre></td></tr></table></div>

<p>2. Add the global Version Resource template and configure it to use the destination file specified in the GenerateSubVersion template:</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/image54.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Clarions VersionRes.tpl configured to use an external file" border="0" alt="Clarions VersionRes.tpl configured to use an external file" src="http://www.clarionedge.com/wp-content/uploads/image_thumb46.png" width="244" height="164" /></a></p>
<p>3. Compile your application and if all goes well you should now have your SubVersion build compiled into your version resource!<br />
  <br /><a href="http://www.clarionedge.com/wp-content/uploads/image55.png"><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Compiled EXE with SVN revision information!" border="0" alt="Compiled EXE with SVN revision information!" src="http://www.clarionedge.com/wp-content/uploads/image_thumb47.png" width="181" height="244" /></a></p>
<p>The SVN revision in this example is &quot;2&quot; and as you can see I have chosen to include the rev date as well. The date could be useful to automatically include the Copyright year for example…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/examples/generate-subversion-template.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A clarion version of System.AddMonths</title>
		<link>http://www.clarionedge.com/clarion/a-clarion-version-of-systemaddmonths.html</link>
		<comments>http://www.clarionedge.com/clarion/a-clarion-version-of-systemaddmonths.html#comments</comments>
		<pubDate>Fri, 20 Nov 2009 17:10:25 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Clarion]]></category>
		<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/uncategorized/a-clarion-version-of-systemaddmonths.html</guid>
		<description><![CDATA[Today at work I needed some code to Add “x” months to a given date. System.AddMonths looked like the kind of thing I was after but I needed it implemented in clarion code.
Not hard but [...]]]></description>
			<content:encoded><![CDATA[<p>Today at work I needed some code to Add “x” months to a given date. <a href="http://msdn.microsoft.com/en-us/library/system.datetime.addmonths.aspx" target="_blank">System.AddMonths</a> looked like the kind of thing I was after but I needed it implemented in clarion code.</p>
<p>Not hard but nice to have.</p>
<p>Thanks Mark for the assistance!</p>
<p>Some examples:</p>
<ol>
<li>05-Oct-2009 + 1 Month = 05-Nov-2009</li>
<li>31-Oct-2990 + 1 Month = 30-Nov-2009</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="clarion" style="font-family:monospace;">AddMonths PROCEDURE  (LONG pDate, BYTE pMonths) !,LONG
originalDay BYTE
returnDate  LONG
  CODE
  originalDay = Day(pDate)
&nbsp;
  returnDate = Date(Month(pDate) + pMonths, Day(pDate), Year(pDate))
&nbsp;
  IF Day(returnDate) &lt;&gt; originalDay
    returnDate = Date(Month(returnDate), 1,  Year(returnDate)) - 1
  END
&nbsp;
  RETURN returnDate</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/a-clarion-version-of-systemaddmonths.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Embedding Mozilla in a Clarion Window</title>
		<link>http://www.clarionedge.com/clarion/examples/embedding-mozilla.html</link>
		<comments>http://www.clarionedge.com/clarion/examples/embedding-mozilla.html#comments</comments>
		<pubDate>Sun, 15 Mar 2009 13:08:22 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=214</guid>
		<description><![CDATA[Here is a very quick and dirty example of embedding a web browser control in a clarion window.
To use the Mozilla example you will need to download and install the Mozilla ActiveX Control from here:
http://www.iol.ie/~locka/mozilla/control.htm#download
Enjoy!




Download:
 [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a very <strong><em>quick and dirty</em></strong> example of embedding a web browser control in a clarion window.</p>
<p>To use the Mozilla example you will need to download and install the Mozilla ActiveX Control from here:</p>
<p><a href="http://www.iol.ie/~locka/mozilla/control.htm#download" target="_blank">http://www.iol.ie/~locka/mozilla/control.htm#download</a></p>
<p>Enjoy!</p>
<div class="download">
<table border="0">
<tbody>
<tr>
<th>Download:</th>
<td><a rel="nofollow" title="Download version 0.1 of EmbMozilla.app" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/EmbMozilla.app');" href="http://www.clarionedge.com/downloads/examples/EmbMozilla.app"><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 EmbMozilla.app" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/EmbMozilla.app');" href="http://www.clarionedge.com/downloads/examples/EmbMozilla.app">EmbMozilla.app</a></td>
</tr>
<tr>
<th>Version:</th>
<td>0.1</td>
</tr>
<tr>
<th>Updated:</th>
<td>March 16, 2009</td>
</tr>
<tr>
<th>Size:</th>
<td>48.25 KB</td>
</tr>
<tr>
<th>Downloads:</th>
<td>331</td>
</tr>
<tr>
<th>Details:</th>
<td>Clarion App file created with Clarion 6.3</td>
</tr>
</tbody>
</table>
</div>
<div class="download">
<table border="0">
<tbody>
<tr>
<th>Download:</th>
<td><a rel="nofollow" title="Download version 0.1 of EmbMozilla.exe" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/EmbMozilla.exe');" href="http://www.clarionedge.com/downloads/examples/EmbMozilla.exe"><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 EmbMozilla.exe" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/EmbMozilla.exe');" href="http://www.clarionedge.com/downloads/examples/EmbMozilla.exe">EmbMozilla.exe</a></td>
</tr>
<tr>
<th>Version:</th>
<td>0.1</td>
</tr>
<tr>
<th>Updated:</th>
<td>March 16, 2009</td>
</tr>
<tr>
<th>Size:</th>
<td>1.03 MB</td>
</tr>
<tr>
<th>Downloads:</th>
<td>281</td>
</tr>
<tr>
<th>Details:</th>
<td>Executable compiled with Clarion 6.3. in local mode so it should run as is. (Don&#8217;t forget to install the mozilla OCX!)</td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/examples/embedding-mozilla.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>#RUN parameter limits and hiding command windows</title>
		<link>http://www.clarionedge.com/windows/tools/run-and-command-windows.html</link>
		<comments>http://www.clarionedge.com/windows/tools/run-and-command-windows.html#comments</comments>
		<pubDate>Sun, 08 Feb 2009 20:23:23 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Examples]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=192</guid>
		<description><![CDATA[Recently I have been doing a fair amount of work trying to automate parts of the development process, in particular the version control aspects. I ran into what appeared to be limitations in the length [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have been doing a fair amount of work trying to automate parts of the development process, in particular the version control aspects. I ran into what appeared to be limitations in the length of parameters accepted by the Clarion templates #RUN statement. Searching the newsgroups there were a few comments from people having similar issues and the symptoms were seemed a little sporadic. I decided that the safest way was to write the commands out to a temporary batch file and use #RUN to just call that.<br />
<span id="more-192"></span><br />
This works great and has the added advantage of being able to execute, obviously, batches of commands in one go.  The thing that is annoying about this is that you <em>will</em> get the command window popping up when the command is run. Often this is fine, especially for long tasks where it is nice to see the progress but sometimes it is annoying and it would to be nice to be able to hide the window.</p>
<p>There are a few ways to do this but essentially they all seem to revolve around the <a href="http://msdn.microsoft.com/en-us/library/ms682425.aspx" target="_blank">CreateProcess</a> api Function.</p>
<ol>
<li>Write a helper DLL that wraps the CreateProcess function and can be easily called by the templates.</li>
<li>Find something that already does this so I don&#8217;t have to.</li>
</ol>
<p>If you want to go for option 1 in clarion you might like to look into <a href="http://www.berthume.com/powerrun.htm" target="_blank">PowerRun</a> from Berthume Software which is available for free download. And of course you can dig right in and make the function call directly.  However, if there is something suitable around I much prefer to use that.</p>
<p>After a quick search I found these two options:</p>
<ul>
<li>CHP.EXE (Create Hidden Process) &#8211; <a href="http://www.commandline.co.uk/chp/" target="_blank">http://www.commandline.co.uk/chp/</a></li>
<li>hidden Start (hstart.exe) &#8211; <a href="http://www.ntwind.com/software/utilities/hstart.html" target="_blank">http://www.ntwind.com/software/utilities/hstart.html</a></li>
</ul>
<p>I tried CHP first and it certainly does what it says it will but I found I wanted the option to wait until the spawned task was finished. In comes hstart. Hstart is pretty awesome. Lots of options and it also, funnily enough, does what it says it will&#8230;</p>
<p style="text-align: center;"><a href="http://www.clarionedge.com/wp-content/uploads/hstart_help21.png"><img class="size-medium wp-image-196 aligncenter" title="hstart_help21" src="http://www.clarionedge.com/wp-content/uploads/hstart_help21-242x246.png" alt="hstart_help21" width="242" height="246" /></a></p>
<p>For anyone interested, this is the template code I ended up with for calling hidden commands in a clarion template:</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
</pre></td><td class="code"><pre class="clarion" style="font-family:monospace;">#GROUP(%RunCommandHidden, %Command, %TestMode=%FALSE),AUTO
#!
#DECLARE(%BatchFileName)
#! We need to write the command out to a batch file for execution because
#! the #RUN command seems to have issues with the length of the command!
#SET(%BatchFileName, 'run.bat')
#SET(%BatchFileName, FullName(%BatchFileName, 2))
#CREATE(%BatchFileName)
%Command
#CLOSE(%BatchFileName)
#! Now we call the batch file for execution
#! using cph.exe for &quot;Create Hidden Process&quot;
#IF(%TestMode=%FALSE)
  #RUN('hstart.exe /NOCONSOLE /WAIT ' &amp; %BatchFileName),WAIT
#ELSE
  #RUN('hstart.exe /WAIT ' &amp; %BatchFileName),WAIT
#ENDIF
#REMOVE(%BatchFileName)
#RETURN</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/windows/tools/run-and-command-windows.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Chart Demo</title>
		<link>http://www.clarionedge.com/clarion/examples/flash-chart-demo.html</link>
		<comments>http://www.clarionedge.com/clarion/examples/flash-chart-demo.html#comments</comments>
		<pubDate>Wed, 16 Apr 2008 18:22:16 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=21</guid>
		<description><![CDATA[
As shown at the Dutch Clarioneers meeting (22nd Nov 2007)!
Usage Notes:
As long as you make sure you have the Capesoft Object writer installed you should be able to open and compile the FlashChart.app file with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.clarionedge.com/wp-content/uploads/flashchart1.jpg"><img class="alignnone size-thumbnail wp-image-56" title="flashchart1" src="http://www.clarionedge.com/wp-content/uploads/flashchart1-109x109.jpg" alt="flashchart1" width="109" height="109" /></a></p>
<p><span class="attention">As shown at the Dutch Clarioneers meeting (22nd Nov 2007)!</span></p>
<h4>Usage Notes:</h4>
<p>As long as you make sure you have the Capesoft Object writer installed you should be able to open and compile the FlashChart.app file with no further changes. If you don&#8217;t have <a href="http://www.ingasoftplus.com/id70.htm" target="_blank">CWPlus</a> installed then you <em><strong>will </strong></em>get a template error when first opening the app but after that it will work fine regardless.</p>
<p>Templates used:</p>
<ul>
<li>Standard ABC Chain</li>
<li><em><strong>Required</strong></em> &#8211; Capesoft <a href="http://www.capesoft.com/accessories/owsp.htm" target="_blank">ObjectWriter</a> (free!)</li>
<li>Optional &#8211; Ingasoft <a href="http://www.ingasoftplus.com/id70.htm" target="_blank">CWPlus</a></li>
</ul>
<p><span class="notice">Included executable compiled with Clarion 6.3 9056</span></p>
<h4>Explanation:</h4>
<p>This example program was designed to show the possiblity of displaying Flash based web components from within a clarion application. In this example we have used the amChart component from <a href="http://www.amcharts.com/" target="_blank">http://www.amcharts.com/</a></p>
<h4>Updated:</h4>
<p>Since the meeting this demo has been updated to include an example of how to write XML datafiles and refresh the amCharts with data from a Clarion browse.</p>
<h4>Techniques used:</h4>
<ul>
<li>Integrate with Flash Charts from <a href="http://www.amcharts.com/" target="_blank">amCharts</a></li>
<li>Using the WindowComponent.</li>
<li>Runtime Creation of a <a href="http://msdn2.microsoft.com/en-us/library/aa752085.aspx" target="_blank">WebBrowser Object</a> in a Clarion window.</li>
<li>Writing classes with Capesofts <a href="http://www.capesoft.com/docs/ObjectWriter/ObjectWriter.htm" target="_blank">Object Writer</a>.</li>
<li>Using the GradientFill api function.</li>
<li>How to use the SoftVelocity supplied (cp)XML component.</li>
</ul>
<p><span class="alert">Known Issues:<br />
If I ever get motivated I will work on fixing these in upcoming version. But for now&#8230; </span></p>
<ul>
<li>v0.9.1 Clicking the &#8220;Back/Forward&#8221; buttons when first opening the &#8220;Browser&#8221; will produce an &#8220;OLE Automation Error&#8221;.</li>
</ul>
<div class="download">
<table border="0">
<tbody>
<tr>
<th>Download:</th>
<td><a rel="nofollow" title="Download version 0.1 of FlashChart_Executable.zip" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/FlashChart_Executable.zip');" href="http://www.clarionedge.com/downloads/examples/FlashChart_Executable.zip"><img src="http://www.clarionedge.com/wp-content/plugins/drain-hole/images/download.png" alt="download" width="128" height="128"/></a><br />
<a rel="nofollow" title="Download version 0.1 of FlashChart_Executable.zip" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/FlashChart_Executable.zip');" href="http://www.clarionedge.com/downloads/examples/FlashChart_Executable.zip">FlashChart_Executable.zip</a></td>
</tr>
<tr>
<th>Version:</th>
<td>0.1</td>
</tr>
<tr>
<th>Updated:</th>
<td>February 9, 2009</td>
</tr>
<tr>
<th>Size:</th>
<td>2.52 MB</td>
</tr>
<tr>
<th>Downloads:</th>
<td>303</td>
</tr>
</tbody>
</table>
</div>
<div class="download">
<table border="0">
<tbody>
<tr>
<th>Download:</th>
<td><a rel="nofollow" title="Download version 0.2 of FlashChart_Source.zip" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/FlashChart_Source.zip');" href="http://www.clarionedge.com/downloads/examples/FlashChart_Source.zip"><img src="http://www.clarionedge.com/wp-content/plugins/drain-hole/images/download.png" alt="download" width="128" height="128"/></a><br />
<a rel="nofollow" title="Download version 0.2 of FlashChart_Source.zip" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/FlashChart_Source.zip');" href="http://www.clarionedge.com/downloads/examples/FlashChart_Source.zip">FlashChart_Source.zip</a></td>
</tr>
<tr>
<th>Version:</th>
<td>0.2</td>
</tr>
<tr>
<th>Updated:</th>
<td>January 20, 2012</td>
</tr>
<tr>
<th>Size:</th>
<td>2.07 MB</td>
</tr>
<tr>
<th>Downloads:</th>
<td>417</td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/examples/flash-chart-demo.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BitBlt Clarion Example</title>
		<link>http://www.clarionedge.com/clarion/examples/bitblt-clarion-example.html</link>
		<comments>http://www.clarionedge.com/clarion/examples/bitblt-clarion-example.html#comments</comments>
		<pubDate>Wed, 16 Apr 2008 18:21:31 +0000</pubDate>
		<dc:creator>brahn</dc:creator>
				<category><![CDATA[Examples]]></category>

		<guid isPermaLink="false">http://www.clarionedge.com/?p=19</guid>
		<description><![CDATA[This is an example of using the Windows GDI BitBlt function in a Clarion app.

As I am reminded whenever I try things like this, it is always fun and challenging playing with graphics and clarion!
Templates [...]]]></description>
			<content:encoded><![CDATA[<p>This is an example of using the Windows GDI BitBlt function in a Clarion app.</p>
<p><a href="http://www.clarionedge.com/wp-content/uploads/bitblit.jpg"><img class="alignnone size-thumbnail wp-image-59" title="bitblit" src="http://www.clarionedge.com/wp-content/uploads/bitblit-109x109.jpg" alt="bitblit" width="109" height="109" /></a></p>
<p>As I am reminded whenever I try things like this, it is always fun and <em>challenging</em> playing with graphics and clarion!</p>
<h4>Templates used:</h4>
<ul>
<li>Standard ABC Chain</li>
<li><em><strong>Required</strong></em> &#8211; Capesoft <a href="http://www.capesoft.com/accessories/owsp.htm" target="_blank">ObjectWriter</a> (free!)</li>
<li>Optional &#8211; Ingasoft <a href="http://www.ingasoftplus.com/id70.htm" target="_blank">CWPlus</a></li>
</ul>
<p><span class="notice">Included executable compiled (local) with Clarion 6.3 9056</span><br />
<span id="more-19"></span></p>
<div class="download">
<table border="0">
<tbody>
<tr>
<th>Download:</th>
<td><a rel="nofollow" title="Download version 0.1 of BitBlt.zip" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/BitBlt.zip');" href="http://www.clarionedge.com/downloads/examples/BitBlt.zip"><img src="http://www.clarionedge.com/wp-content/plugins/drain-hole/images/download.png" alt="download" width="128" height="128"/></a><br />
<a rel="nofollow" title="Download version 0.1 of BitBlt.zip" onclick="if (window.urchinTracker) urchinTracker ('http://www.clarionedge.com/downloads/examples/BitBlt.zip');" href="http://www.clarionedge.com/downloads/examples/BitBlt.zip">BitBlt.zip</a></td>
</tr>
<tr>
<th>Version:</th>
<td>0.1</td>
</tr>
<tr>
<th>Updated:</th>
<td>January 26, 2009</td>
</tr>
<tr>
<th>Size:</th>
<td>624.06 KB</td>
</tr>
<tr>
<th>Downloads:</th>
<td>333</td>
</tr>
</tbody>
</table>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.clarionedge.com/clarion/examples/bitblt-clarion-example.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.clarionedge.com/category/clarion/examples/feed ) in 0.57578 seconds, on Feb 7th, 2012 at 11:21 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 7th, 2012 at 12:21 pm UTC -->
