User Tools

Site Tools


plugins:own_javascript_plugin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugins:own_javascript_plugin [2017/04/04 15:30]
2.29.76.107 swapped to newer CreateMyPlugin method
plugins:own_javascript_plugin [2019/09/17 15:35] (current)
Line 55: Line 55:
  using the <b>LoadPlugin</b> method like this:</p>  using the <b>LoadPlugin</b> method like this:</p>
   
- <div class="samp">&nbsp;app.CreateMyPlugin();</div>+ <div class="samp">&nbsp;app.LoadPlugin"MyPlugin" );</div>
   
  <p>Then you can create an instance of the plugin object when you need it like this:</p>  <p>Then you can create an instance of the plugin object when you need it like this:</p>
Line 76: Line 76:
  &nbsp;&nbsp;lay.AddChild( btn );<br><br>  &nbsp;&nbsp;lay.AddChild( btn );<br><br>
  <b id="snip1"  style="font-size:100%">  <b id="snip1"  style="font-size:100%">
- &nbsp;&nbsp;plg = app.CreateObject"MyPlugin" );<br>+ &nbsp;&nbsp;plg = app.CreateMyPlugin();<br>
  </b><br>  </b><br>
  &nbsp;&nbsp;app.AddLayout( lay );<br>  &nbsp;&nbsp;app.AddLayout( lay );<br>
Line 107: Line 107:
  &nbsp;&nbsp;lay.AddChild( btn );<br><br>  &nbsp;&nbsp;lay.AddChild( btn );<br><br>
  <b id="snip2"  style="font-size:100%">  <b id="snip2"  style="font-size:100%">
- &nbsp;&nbsp;plg = app.CreateObject"MyPlugin" );<br>+ &nbsp;&nbsp;plg = app.CreateMyPlugin();<br>
  &nbsp;&nbsp;plg.SetOnMyReply( OnMyReply );<br>  &nbsp;&nbsp;plg.SetOnMyReply( OnMyReply );<br>
  </b><br>  </b><br>
Line 173: Line 173:
 </code> </code>
  
-  * **File 4: A blanc jar-file without any text** +  * **It is no longer necessary to add an empty jar-file and we recommend you do not so**
- +
-<code Java MyPlugin.jar> +
- +
-</code>+
  
  
Line 238: Line 234:
     //Add layout to app.         //Add layout to app.    
     app.AddLayout( lay );     app.AddLayout( lay );
 +
 +    lvw.Show();
 } }
  
plugins/own_javascript_plugin.1491319843.txt.gz · Last modified: 2017/04/04 23:30 (external edit)