  | | | callback functions for plugins | callback functions for plugins 2004-06-11 - By kim aldis
Back This is a bit of a long shot here seeing as 4 hasn't been around that long but I'll give it a go anyway. I'm building a plugin, ppg as part of it, using PPGlayout and adding callback functions to the ppglayout items and buttons. Calbacks take the form <itemBane>_Onclick() and they're normally a part of the plugin script. There's also PPGLayout.logic where you can add callback functions as strings. The former would be the preferred method but if you're building ppg layouts on the fly and only know the names of the items at build time then ppglayout.logic is the only way. My query is about what happens if you want to mix in-script callback logic with ppglayout.logic. In other words, if part of your ppglayout calls callbacks from the plugin file but you have a few ppglayout items that need to be built on the fly. It seems that setting PPGLayout.logic wipes out all the plugin script callbacks. Does anyone have any bright ideas about how to handle this? cheers, K.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=us-ascii"> <META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD> <BODY> <DIV><SPAN class=078333909-11062004><FONT face=Arial size=2>This is a bit of a long shot here seeing as 4 hasn't been around that long but I'll give it a go anyway. I'm building a plugin, ppg as part of it, using PPGlayout and adding callback functions to the ppglayout items and buttons. Calbacks take the form <itemBane>_Onclick() and they're normally a part of the plugin script. There's also PPGLayout.logic where you can add callback functions as strings. The former would be the preferred method but if you're building ppg layouts on the fly and only know the names of the items at build time then ppglayout.logic is the only way. My query is about what happens if you want to mix in-script callback logic with ppglayout.logic. In other words, if part of your ppglayout calls callbacks from the plugin file but you have a few ppglayout items that need to be built on the fly. It seems that setting PPGLayout.logic wipes out all the plugin script callbacks. Does anyone have any bright ideas about how to handle this?</FONT></SPAN></DIV> <DIV><SPAN class=078333909-11062004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=078333909-11062004><FONT face=Arial size=2>cheers,</FONT></SPAN></DIV> <DIV><SPAN class=078333909-11062004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=078333909-11062004><FONT face=Arial size=2></FONT></SPAN> </DIV> <DIV><SPAN class=078333909-11062004><FONT face=Arial size=2>K.</FONT></SPAN></DIV></BODY></HTML>
|
|
 |