Reimplemeting automation events

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Reimplemeting automation events

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:05 pm

by Mi >> Thu, 8 Nov 2001 21:56:49 GMT

Is there an obvious way?

Now that active-X automations cannot have new user defined subclasses, how can one
write event logic if the object is not being placed on a form?

Also a comment about the active-X import, often when using the automation import Jade seems very selective about what import classes are added to the ActiveXAutomation class. Often
adding only the 'static' information classes like status objects. I have discovered a workaround
(importing as automation, then re-importing over the automation using the control import option) but it would be nicer if jade had a bit more flexibilty in defined what goes where. This is especially relevant as only the automations have the createAutomationObject method allowing server usage.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Reimplemeting automation events

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:05 pm

by synergyfocus >> Sun, 11 Nov 2001 20:15:01 GMT

Hi,
I had the same problem earlier in the year - it was for allowing a thin client to use the dynaZip activeX control to zip files back on the server, (no server guis - only thin client). So putting the control on the thin client form wouldn't help.
What I had to do in the end was to create a form that only had the activeX control on it - to use the control, I had to create the form (but NOT show it). This gave me access to all the methods,properties & events and it worked great, and without a form being displayed.

So in the end I did have to put it on a form, I just never called the show/showModal methods like you usually would with a form.
The form was created on initialise, and deleted on finialise, and I had a reference on the app to access the control.
Not pretty, but it was the only way I could come with to get around the problem you have highlighted - but it did the trick!

Hope this helps.
Stephen Persson


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests