How to enable specific COM events

Libor Svehlak

New Member
Does somebody know how to handle this situation?

I use Microsoft's DHTMLEdit control (dhtmled.ocx). This control can fire some basic events itself and you can also enable receiving events from other objects that you get from control. More specifically I can enable receiving events from DOM object by this:

chControl:DHTMLEdit:DOM:ENABLE-EVENTS("DOM":U).

Then (in principle) I can catch events from DOM object. My problem is that most of events there exist in two forms (with parameter and without parameter). In other words they have same name but different parameters. Then if I use in Progress procedure like:

PROCEDURE DOM.keyPress
END.

then Progress correctly finds this procedure for event keyPress without parameter but then it shows message that procedure has incorrect number of parameters because it tries to find procedure with the same name but with parameter. And because I cannot write procedure with the same name but with different parameters in Progress it seems to me that this problem hasn't solution.

Any help?

Thanks for advice
 
You could try and edit the .w file from the procedure editor instead of using the App Builder and put the parameter in (you may find the App builder will still remove the parameters if you open your .w with it, but at least you can get something running).
 
This is not problem of AppBuilder but Progress itself.

I contacted techsupport but they are not able to solve this.

So result of this: it is not possible to solve this problem in Progress
 
Back
Top