{"id":1333,"date":"2013-10-09T15:52:50","date_gmt":"2013-10-09T15:52:50","guid":{"rendered":"https:\/\/clarionsharp.com\/blog\/?p=1333"},"modified":"2013-10-09T15:52:50","modified_gmt":"2013-10-09T15:52:50","slug":"template-for-creating-a-class-in-an-app","status":"publish","type":"post","link":"https:\/\/clarionsharp.com\/blog\/template-for-creating-a-class-in-an-app\/","title":{"rendered":"Template for creating a CLASS in an .App"},"content":{"rendered":"<p>At the CIDC conference we showed a template (that is already included with C9) for easily creating CLASSes within your APP.<br \/>\nThe Help doesn&#8217;t yet cover it, (but will in the next update) and it&#8217;s very simple to use without any docs. Here are a few screenshots to get you going;<\/p>\n<p>start by inserting a new procedure and then select &#8220;Source Class&#8221;<br \/>\n<a href=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/NewSourceClass.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1334\" alt=\"NewSourceClass\" src=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/NewSourceClass.png\" width=\"885\" height=\"481\" srcset=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/NewSourceClass.png 885w, https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/NewSourceClass-300x163.png 300w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><\/a><\/p>\n<p>if you press the Actions button, you have the option to declare the module as a generic MEMBER() so you can share the class between Apps as needed.\u00a0 (this option was actually added during the devcon based on feedback during the presentation)<\/p>\n<p><a href=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_actions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1335\" alt=\"SC_actions\" src=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_actions.png\" width=\"502\" height=\"149\" srcset=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_actions.png 502w, https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_actions-300x89.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/a><\/p>\n<p>the embed points are pretty much self-explanatory<\/p>\n<p><a href=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_embeds.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1336\" alt=\"SC_embeds\" src=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_embeds.png\" width=\"610\" height=\"310\" srcset=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_embeds.png 610w, https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_embeds-300x152.png 300w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_props.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1337\" alt=\"SC_props\" src=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_props.png\" width=\"440\" height=\"310\" srcset=\"https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_props.png 440w, https:\/\/clarionsharp.com\/blog\/wp-content\/uploads\/2013\/10\/SC_props-300x211.png 300w\" sizes=\"auto, (max-width: 440px) 100vw, 440px\" \/><\/a><\/p>\n<p>You may have noticed the other new template Procedure &#8220;Generated UserControl Class&#8221;. As the name implies that template creates a &#8216;user control&#8217; which is comprised of a Window and all the controls on it.\u00a0 We&#8217;ll post separately about that one.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At the CIDC conference we showed a template (that is already included with C9) for easily creating CLASSes within your APP. The Help doesn&#8217;t yet cover it, (but will in the next update) and it&#8217;s very simple to use without any docs. Here are a few screenshots to get you going; start by inserting a &hellip; <a href=\"https:\/\/clarionsharp.com\/blog\/template-for-creating-a-class-in-an-app\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Template for creating a CLASS in an .App<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,5,6],"tags":[],"class_list":["post-1333","post","type-post","status-publish","format-standard","hentry","category-clarion9","category-clarionnews","category-clarion-win32"],"_links":{"self":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/comments?post=1333"}],"version-history":[{"count":2,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1333\/revisions"}],"predecessor-version":[{"id":1339,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/posts\/1333\/revisions\/1339"}],"wp:attachment":[{"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/media?parent=1333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/categories?post=1333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clarionsharp.com\/blog\/wp-json\/wp\/v2\/tags?post=1333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}