ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Control functions
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
ActiveXEvent (Function)
In french: ActiveXEvénement
Associates a procedure written in WLanguage with an event of ActiveX control.
Once ActiveXEvent has been run, the procedure will be run whenever the selected event is triggered.
Example
// -- Initialization of the ActiveX control AX_AVIReader
ActiveXEvent("My_Procedure", AX_AVIReader, "OnClick")
// -- Procedure My_Procedure
PROCEDURE My_Procedure(XCoord, YCoord)
Info("Coordinates of the click: " + XCoord + "," + YCoord)
Syntax
ActiveXEvent(<WLanguage procedure> , <ActiveX control> , <Event>)
<WLanguage procedure>: Procedure name
Name of WLanguage procedure called when the event is triggered.
This procedure must contain the number of parameter supplied by the event and it may return a result (see the documentation of the ActiveX control).
<ActiveX control>: Control name
Name of the ActiveX control.
<Event>: Character string
Name of the event associated with the ActiveX that triggers the procedure.
Remarks
  • It is recommended to call ActiveXEvent in the "Initialization" event of the ActiveX control.
  • Important: PC SOFT provides no technical support about the operating mode of ActiveX controls.
    You will find the different events generated by the ActiveX control in its documentation.
Related Examples:
Internet browser Unit examples (WINDEV): Internet browser
[ + ] Using and controlling an Internet browser (Internet Explorer) in a WINDEV window.
The following topics are presented in this example:
1/ How to include a browser in a WINDEV window
2/ How to control this browser
This example is used to surf on Internet from a WINDEV window.
Some common browser features have been used: Back, Next, Home, Stop, ....
This can be very useful to display a Web page in your application directly.
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help