|
|
|
|
|
External components for different platforms
External components are a remarkably useful tool for development teams. The ability to reuse secure code is a major advantage. Differences between targets, such as Windows, Internet-Intranet and mobile applications, can be automatically taken into account.c These external components can contain windows or pages and can be used in WINDEV, WEBDEV and WINDEV Mobile projects. Any differences in the code or UI are automatically taken into account. At runtime, the external component will adapt to the target platform. It is possible to create projects common to the different products: WINDEV, WEBDEV and WINDEV Mobile.. These projects can contain WINDEV and WINDEV Mobile windows and/or WEBDEV pages. Creating a cross-platform external component from a common project is very easy: - Create the different elements of your component (windows, pages, etc.).
Reminder: Using the COMPILE IF instruction or the IF ExecutionTarget instruction enables processing to be used regardless of the environment, platform or type of generation.. You can also use InComponentMode, InJavaMode, InPHPMode, InWebMode, etc. - Create the "Component" project configuration: in the "Project Explorer" pane, display the context menu for the "Configurations" option and select "New configuration".
- In the configuration creation wizard:
- In the "General information" step, select "Component" and enter the name and description of the component if necessary.
- In the "Configuration compatibility" step, specify:
- The type of configuration in which the component can be used. You can select multiple configurations. For example, the component can be used in WINDEV and iOS applications.
- The platforms for which compilation errors must be enabled.
- In the next step, select the elements that will be integrated into the project configuration. You can include all the elements required for your component (windows, pages, procedures, etc.).
- In the next step, select the internal components to be integrated (if necessary).
- Validate. The new project configuration is created. You can generate the external component. For more details, see Creating and generating an external component.
Remarks: - If you are using independent versions of WINDEV, WEBDEV or WINDEV Mobile, some platform combinations are not available.
- You can also create a common "Component" project. The project creation wizard allows you to choose the platforms in which the component can be used.
- Warning: If you are using an integrated version of WINDEV, WEBDEV or WINDEV Mobile to create a component that can be used in Android and/or iOS, it is necessary to create "Android" and "iOS" project configurations in the "Component" project.. These configurations will allow you to create mobile windows. These windows (associated with the "Android" or "iOS" configurations) must also be associated with the "Component" project configuration.
- Generating a cross-platform component creates a single set of files (WDK, WDI, WDZ) that can be imported into the WINDEV, WEBDEV and WINDEV Mobile projects corresponding to the target platforms.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|