PC SOFT

WINDEV的在线文档

  • Overview
  • Characteristics of an external component
  • What is an external component made of?
  • What is included in an external component?
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
An external component is a set of WinDev, WebDev or WinDev Mobile elements: windows, pages, reports, analysis, ... This set of elements performs a specific feature. For example, a component can correspond to one of the following features:
  • Sending faxes,
  • Sending emails,
  • ...
An external component can be redistributed to other WinDev, WebDev or WinDev Mobile developers (free of charge or not). These developers will be able to easily include the feature proposed by the component in their application. The component will be included in the application and distributed along with the application.

For the multilingual applications, a distributed external component can be translated via WDMSG from the project that uses the component.

Note: To optimize the organization of your projects, you have the ability to use the internal components. The internal components allow you to group your resources according to specific topics.

Characteristics of an external component
When creating the external component, the author specifies:
  • the component elements visible (or not) to the user of the component. The visible elements will be accessible in the project graph or by programming.
  • the mode for using the component (how to use the component, the parameters used to access the component features, ...). A short documentation (to be completed) is automatically generated and associated with the component.
Caution: A component differs from a supercontrol. The supercontrol can only be made of controls while a component is made of windows, pages, reports, ... In most cases, the component expects parameters, processes them and returns a result to the application that uses it. Furthermore, unlike a supercontrol, a component has a specific setup.

Note: Several examples of components are supplied with WinDev, WebDev and WinDev Mobile. These components are accessible from the "Wizards, Examples and Components" pane ("Components" option). See Managing the components from the "Wizards, Examples and Components" pane for more details.

What is an external component made of?

An external component is defined and generated from an existing WinDev, WebDev or WinDev Mobile project. It can then be included in other WinDev, WebDev or WinDev Mobile projects.

All the component elements are independent of the project in which the component is included. The external component can have its own analysis, its windows, its reports, its files, ...

When creating the generation of the external component, all you have to do is specify whether these elements can be handled (or not) in the project that includes this component.

The external component includes three files:

<ComponentName>.WDKComponent file. Contains all the elements of the external component.
This file is required to include the external component in a project.
This file must also be supplied in the client version of the application that uses the external component.
<ComponentName>.WDIDescription of the component (when developing applications only).
This file is required to include the external component in a project.
This file must not be supplied in the client version of the application that uses the external component.
<ComponentName>.WDOOptional file
File in text format containing the list of additional elements supplied with the external component (data files, .INI files, ...). See The WDO file for more details.

What is included in an external component?
An external component contains:
  • the different elements to distribute (windows, reports, ...). These elements can be accessible (or not) when importing the component into a WinDev, WebDev or WinDev Mobile project. These elements cannot be modified from the project that uses the component.
  • a short description of the component.
  • a help allowing you to reuse this component. This help is generated from the code comments.
Note: By default, if an external component uses an analysis, data files, ... the HFSQL functions will handle these elements in an independent HFSQL context. These parameters can be modified in the advanced options of the component. See Advanced options of an external component for more details.