ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / ActiveX control
  • ActiveX control overview
  • Window control
  • Creating an ActiveX control
  • Tips
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
ActiveX control overview

Window control

The ActiveX control is used to easily manage the ActiveX technology. The ActiveX controls are reusable components that use the ActiveX technology and that can be included in a window.

Creating an ActiveX control

To create an ActiveX control:
  1. On the "Creation" tab, in the "Other controls" group, click "Active X".
  2. Click at the desired location to create the control. The control appears in the editor.
To view the characteristics of the control, select "Description" in the context menu.
Tips
If your application uses an ActiveX control, you must take the following into account:
  • 32-bit ActiveX controls can only be used in 32-bit applications.
  • 64-bit ActiveX controls can only be used in 64-bit applications.
the editor must be in ActiveX mode. A 32-bit ActiveX control can only be edited in a 32-bit version of WINDEV.
  • the ActiveX must be installed according to the setup procedure on the user computer (see the documentation about the ActiveX if necessary).
  • the wd300ole.dll DLL and the WINDEV application must be installed at the same time on the user computer.
Related Examples:
WD Controlling Excel Training (WINDEV): WD Controlling Excel
[ + ] This example explains how to control Excel via OLE Automation.
All the features included in Excel can be emulated.

This example requires Excel 97 or later.

Summary of the example supplied with WINDEV:
Controlling a spreadsheet as Excel may be useful to allow the user to keep his own habits from the software powered by WINDEV.
This process is very easy via the "CExcel" class supplied with WINDEV.
The main features of Excel can be directly called (chart, inserting objects, sorts, ...).
How do I control Excel via OLE Automation?
An OLE Automation contains methods and properties. This allows you to emulate it directly in WLanguage.
For example, to display the selected cell in bold:
MyOLEAutomationObject>>Selection>>Font>>Bold = True
WD Controlling Word Training (WINDEV): WD Controlling Word
[ + ] This example explains how to control Word via OLE Automation.
All the features included in Word can be emulated.
This example is compatible with the versions 97, 2000 and 2002 (XP) of Word.
Summary of the example supplied with WINDEV:
Controlling a text processor as Word may be useful to allow the user to keep his own habits from the software powered by WINDEV.
This process is very easy via the "CWord" class supplied with WINDEV.
The main features of Word can be directly called (text formatting, inserting objects, mailshot, and so on).
How do I control Word via OLE Automation?
An OLE Automation contains methods and properties. This enables you to emulate it directly in WLanguage.
For example, to write the selected text in bold:
MyOLEAutomationObject>>Selection>>Font>>Bold = True
WD OPC Training (WINDEV): WD OPC
[ + ] This example presents the implementation of the OPC protocol in WINDEV.
OPC means OLE for Process Control.
It's a standard implementation based on OLE/COM for managing physical devices (robots, alarms, captors, ...).
For more details, see the WINDEV help or the following site: http://www.opcfoundation.org/
WINDEV allows for data access through Automation or ActiveX (OPC DA Auto 2.0 specification).
The use of OPC in WINDEV requires the use of an Automation object or of an ActiveX that serves as an OPC client layer.
This Automation object or ActiveX is usually provided by the manufacturer of the device.
Therefore, OPC in WINDEV is implemented using the basic principle of object automation and ActiveX.
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 03/11/2025

Send a report | Local help