{"id":41,"date":"2015-11-18T16:08:58","date_gmt":"2015-11-18T16:08:58","guid":{"rendered":"http:\/\/o-calcpro.com\/wiki\/?p=41"},"modified":"2015-11-18T20:56:16","modified_gmt":"2015-11-18T20:56:16","slug":"o-calc-pro-plugin-hello-world","status":"publish","type":"post","link":"http:\/\/o-calcpro.com\/wiki\/2015\/11\/18\/o-calc-pro-plugin-hello-world\/","title":{"rendered":"O-Calc Pro Plugin  \u2013 \u201cHello World\u201d"},"content":{"rendered":"<p>The default <strong><em>O-Calc Pro Plugin<\/em><\/strong> template will create a message box showing the message &#8220;Hello World&#8221;. Below are some explanations of the various code components of this simple plugin example.<\/p>\n<h3>Defining the Plugin Type:<\/h3>\n<div id=\"ig-sh-1\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">C#<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"csharp\" style=\"font-family:monospace\"><li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ Declare the type of plugin as one of:<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &nbsp; &nbsp; &nbsp; &nbsp; DOCKED_TAB<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &nbsp; &nbsp; &nbsp; &nbsp; MENU_ITEM<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &nbsp; &nbsp; &nbsp; &nbsp; BOTH_DOCKED_AND_MENU<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &nbsp; &nbsp; &nbsp; &nbsp; CLEARANCE_SAG_PROVIDER<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;\/summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">public<\/span> PLUGIN_TYPE Type<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">get<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">return<\/span> PLUGIN_TYPE<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">BOTH_DOCKED_AND_MENU<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<p>There are four different plug-in types that can be defined. In the code snippet above, the plugin type as been defined as both a &#8216;Menu Item&#8217; and a new &#8216;Docked Tab&#8217;.<\/p>\n<h3>Naming the Plugin:<\/h3>\n<div id=\"ig-sh-2\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">C#<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"csharp\" style=\"font-family:monospace\"><li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ Declare the name of the plugin usd for synthesizing the registry keys ect<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;\/summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #6666cc;font-weight: bold\">String<\/span> Name<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0600FF;font-weight: bold\">get<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0600FF;font-weight: bold\">return<\/span> <span style=\"color: #666666\">&quot;MyOCalcProPlugin&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<p>This will be the name of the menu item as it appears in the O-Calc Pro interface. To change the name of the resultant compiled plugin file that gets built to the location C:\\Program Files (x86)\\Osmose\\O-Calc Pro\\bin\\Plugins, you would need to change the name of the Visual Studio Project. Note: the name of the compiled plugin file is what will be displayed in the O-Calc Pro &#8216;Manage Plugins&#8217; list.<\/p>\n<h3>Specifying the Docked Tab Parameters :<\/h3>\n<div id=\"ig-sh-3\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">C#<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"csharp\" style=\"font-family:monospace\"><li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ Add a tabbed form to the tabbed window (if the plugin type is <\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ PLUGIN_TYPE.DOCKED_TAB <\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ or<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ PLUGIN_TYPE.BOTH_DOCKED_AND_MENU<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;\/summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;param name=&quot;pPPLMain&quot;&gt;&lt;\/param&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #6666cc;font-weight: bold\">void<\/span> AddForm<span style=\"color: #008000\">&#040;<\/span>PPL_Lib<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">PPLMain<\/span> pPPLMain<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">.<\/span> <span style=\"color: #008000\">.<\/span> <span style=\"color: #008000\">.<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp;PluginForm cForm <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">null<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp;<span style=\"color: #6666cc;font-weight: bold\">class<\/span> PluginForm <span style=\"color: #008000\">:<\/span> WeifenLuo<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">WinFormsUI<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Docking<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DockContent<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0600FF;font-weight: bold\">public<\/span> PluginForm<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">this<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Name<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #666666\">&quot;pluginForm&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">this<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Text<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #666666\">&quot;Plugin&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000\">System<\/span><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\">Label<\/span> helloLabel <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">new<\/span> <span style=\"color: #000000\">System<\/span><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\">Label<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; helloLabel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">AutoSize<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">true<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; helloLabel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Name<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #666666\">&quot;helloLabel&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; helloLabel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Text<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #666666\">&quot;Hello World&quot;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; helloLabel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Location<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">new<\/span> <span style=\"color: #000000\">System.<span style=\"color: #0000FF\">Drawing<\/span><\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Point<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #FF0000\">20<\/span>, <span style=\"color: #FF0000\">20<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; helloLabel<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Visible<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">true<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Controls<span style=\"color: #008000\">.<\/span><span style=\"color: #0600FF;font-weight: bold\">Add<\/span><span style=\"color: #008000\">&#040;<\/span>helloLabel<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0600FF;font-weight: bold\">public<\/span> Guid cGuid<span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0600FF;font-weight: bold\">protected<\/span> <span style=\"color: #0600FF;font-weight: bold\">override<\/span> <span style=\"color: #6666cc;font-weight: bold\">string<\/span> GetPersistString<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0600FF;font-weight: bold\">return<\/span> cGuid<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">ToString<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<p>Here the developer can specify the various parameters associated with the docked tab, such as tab name, display text, and other features of the new docked tab that will appear within the O-Calc Pro interface.<\/p>\n<h3>Defining the location of the Menu Item:<\/h3>\n<div id=\"ig-sh-4\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">C#<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"csharp\" style=\"font-family:monospace\"><li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">public<\/span> <span style=\"color: #6666cc;font-weight: bold\">void<\/span> AddToMenu<span style=\"color: #008000\">&#040;<\/span>PPL_Lib<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">PPLMain<\/span> pPPLMain, <span style=\"color: #000000\">System<\/span><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\">ToolStrip<\/span> pToolStrip<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008080;font-style: italic\">\/\/save the reference to the O-Calc Pro main<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;cPPLMain <span style=\"color: #008000\">=<\/span> pPPLMain<span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008080;font-style: italic\">\/\/create the toolstrip button<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;cToolStripMenuItemButton <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">new<\/span> ToolStripMenuItem<span style=\"color: #008000\">&#040;<\/span>Name<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;cToolStripMenuItemButton<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">AutoToolTip<\/span> <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">true<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;cToolStripMenuItemButton<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">ToolTipText<\/span> <span style=\"color: #008000\">=<\/span> Description<span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008080;font-style: italic\">\/\/find the dropdown menu we want to add the toolsrip button to<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #6666cc;font-weight: bold\">int<\/span> itemindex <span style=\"color: #008000\">=<\/span> <span style=\"color: #FF0000\">0<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #000000\">System.<span style=\"color: #0000FF\">Diagnostics<\/span><\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Debug<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Assert<\/span><span style=\"color: #008000\">&#040;<\/span>pToolStrip<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Items<\/span><span style=\"color: #008000\">&#091;<\/span>itemindex<span style=\"color: #008000\">&#093;<\/span> <span style=\"color: #008000\">is<\/span> ToolStripDropDownButton<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #0600FF;font-weight: bold\">if<\/span> <span style=\"color: #008000\">&#040;<\/span>pToolStrip<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Items<\/span><span style=\"color: #008000\">&#091;<\/span>itemindex<span style=\"color: #008000\">&#093;<\/span> <span style=\"color: #008000\">is<\/span> ToolStripDropDownButton<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ToolStripDropDownButton tsb <span style=\"color: #008000\">=<\/span> pToolStrip<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Items<\/span><span style=\"color: #008000\">&#091;<\/span>itemindex<span style=\"color: #008000\">&#093;<\/span> <span style=\"color: #0600FF;font-weight: bold\">as<\/span> ToolStripDropDownButton<span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #000000\">System.<span style=\"color: #0000FF\">Diagnostics<\/span><\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Debug<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Assert<\/span><span style=\"color: #008000\">&#040;<\/span>tsb<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Text<\/span> <span style=\"color: #008000\">==<\/span> <span style=\"color: #666666\">&quot;&amp;File&quot;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tsb<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DropDownItems<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Insert<\/span><span style=\"color: #008000\">&#040;<\/span>tsb<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DropDownItems<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Count<\/span> <span style=\"color: #008000\">-<\/span> <span style=\"color: #FF0000\">1<\/span>, cToolStripMenuItemButton<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tsb<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DropDownItems<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Insert<\/span><span style=\"color: #008000\">&#040;<\/span>tsb<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DropDownItems<\/span><span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Count<\/span> <span style=\"color: #008000\">-<\/span> <span style=\"color: #FF0000\">1<\/span>, <span style=\"color: #008000\">new<\/span> ToolStripSeparator<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp;<\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/add an event handler when the dropdown menu is opened to allow us<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #008080;font-style: italic\">\/\/to enable or disble the toolstrip button (optional)<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tsb<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">DropDownOpened<\/span> <span style=\"color: #008000\">+=<\/span> tsb_DropDownOpened<span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<p>In the default code snippet above, the new menu item is placed at the bottom of the &#8216;File&#8217; drop down menu. This menu item will be disabled until a pole has been loaded within the application.<\/p>\n<div id=\"ig-sh-5\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">C#<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"csharp\" style=\"font-family:monospace\"><li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ The menu containing our tool is being displayed. &nbsp;Optionally<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ enable or disable the toolstrip button depending on<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ our criteria<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;\/summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;param name=&quot;sender&quot;&gt;&lt;\/param&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;param name=&quot;e&quot;&gt;&lt;\/param&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">void<\/span> tsb_DropDownOpened<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #6666cc;font-weight: bold\">object<\/span> sender, EventArgs e<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp;<span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #6666cc;font-weight: bold\">bool<\/span> enabled <span style=\"color: #008000\">=<\/span> <span style=\"color: #0600FF;font-weight: bold\">false<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">if<\/span> <span style=\"color: #008000\">&#040;<\/span>cPPLMain <span style=\"color: #008000\">!=<\/span> <span style=\"color: #0600FF;font-weight: bold\">null<\/span><span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;enabled <span style=\"color: #008000\">=<\/span> <span style=\"color: #008000\">&#040;<\/span>cPPLMain<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">GetMainStructure<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span> <span style=\"color: #008000\">is<\/span> PPLPole<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp;<span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; cToolStripMenuItemButton<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Enabled<\/span> <span style=\"color: #008000\">=<\/span> enabled<span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp;<span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<h3>Perform the Plugin Operation<\/h3>\n<div id=\"ig-sh-6\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">C#<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"csharp\" style=\"font-family:monospace\"><li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ Perform the plugin tool's operation<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008080;font-style: italic\">\/\/\/ &lt;\/summary&gt;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #0600FF;font-weight: bold\">private<\/span> <span style=\"color: #6666cc;font-weight: bold\">void<\/span> DoPluginOperation<span style=\"color: #008000\">&#040;<\/span><span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">try<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PPLMessageBox<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Show<\/span><span style=\"color: #008000\">&#040;<\/span><span style=\"color: #666666\">&quot;Hello World!&quot;<\/span><span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #0600FF;font-weight: bold\">catch<\/span> <span style=\"color: #008000\">&#040;<\/span>Exception ex<span style=\"color: #008000\">&#041;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#123;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PPLMessageBox<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Show<\/span><span style=\"color: #008000\">&#040;<\/span>ex<span style=\"color: #008000\">.<\/span><span style=\"color: #0000FF\">Message<\/span>, <span style=\"color: #666666\">&quot;Error in &quot;<\/span> <span style=\"color: #008000\">+<\/span> Name<span style=\"color: #008000\">&#041;<\/span><span style=\"color: #008000\">;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\">&nbsp; &nbsp; &nbsp; <span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<li><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #008000\">&#125;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n<p>In this example, clicking on the plugin menu item found in the File dropdown, will display the &#8220;Hello World&#8221; message box.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/uploads\/2015\/11\/111815_1608_OCalcProPlu1.png\" alt=\"\" \/><\/p>\n<p>Below is a video that demonstrates this &#8216;Hello World&#8217; plugin:<\/p>\n<p><iframe width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/U13MEIwnctE\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-facebook nolightbox\" data-provider=\"facebook\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Facebook\" href=\"https:\/\/www.facebook.com\/sharer.php?u=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F41&#038;t=O-Calc%20Pro%20Plugin%20%20%E2%80%93%20%E2%80%9CHello%20World%E2%80%9D&#038;s=100&#038;p&#091;url&#093;=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F41&#038;p&#091;images&#093;&#091;0&#093;=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-content%2Fuploads%2F2015%2F11%2F111815_1608_OCalcProPlu1.png&#038;p&#091;title&#093;=O-Calc%20Pro%20Plugin%20%20%E2%80%93%20%E2%80%9CHello%20World%E2%80%9D\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"Facebook\" title=\"Share on Facebook\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/facebook.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-twitter nolightbox\" data-provider=\"twitter\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Twitter\" href=\"https:\/\/twitter.com\/intent\/tweet?url=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F41&#038;text=O-Calc%20Pro%20Information\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"twitter\" title=\"Share on Twitter\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/twitter.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-linkedin nolightbox\" data-provider=\"linkedin\" target=\"_blank\" rel=\"nofollow\" title=\"Share on Linkedin\" href=\"https:\/\/www.linkedin.com\/shareArticle?mini=true&#038;url=http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F41&#038;title=O-Calc%20Pro%20Plugin%20%20%E2%80%93%20%E2%80%9CHello%20World%E2%80%9D\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px;margin-right:5px\"><img decoding=\"async\" alt=\"linkedin\" title=\"Share on Linkedin\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/linkedin.png\" \/><\/a><a class=\"synved-social-button synved-social-button-share synved-social-size-48 synved-social-resolution-single synved-social-provider-mail nolightbox\" data-provider=\"mail\" rel=\"nofollow\" title=\"Share by email\" href=\"mailto:?subject=O-Calc%20Pro%20Plugin%20%20%E2%80%93%20%E2%80%9CHello%20World%E2%80%9D&#038;body=O-Calc%20Pro%20Information:%20http%3A%2F%2Fo-calcpro.com%2Fwiki%2Fwp-json%2Fwp%2Fv2%2Fposts%2F41\" style=\"font-size: 0px;width:48px;height:48px;margin:0;margin-bottom:5px\"><img decoding=\"async\" alt=\"mail\" title=\"Share by email\" class=\"synved-share-image synved-social-image synved-social-image-share\" width=\"48\" height=\"48\" style=\"display: inline;width:48px;height:48px;margin: 0;padding: 0;border: none;box-shadow: none\" src=\"http:\/\/o-calcpro.com\/wiki\/wp-content\/plugins\/social-media-feather\/synved-social\/image\/social\/regular\/96x96\/mail.png\" \/><\/a>","protected":false},"excerpt":{"rendered":"<p>The default O-Calc Pro Plugin template will create a message box showing the message &#8220;Hello World&#8221;. Below are some explanations of the various code components of this simple plugin example. Defining the Plugin Type: &lt; View plain text &gt; C# \/\/\/ &lt;summary&gt; \/\/\/ Declare the type of plugin as one of: \/\/\/ &nbsp; &nbsp; &nbsp; ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"http:\/\/o-calcpro.com\/wiki\/2015\/11\/18\/o-calc-pro-plugin-hello-world\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-plugin-development"],"_links":{"self":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":4,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"predecessor-version":[{"id":43,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/posts\/41\/revisions\/43"}],"wp:attachment":[{"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/o-calcpro.com\/wiki\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}