ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / ActiveX control
  • Overview of ActiveX control
  • Window control
  • Creating an ActiveX control
  • Tips
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
Overview of ActiveX control

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, you must take some precautions:
  • only the 32-bit ActiveX can be used.
  • the ActiveX must be installed according to the setup procedure on the user computer (see the documentation about the ActiveX if necessary).
  • the wd290ole.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
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.
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: 06/23/2023

Send a report | Local help