Kbase P41418: ActiveX: How to call methods of an ActiveX control
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  22/12/2008 |
|
Status: Verified
GOAL:
How to call methods of an ActiveX control
GOAL:
How to set the properties of an OCX in a control frame
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows
FIX:
Make sure to reference both the Control Frame COM object and the ActiveX control itself.
For example if you have a control frame containing the PSTimer control, the following will fail because only the control frame is referenced:
TimerControl = CtrlFrame:COM-HANDLE.
ASSIGN TimerControl:INTERVAL = 0.
The following works:
TimerControl = CtrlFrame:COM-HANDLE.
ASSIGN TimerControl:PSTImer:INTERVAL = 0.