Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jun 21, 2005 11:21 pm
ActiveX events changing in v2.31 |
I found a problem with ActiveX events in the current 2.3 public version of zApp. It doesn't work in some cases when changing the value of parameters sent to ActiveX event routines.
I have a fix for it that I'm putting into v2.31. However, this fix was incompatible with the previous version. Specifically, the argument list of the event handler for an ActiveX control no longer has the "Sender" argument. Also, in the new version, the subroutine that is called by an event is: controlname_eventname without any extra "On" added to the eventname.
In other words, in the 2.3 version, you would handle the status change of the WebBrowser activeX control with a subroutine declared like this:
Code: |
sub Browser_OnStatusTextChange( Sender, sText) |
where as in the new 2.31 version, the correct syntax will be:
Code: |
sub Browser_StatusTextChange( sText) |
notice the absence of the Sender argument, and notice the absence of the "On" in the subroutine name.
This should make zApp ActiveX event handlers much more standard and should fix the problems changing passed argument values. |
|