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
HTMLEdit
OM: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
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


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