AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control ActiveX
  • Overview
  • Properties and methods of the ActiveX
  • Events associated with the ActiveX
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Handling an ActiveX by programming
Overview
WINDEV allows you to handle an ActiveX control in WLanguage via:
  • properties and methods
  • events
Properties and methods of the ActiveX
An ActiveX is associated with properties and methods. These properties and methods can be used in WLanguage to handle the ActiveX control directly. To do so, use the Automation syntax of WLanguage.
For example:
// AVIReader is an ActiveX control
AVIReader>>Zoom=12 // Assign a property
AVIReader>>Pause(10) // Call a method
To find out the properties and methods associated with an ActiveX, you can:
  • see the documentation of the ActiveX control.
  • use WDXVIEW supplied with WINDEV.
  • use the automatic completion of WINDEV. The properties and methods of the ActiveX are automatically proposed by the code editor. For example, for the "Microsoft WEB Browser" ActiveX, we get:
Events associated with the ActiveX
WLanguage allows you to manage the events generated by an ActiveX control with ActiveXEvent. This function allows you to associate a procedure of your project with the requested event.
For example:
// Initialization code of the ActiveX control named AVIReader
ActiveXEvent("My_procedure","AVIReader","OnClick")
// "my procedure" will be called whenever the
// "OnClick" will be triggered by the "AVIReader" control.
To find out the events associated with an ActiveX, you can:
  • see the documentation of the ActiveX control.
  • use WDXVIEW supplied with WINDEV.
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

Señalar un error o enviar una sugerencia | Ayuda local