PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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. In the window editor, click (or select "Insert .. Control .. ActiveX control").On the "Creation" pane, in the "Other controls" group, click "ActiveX".
  2. Click the position where the control will be created in the window. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.
Tips
If your application is using 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 wdxxxole.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 Internet Search Complete examples (WINDEV): WD Internet Search
[ + ] This example explains how to perform Internet searches with the WLanguage functions.
The following topics are presented in this example:
1/ controlling a search engine
2/ using an Active X


Summary of the example supplied with WINDEV:
WINDEV allows you to easily include a search engine connected to Internet in your applications.
This program, develop with WINDEV, is used to control different search engines on Internet (Yahoo, AOL, Google, etc.)

The result of the search is displayed via an ActiveX in a window develop in WINDEV.

Technical constraint:
A connection to Internet is required to check this example
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 required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment