windev 14 concepts us

110
Concepts

Upload: ramikilany

Post on 18-Nov-2014

953 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: WinDev 14 Concepts US

Concepts

Dessin.book Page 1 Jeudi, 23. avril 2009 11:49 11

Page 2: WinDev 14 Concepts US

WinDev - ConceptsVersion 14 - (1) 05-09

Remember to visit our site (www.windev.com) on a regular basis to find out whetherupgraded versions are available.

Email address of our Free Technical Support: [email protected]

This documentation is not contractually binding. Modifications may have been made tothe software since this guide was published. See the online help.

All product names or other trademarks mentioned in this publication are registered trademarks of their respective owners.© PC SOFT 2009: This publication may not be reproduced in part or in full without the express permission of PC SOFT.

Dessin.book Page 2 Jeudi, 23. avril 2009 11:49 11

Page 3: WinDev 14 Concepts US

Win

Dev:

Main

con

cep

ts

3

In which order should these guides be read?

WinDev 14 is a powerful tool used to develop Windows applications; it provides all the ne-cessary tools for designing and creating applications.

To quickly and efficiently learn how to use WinDev 14, we advise you to work in the fol-lowing order:

1 Read the "Concepts". This guide presents the main concepts required to create a high-powered WinDev ap-plication.

2 "Tutorial" (book + exercises)The Tutorial provides a first "hands-on" approach to WinDev. It enables you to familia-rize yourself with the main editors of WinDev.

3 Test the examplesRun the test of the examples supplied with WinDev in the fields you are interested in(sales management, schedule, and so on)

The online help enables you to easily find out the syntax of a WLanguage function, to dis-play help pages for the interface, and so on.

Note: If there is a difference between the guide and the online help, follow the instructionsgiven in the online help.

We hope you enjoy getting started with WINDEV.

Dessin.book Page 3 Jeudi, 23. avril 2009 11:49 11

Page 4: WinDev 14 Concepts US

Win

Dev:

Main

con

cep

ts4

Dessin.book Page 4 Jeudi, 23. avril 2009 11:49 11

Page 5: WinDev 14 Concepts US

Win

Dev:

Main

con

cep

ts

5

Summary

PART 1 - DEVELOPING AN APPLICATION

Development environment .............................................................................................. 9Developing an application .............................................................................................10

PART 2 - PROJECT MANAGEMENT

Project and Analysis ......................................................................................................13Source Code Manager (SCM) ........................................................................................14The Control Centers .......................................................................................................16Managing the requirements .........................................................................................17Project Monitoring Center .............................................................................................18Managing the suggestions and the incidents ..............................................................19Managing the business rules ........................................................................................20Dashboard of the project ..............................................................................................21WinDev, WebDev, WinDev Mobile: same project ........................................................22Project configuration .....................................................................................................23Multiple generation ........................................................................................................24Custom-folders: Organize your project .........................................................................25Internal component .......................................................................................................26Multilingual applications ...............................................................................................27Creating a Java application with WinDev .....................................................................28Creating a Linux application with WinDev ....................................................................29

PART 3 - PROJECT ELEMENTS

MDI/Non-MDI application .............................................................................................33Choosing a type of control according to the information to display ...........................34Window templates .........................................................................................................35Control templates ..........................................................................................................36RAD .................................................................................................................................37RID ..................................................................................................................................38Component .....................................................................................................................39Multi-product components ............................................................................................40Report .............................................................................................................................41Report templates ...........................................................................................................42Distributing "Reports and Queries" ...............................................................................43User groupware ..............................................................................................................44UMC: User Macro-Code .................................................................................................45

Dessin.book Page 5 Jeudi, 23. avril 2009 11:49 11

Page 6: WinDev 14 Concepts US

Win

Dev:

Main

con

cep

ts6

PART 4 - DATABASE

The different types of accessible files ......................................................................... 49Analysis: Structure of the database ............................................................................. 50HyperFileSQL Classic .................................................................................................... 51HyperFileSQL Client/Server .......................................................................................... 52Creation of HyperFileSQL files: the files created physically ....................................... 53Associating the controls with the data ........................................................................ 54The queries .................................................................................................................... 56The embedded queries ................................................................................................. 57The Table control ........................................................................................................... 58Universal replication ..................................................................................................... 603-tier architecture ......................................................................................................... 61Using an LDAP directory ............................................................................................... 62

PART 5 - COMMUNICATION Managing emails ........................................................................................................... 65Transferring files by FTP ............................................................................................... 67Managing sockets ......................................................................................................... 69Managing streams (video-conferencing) ..................................................................... 71Telephony ...................................................................................................................... 72Web Services ................................................................................................................. 73

PART 6 - TESTS AND SETUP The different available tests ......................................................................................... 77The debugger ................................................................................................................. 78Unit tests ........................................................................................................................ 80Unit tests on the executable ........................................................................................ 81Optimizing an application ............................................................................................. 82The different modes for installing an application ....................................................... 83Monitor your applications ............................................................................................. 87

PART 7 - APPENDICES New features of WinDev 14 ......................................................................................... 91Components supplied with WinDev ............................................................................. 93Examples supplied with WinDev .................................................................................. 97

Dessin.book Page 6 Jeudi, 23. avril 2009 11:49 11

Page 7: WinDev 14 Concepts US

PART 1

Developing an application

Dessin.book Page 7 Jeudi, 23. avril 2009 11:49 11

Page 8: WinDev 14 Concepts US

Dessin.book Page 8 Jeudi, 23. avril 2009 11:49 11

Page 9: WinDev 14 Concepts US

Part

1:

Develo

pin

g a

n a

pp

licati

on

9

Development environment

WinDev is a development environment on PC used to develop Windows applications.

Dessin.book Page 9 Jeudi, 23. avril 2009 11:49 11

Page 10: WinDev 14 Concepts US

Part

1:

Develo

pin

g a

n a

pp

licati

on

10

Developing an application

Dessin.book Page 10 Jeudi, 23. avril 2009 11:49 11

Page 11: WinDev 14 Concepts US

PART 2

Project management

Dessin.book Page 11 Jeudi, 23. avril 2009 11:49 11

Page 12: WinDev 14 Concepts US

Dessin.book Page 12 Jeudi, 23. avril 2009 11:49 11

Page 13: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

13

Project and Analysis

A WinDev project is a set of windows, controls, classes, components, and so on whosepurpose is to create a Windows application.

A WinDev analysis contains the description of the data files.

In most cases, a project is associated with an analysis.An analysis can be associated with one or more projects.

To create the "lovelyeyes" application, create the "lovelyeyes" project.

Dessin.book Page 13 Jeudi, 23. avril 2009 11:49 11

Page 14: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t14

Source Code Manager (SCM)OverviewTo simplify teamwork, a Source Code Manager is available in WinDev. This Source CodeManager allows several developers to work together on the same project at the sametime and to share elements among several projects.

The elements found in the SCM can be shared:• via a network• via Internet• in offline mode. In this case, the elements requiring specific attention will be chec-

ked out from the SCM when the laptop is connected to the main system for instance.

Dessin.book Page 14 Jeudi, 23. avril 2009 11:49 11

Page 15: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

15

Operating mode of the Source Code ManagerThe following example presents the Source Code Manager:

If a project element (window, report, and so on) is checked out, this element cannot bechecked out twice.Once the checked-out elements are modified, these elements must be checked in so thatthe modifications can be taken into account by the source project. Indeed, the SCM da-tabase stores a history of all the project elements since their creation.

Whenever an element is checked in, the version number of the source project is incre-mented by 1.

Dessin.book Page 15 Jeudi, 23. avril 2009 11:49 11

Page 16: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t16

The Control CentersTo optimize the management of your development projects, WinDev gives you the abilityto use the Control Centers. The different Control Centers allow you to:• Manage the requirements of a project, page 17.• Manage the monitoring of a project, page 18.• Manage the bugs and the evolutions requested by the users on a project, page 19.• Manage the business rules, page 20.

The Control Centers use a database (HyperFileSQL Classic or Client/Server). This databa-se is shared among the different tools available in WinDev:

When installing WinDev, the setup program proposes:• to create the database of Control Centers. This database will be automatically crea-

ted in HyperFileSQL Classic format in the specified directory.• to share an existing database of Control Centers.

Dessin.book Page 16 Jeudi, 23. avril 2009 11:49 11

Page 17: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

17

Managing the requirementsThe Control Centers allow the project manager to manage a development project. To doso:• define the different contributors of the project.• Define the requirements (with the different elements associated with them).Each developer performs the different tasks assigned to him.The project manager can follow the progress status of the project at any time.

Dessin.book Page 17 Jeudi, 23. avril 2009 11:49 11

Page 18: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t18

Project Monitoring CenterThe Project Monitoring Center allows the different contributors of a project to managetheir task schedule. These tasks can be linked to requirements and they can correspondto several projects.

Operating mode of the Project Monitoring CenterOnce all the project tasks have been defined, the Project Monitoring Center takes care ofeverything. Entering the time spent on a task is almost automatic, it requires no specificaction and it generates no particular constraint.When the relevant project is opened, the Project Monitoring Center requests or indicatesthe current task. As soon as a task is completed, all you have to do is indicate that thistask is over and specify the new task.A task can be linked to a project element (window, report, and so on). Whenever the re-levant element is opened, the time spent on this element is counted and stored in themonitoring center. Conversely, the element corresponding to the task you want to per-form can be automatically opened from the task list.Each developer can also view his own task list in the "Project Monitoring Center" pane.

Dessin.book Page 18 Jeudi, 23. avril 2009 11:49 11

Page 19: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

19

Managing the suggestions and the inci-dentsThe Control Centers also enables you to manage the user feedback regarding your appli-cations.If your application contains an automatic help menu (’?’ menu with "Send sugges-tions…"), the users of your application will be able to easily send you suggestions, inci-dents or business rules.

Dessin.book Page 19 Jeudi, 23. avril 2009 11:49 11

Page 20: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t20

Managing the business rulesWinDev enables you to manage the business rules. A business rule is used to define aspecific operating mode or a specific process. For example: the calculation of a specificVAT rate, the rules for changing the status of a customer, the formula for calculating ship-ping costs, a commercial commission, a discount rate, a decay coefficient, and so on.A business rule can be simple or complex.The business rules can come from:• the specifications (corresponding to the requirements).• the suggestions made by the users of the application.

Dessin.book Page 20 Jeudi, 23. avril 2009 11:49 11

Page 21: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

21

Dashboard of the projectThe project dashboard is a main element for managing the WinDev projects. The projectdashboard gives an overall view of the progress status of a project.

The dashboard proposes two modes for viewing the project:• The Developer mode.• The Project Manager mode.

In Developer mode, the dashboard is made of:• lights: Everything is OK when the lights are green. The red lights indicate a possible

problem.• lists of elements, giving quick access to the main options of the project.• counters, used to manage the new features, the requests, and so on.

In Project Manager mode, the dashboard is used to get graphic information about the sta-tus progress of the project and about the quality of the project. This mode is recommen-ded when using the Project Monitoring with a management of requirements.

Dessin.book Page 21 Jeudi, 23. avril 2009 11:49 11

Page 22: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t22

WinDev, WebDev, WinDev Mobile: same projectThe projects are often multi-target projects.For instance, for an ERP system intended for Windows, it is very likely that beside themain application, which will be the backbone of the solution, there will be sales peopleequipped with PDAs or Smartphones, shops that will use mobile terminals to manage in-ventory and that Intranet and Internet sites will be implemented.

Now, this information is grouped in a global project.

Regardless of the product used to create a project, it can be opened by the other pro-ducts.

When a project is opened in a product other than theone where it was created, a wizard is displayed, al-lowing you to create a project configuration specificto the product used.

For instance, if a WinDev project is opened by Web-Dev, you will have the ability to create a project con-figuration named "WEBSite" used to group all theelements required by the WebDev site.

You have now the ability to view the elements ofeach target from each environment. A project in Win-Dev displays the thumbnails of the WebDev pagesand the WinDev Mobile windows for instance. Clic-king a WebDev page from the project editor of Win-Dev opens the WebDev page (WebDev must beinstalled on the computer).

The following elements are also shared: the docu-ments, the modeling descriptions, the components,the classes, and so on.

Dessin.book Page 22 Jeudi, 23. avril 2009 11:49 11

Page 23: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

23

Project configurationThe project configurations are used to create several different "targets" from the sameproject.From the same project, you have the ability to create:• 2 or 3 executables that do not contain the same elements, with different names, and

so on.• 3 or 4 components• 2 Web services• 1 .Net assemblyYou can work on a specific configuration at any time: the elements that do not belong tothis configuration are grayed in the project graph.

The multiple generation allows you to generate all the project configurations (or some ofthem) in a single operation.

Dessin.book Page 23 Jeudi, 23. avril 2009 11:49 11

Page 24: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t24

Multiple generationThe project configurations are used to easily define the different "Targets" of your project.For the same project, you have the ability to define executables, libraries, Web services,.Net assemblies, and so on.

To generate the result of each configuration, you can select each configuration one byone and generate the corresponding program.

Another faster method is available: the multiple generation. The configurations to gene-rate are selected in a single operation, and the result is instant.

To start a multiple generation, select "Workshop .. Multiple generation".

Dessin.book Page 24 Jeudi, 23. avril 2009 11:49 11

Page 25: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

25

Custom-folders: Organize your projectThe project editor of WinDev is used to represent the entire diagram of the project via theproject graph.With large projects, this representation may be difficult to read. The "custom-folders" areused to improve this representation.A "custom-folder" contains the elements stored by yourself, part of the application for ins-tance: management of customers, management of suppliers, and so on.Some elements can be common to several "custom-folders".It makes it easier to work on part of the application.

Note: The internal components of WinDev can also be used to arrange and organize yourprojects and to share a set of elements among different projects (see ’Internal compo-nent’, page 26).

Content of Contributor custom-folder

Content of Orders custom-folder

Windows, reports, queries related to the orders

Windows, reports, queries related to the contributors

Dessin.book Page 25 Jeudi, 23. avril 2009 11:49 11

Page 26: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t26

Internal componentAn internal component is used to group several project elements. This grouping allowsyou to:• Organize a project: you have the ability to create internal components to group the

project elements by feature for instance.• Share the elements among several projects, via the SCM (Source Code Manager).

The elements found in an internal component can be private or public:• The private elements can be handled by the other elements of the component.• The public elements can be handled by the elements of the project that uses the

internal component.

Dessin.book Page 26 Jeudi, 23. avril 2009 11:49 11

Page 27: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

27

Multilingual applicationsA multilingual application is an application that can be distributed in several languages.WinDev takes into account the different languages of the application at all steps of theapplication development.

The main steps for developing a multilingual application are as follows:

Dessin.book Page 27 Jeudi, 23. avril 2009 11:49 11

Page 28: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t28

Creating a Java application with WinDevThe different steps for creating a Java application from WinDev are as follows:

Dessin.book Page 28 Jeudi, 23. avril 2009 11:49 11

Page 29: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t

29

Creating a Linux application with WinDevWinDev enables you to create Linux applications "in console mode". The different stepsfor creating a Linux application from WinDev are as follows:

Dessin.book Page 29 Jeudi, 23. avril 2009 11:49 11

Page 30: WinDev 14 Concepts US

Part

2:

Pro

ject

man

ag

em

en

t30

Dessin.book Page 30 Jeudi, 23. avril 2009 11:49 11

Page 31: WinDev 14 Concepts US

PART 3

Project elements

Dessin.book Page 31 Jeudi, 23. avril 2009 11:49 11

Page 32: WinDev 14 Concepts US

Dessin.book Page 32 Jeudi, 23. avril 2009 11:49 11

Page 33: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts

33

MDI/Non-MDI application

Two types of applications can be created in Windows:• the MDI applications• the non-MDI applications

MDI applicationsIn an MDI application, all the application windows are displayed in the same main win-dow. Two types of windows can be found in the MDI applications:

Non-MDI applicationsIn a non-MDI application, the windows are displayed one after another and they are over-laid. The user can handle the last window displayed. The previous windows are not acces-sible.

MDI parent window: All the other windowsof the application are displayed in this win-dow. This window allows the user to han-dle the main menu of the application.

MDI child window: Application window dis-played in the parent window. The user willbe able to enter information in these win-dows

Dessin.book Page 33 Jeudi, 23. avril 2009 11:49 11

Page 34: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts34

Choosing a type of control according to the information to displayWinDev proposes several types of controls:

You want to… Use a control of thefollowing type:

Display text, a title, and so on. Static

Select a value from a list (country, city, and so on) Radio button, Combo box, Listbox

Select several values from a list (recipients of a message, andso on)

Check box, List box

Display a graphic image (photo, and so on) Image

Display an animation (animated Gif) Image

Display the content of a file in a table (list of customers, orderdetails, and so on)

Browsing table or memory ta-ble

Repeat controls in a window (product catalog with photo, andso on)

Looper

Display an image refreshed on a regular basis Web Camera

Enter information Edit control

Propose an animated menu made of images Carousel

Program an action in a window (display another window, starta printout, and so on)

Button

Display information according to a hierarchical system (directorycontent)

TreeView, TreeView table

Display a bar chart, a line chart, a pie chart Chart

Display a progress Progress bar

Group the controls by theme and display the themes one byone

Tab, SideBar, HideShow

Display a bar code Bar code

Dessin.book Page 34 Jeudi, 23. avril 2009 11:49 11

Page 35: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts

35

Window templatesWinDev enables you to create window templates. These templates contain all the graphicelements common to all the windows of your application.The modifications made to a window template are automatically applied to all the win-dows that use this template.A window template enables you to comply with the style book defined for an application.

A window template can be created:• directly ("File .. New .. Window .. Window template").• from the current window ("File .. Save as template").To create a window based on a template, select the template that will be used when crea-ting the window.

Note: The template elements can be programmed in the template itself.

The characteristics of the elements can be dissociated from the template. For example,the position of a control can be dissociated from the template so that the control can belocated somewhere else while it still benefits from the other features (code, style, and soon). We talk of control inheritance. In this case, the elements are identified by a bluesquare.

Defining a window template.The template is enclosed by a

green line in the editor.

Using the template in several windows.The elements belonging to the template are identified by a yellow square.

Dessin.book Page 35 Jeudi, 23. avril 2009 11:49 11

Page 36: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts36

Control templatesWinDev enables you to create control templates. A control template is a set of controlsthat can be re-used in several windows.The modifications made to a control template are automatically applied to all the win-dows that use this template.A control template is used to:• group a set a controls for a specific purpose.• make the controls independent of the window hosting them.

A control template can be created:• directly ("File .. New .. Window .. Control template")• from the controls found in the window ("Control .. Refactoring .. Create a control tem-

plate from the selection").To create a window based on a control template, create a "Control Template" control.Note: The template elements can be programmed in the template itself.

The characteristics of the elements can be dissociated from the template. For example,the position of a control can be dissociated from the template so that the control can belocated somewhere else while it still benefits from the other features (code, style, and soon). We talk of control inheritance. In this case, the elements are identified by a bluesquare.

Defining a control template.The template is enclosed by a green line in the editor.

Using the template in a window.The elements belonging to the template are enclosed

by a blue line and identified by a yellow square.

Dessin.book Page 36 Jeudi, 23. avril 2009 11:49 11

Page 37: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts

37

RADRAD (Rapid Application Development) is used to create windows from:• the analysis linked to the project,• standard or custom RAD patterns,• skin templates.The generated windows contain the necessary source code. The test of these windowscan be immediately run with the data found on the development computer.

Dessin.book Page 37 Jeudi, 23. avril 2009 11:49 11

Page 38: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts38

RIDRID (Rapid Interface Design) is used to create windows from:• the analysis linked to the project,• standard or custom RAD patterns,• skin templates.The generated windows only contain the controls linked to the analysis items. The sourcecode required for these windows to operate must be written by the developer. Only thecode required to operate the additional elements of the pattern is added. Your customcode can be entered directly.

Dessin.book Page 38 Jeudi, 23. avril 2009 11:49 11

Page 39: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts

39

ComponentA component is a set of WinDev elements: windows, reports, analysis, and so on. This setof elements performs a specific feature. For example, a component can correspond toone of the following features:• Sending faxes,• Sending emails,• and so on.A WinDev component can be distributed to other WinDev developers (free of charge ornot). These developers will be able to easily include the feature proposed by the compo-nent in their application. The component will be included in the application and distribu-ted along with the application.

Dessin.book Page 39 Jeudi, 23. avril 2009 11:49 11

Page 40: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts40

Multi-product componentsWinDev, WebDev and WinDev Mobile give you the ability to create multi-product compo-nents. These components can contain windows, pages, and so on, and they can be usedin a WinDev, WebDev or WinDev Mobile project.

The principle is as follows:

Dessin.book Page 40 Jeudi, 23. avril 2009 11:49 11

Page 41: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts

41

ReportA report provides a custom view of the data: data entered in the database, data found ina text file, data coming from a Table control, and so on.A report can be displayed on the screen, saved in an HTML file, printed, and so on.

A report can be used to summarize and synthesize the data.You can:• group the data.• sort the data according to any criterion.• perform calculations (averages, statistics) or even create charts.

The diagram below presents a simplified definition of a report:• the data to print comes from a data source (file described in an analysis, HyperFi-

leSQL view, query, memory zone or text file).• the report groups, sorts and displays the data.• the report can be displayed on the screen, saved in an HTML file, a RTF file, and so

on, or printed.

Dessin.book Page 41 Jeudi, 23. avril 2009 11:49 11

Page 42: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts42

Report templatesIn most cases, the printouts use a standardized appearance and layout: date in the topright corner in a specific format, page footer with the time of printout and the name of thefile, logo in the top left corner, and so on.The report templates allow you to easily standardize the layout of your reports.

A report template can be created:• directly ("File .. New .. Reports .. Report template").• from the current report ("File .. Save as template").To create a report based on a template, select the template that will be used when crea-ting the report.Note: The template elements can be programmed in the template itself.The characteristics of the elements can be dissociated from the template. For example,the position of a control can be dissociated from the template so that the control can belocated somewhere else while it still benefits from the other features (code, style, and soon). We talk of inheritance. In this case, the elements are identified by a blue square.

Using the template in different reports. The elements belonging to the template are identified by a yellow square.

The overloaded template elements are identified by a blue square.

Defining a report template in the report editor.

Dessin.book Page 42 Jeudi, 23. avril 2009 11:49 11

Page 43: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts

43

Distributing "Reports and Queries"By default, the user of your application cannot modify or create reports and queries. "Re-ports and Queries" (can be distributed along with your applications) allow the users tocustomize the reports according to their own requirements.

Dessin.book Page 43 Jeudi, 23. avril 2009 11:49 11

Page 44: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts44

User groupwareThe User Groupware enables you to easily include a management of the users and rightsin a WinDev application.Two types of users are taken into account:• simple user, who directly uses the application.• supervisor, who can configure the users and their rights.

Dessin.book Page 44 Jeudi, 23. avril 2009 11:49 11

Page 45: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts

45

UMC: User Macro-Code

The UMC mode allows the end user to enter WLanguage code and to graft it onto an exis-ting application.

Let’s consider the following case:An edit window of a customer form requires the presence of an email address but it doesnot check its format. The user wants to check the presence of the "@" character in theaddress.

To enable this feature, specify:• that the project accepts the management of UMC (in the project description).• that this executable accepts the management of UMC (when creating the executa-

ble).

An icon found at the top of the window allows theuser to customize the processes.

The window for configuring the UMC is dis-played. A new action can be added by the userfor this window. In this case, the email addressis checked.

The user enters the WLanguage code. The F1 keyis used to display the help for WLanguage.

Dessin.book Page 45 Jeudi, 23. avril 2009 11:49 11

Page 46: WinDev 14 Concepts US

Part

3:

Pro

ject

ele

men

ts46

Dessin.book Page 46 Jeudi, 23. avril 2009 11:49 11

Page 47: WinDev 14 Concepts US

PART 4

Database

Dessin.book Page 47 Jeudi, 23. avril 2009 11:49 11

Page 48: WinDev 14 Concepts US

Dessin.book Page 48 Jeudi, 23. avril 2009 11:49 11

Page 49: WinDev 14 Concepts US

Part

4:

Data

base

49

The different types of accessible filesWinDev, WebDev and WinDev Mobile propose a simple access to the most common da-tabases.

Dessin.book Page 49 Jeudi, 23. avril 2009 11:49 11

Page 50: WinDev 14 Concepts US

Part

4:

Data

base

50

Analysis: Structure of the databaseWhen a WinDev, WebDev or WinDev Mobile project uses data files, this project must beassociated with an analysis. An analysis enables you to describe the structures of thedata (files, items, and so on) used in your project.The data model editor enables you to easily create an analysis.

The analysis of a WinDev project corresponds to the LDM (Logical Data Model). The entirestructure and data organization are described: the data is grouped by file. Each file con-tains various pieces of data named item.In the analysis, the description of a file can be linked to a type of file (HyperFileSQL, Ora-cle, and so on).

Dessin.book Page 50 Jeudi, 23. avril 2009 11:49 11

Page 51: WinDev 14 Concepts US

Part

4:

Data

base

51

HyperFileSQL ClassicA WinDev HyperFileSQL application can operate in Network mode (called HyperFileSQLClassic) or in Client/Server mode.

The characteristics of the Network mode are as follows:• A HyperFileSQL Network application is run on different user computers.• The data files are found in a directory that can be accessed by the user computers.

Each user computer physically accesses the data files.• The processes (query, read/add into a file, and so on) are performed on each user

computer.

User 3

WinDevApplication

NetworkHyperFileSQL

databases(shared directory)

User n

WinDevApplication

User 1

WinDevApplication

User 2

WinDevApplication

Dessin.book Page 51 Jeudi, 23. avril 2009 11:49 11

Page 52: WinDev 14 Concepts US

Part

4:

Data

base

52

HyperFileSQL Client/ServerA WinDev HyperFileSQL application can operate in Network mode (called HyperFileSQLClassic) or in Client/Server mode.

The characteristics of the Client/Server mode are as follows:• A HyperFileSQL Client/Server application is run on different user computers (called

client computers).• The data files are found on a server. Only the server physically accesses the data

files.• All the processes (query, read/add into a file, and so on) are performed on the ser-

ver.

Client Computer 1

WinDevApplication

Client Computer 2

WinDevApplication

Client Computer n

WinDevApplication

Windows or LinuxHyperFileSQL server

Manta Server

Client/ServerHyperFileSQLDatabases

Connection type: Network,USB, Wi-Fi,Internet...

TCP/IP Protocol

Dessin.book Page 52 Jeudi, 23. avril 2009 11:49 11

Page 53: WinDev 14 Concepts US

Part

4:

Data

base

53

Creation of HyperFileSQL files: the files created physicallyThe data model editor is used to describe the structure of the data files.Depending on the information entered in the data model editor, different files are createdphysically.

Note: This diagram presents the main created files only. Other specific files can be crea-ted if the file uses the log process, the transactions or the replication.

Dessin.book Page 53 Jeudi, 23. avril 2009 11:49 11

Page 54: WinDev 14 Concepts US

Part

4:

Data

base

54

Associating the controls with the dataA window can display information coming from:• a database: the controls are directly linked to the items of the files or queries availa-

ble in the database.• variables found in the code of the application (variables global to the window or to

the project or parameters passed to the window).To display this information in a window, the controls of this window must be linked to:• the different items of the database.• the different available WLanguage variables.

The method for displaying and retrieving information is straightforward:• The link between a control and an item or a variable is defined in the window editor,

when describing the control ("Link" tab).• ScreenToFile is used to update the record or the variable with the data displayed on

the screen.• FileToScreen is used to update the data displayed on the screen with the information

saved in the file or with the information saved in the variable.

Link between control and item

Dessin.book Page 54 Jeudi, 23. avril 2009 11:49 11

Page 55: WinDev 14 Concepts US

Part

4:

Data

base

55

Link between control and variable

Dessin.book Page 55 Jeudi, 23. avril 2009 11:49 11

Page 56: WinDev 14 Concepts US

Part

4:

Data

base

56

The queriesA query is used to interrogate a database in order to view, insert, modify or delete data.The structure of the query defines the data used.A query can interrogate one or more files.The query editor is used to easily create queries, without programming.

Dessin.book Page 56 Jeudi, 23. avril 2009 11:49 11

Page 57: WinDev 14 Concepts US

Part

4:

Data

base

57

The embedded queriesThe controls found in a window can be linked to a data file or to an existing query, and soon. These controls can also be linked to a query created when the control was designed.

In this case, the query is included in the window. It is found in the WDW file correspondingto the window. If the WDW file is transmitted, the embedded queries used by this windowwill also be supplied.

Embedded query:MyWindow_2$Query

Embedded query:MyWindow_1$Query

Dessin.book Page 57 Jeudi, 23. avril 2009 11:49 11

Page 58: WinDev 14 Concepts US

Part

4:

Data

base

58

The Table controlWinDev proposes threes types of table controls that can be used in a window:• Browsing table with direct access• Memory table• Browsing table loaded in memory

Browsing table with direct accessA browsing table with direct access is used to directly display the data coming from a datafile or from a query. The structure of the file was described in the data model editor andthe data was entered in the application.Browsing the file is used to display the data in the table. The file is read for each row dis-played: the record read is displayed in a table row.

The data displayed not linked to the file is not kept when displaying the row (value of acheck box column for instance).The WLanguage functions starting with "Table" are used to handle the browsing tableswith direct access. The addition or the deletion of a table row involves the addition or thedeletion of the record in the linked file.

Memory tableA memory table is used to directly display the data loaded in memory. The data is addedto the table by programming (with TableAddLine for instance)

Since the data is found in memory, the table allows you to perform all the operations onthe data (sort on any column, search performed in the columns, and so on).

Dessin.book Page 58 Jeudi, 23. avril 2009 11:49 11

Page 59: WinDev 14 Concepts US

Part

4:

Data

base

59

Browsing table loaded in memoryThe browsing tables loaded in memory combine the benefits of the browsing tables withdirect access and the benefits of the memory tables.The table is linked to the data file but the content of the file is entirely loaded in memory.Sorting and searching are available on all the columns.The data not linked to the file is kept when handling the scrollbar (Check box column forinstance).Since the file’s records are loaded in memory, this type of table is recommended for filescontaining less than 100,000 records (to avoid saturating the memory).

Note: the different fill modes (memory, browsing, browsing loaded in memory) are availa-ble for the list boxes, combo boxes, tables, loopers, and so on.

Dessin.book Page 59 Jeudi, 23. avril 2009 11:49 11

Page 60: WinDev 14 Concepts US

Part

4:

Data

base

60

Universal replicationThe universal replication is used to update databases of same format or databases ofdifferent formats (HyperFileSQL Classic, Oracle, SQL Server, and so on). You can for ins-tance perform a synchronization between a HyperFileSQL database and an Oracle data-base.

The universal replication uses a centralized model: all the databases are synchronizedwith a master database. Then, the master database carries over the modifications to theother databases.

The synchronization can be adapted to special cases. For instance, you have the abilityto retrieve the records concerning a specified product or the records created at a givendate, manage the conflicts, display a setting window, and so on.These changes must be done by programming via HRplFilterProcedure.

Dessin.book Page 60 Jeudi, 23. avril 2009 11:49 11

Page 61: WinDev 14 Concepts US

Part

4:

Data

base

61

3-tier architectureThe 3-tier architecture is designed to separate the 3 "tiers" of an application: UI, proces-ses and data.An application will be made of 3 separate tiers:• a presentation tier,• a process tier,• a tier for accessing the data.

The reason for separating them is to facilitate maintenance and future upgrades of theapplication. This ensures higher security because the access to the database is allowedvia the process tier only. It also optimizes teamwork and multi-target development.

HyperFileSQLClassic, Client/Server

External Databases,Oracle, AS/400, SQL Server...

Components Web Services WebDev ApplicationServer

Mobile Windows Browser

Presentation tier

Application tier

Data tier

Dessin.book Page 61 Jeudi, 23. avril 2009 11:49 11

Page 62: WinDev 14 Concepts US

Part

4:

Data

base

62

Using an LDAP directoryLDAP (Lightweight Directory Access Protocol) is increasingly used in the business world.The protocol is mainly used to manage the network directories. This protocol defines theoperations for accessing and searching the data, making incompatible systems compa-tible.WinDev provides access to this data.Depending on the information stored in the LDAP directory, you can for instance identifya user when he connects to an application, check the user rights for the application, andso on.

Several LDAP functions are used to process this type of connection and the informationfound in the LDAP directories.

An LDAP directory can also be used by the user groupware available in WinDev.

Dessin.book Page 62 Jeudi, 23. avril 2009 11:49 11

Page 63: WinDev 14 Concepts US

PART 5

Communication

Dessin.book Page 63 Jeudi, 23. avril 2009 11:49 11

Page 64: WinDev 14 Concepts US

Dessin.book Page 64 Jeudi, 23. avril 2009 11:49 11

Page 65: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

65

Managing emailsWinDev proposes several methods for managing emails:• the POP3/SMTP protocol (most common method)• the "Simple Mail API (also called SMAPI or Simple MAPI)"

POP3/SMTP protocol

This protocol is a protocol for email management supported by all the service providers.This protocol enables you to directly communicate with the server, available at your ISP.

Dessin.book Page 65 Jeudi, 23. avril 2009 11:49 11

Page 66: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

66

"Simple Mail API (also called SMAPI or Simple MAPI)"This email management mode is used by most of the Microsoft applications and mainlyby MS Exchange.

Dessin.book Page 66 Jeudi, 23. avril 2009 11:49 11

Page 67: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

67

Transferring files by FTPThe FTP (File Transfer Protocol) is a protocol used to transfer files from a site to anotherremote site. This protocol is used to exchange files via TCP/IP or Internet.

PrincipleTo handle the files found on an FTP server from a WinDev application, you must:

1. Connect to an FTP server (FTPConnect).

2. Transmit and retrieve files (according to the connection mode). For a passive connec-tion, the WinDev application must request the authorization from the FTP server beforeany operation is performed on the server files. You can also:• find out the characteristics of the files found on an FTP server: attributes, size, and

so on.• handle the files found on an FTP server: creation, deletion, and so on.• list the files of a directory found on the FTP server by running a procedure used to

perform a process for each file found.

Dessin.book Page 67 Jeudi, 23. avril 2009 11:49 11

Page 68: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

68

3. Disconnect from the server (FTPDisconnect).

Dessin.book Page 68 Jeudi, 23. avril 2009 11:49 11

Page 69: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

69

Managing socketsWinDev provides several functions for advanced socket management.A socket is a communication resource used by the applications to communicate betweencomputers regardless of the type of network.This communication mode can be used, for instance, to communicate between compu-ters connected via Internet.

Different possibilitiesA WinDev application can manage sockets according to different modes:

• Client WinDev application: the application connects to any server and exchanges data via a socket.

• "Simplified server" WinDev application: the WinDev application is a server, exchan-ging information via a socket with a single client computer (WinDev socket recom-mended on the client computer but not mandatory).

• "Standard server" WinDev application: the WinDev application is a server, exchan-ging information via sockets with several client computers.

Principle of a client applicationA client application of a socket server connects to a standard server in order to exchangeinformation via a socket.

Example: A WinDev client application can connect to a standard news server on Inter-net.

Step 1: Connection to the serverTo connect to a server socket, use SocketConnect. This function is used to request a con-nection to the server. The socket is identified by its port and by its address.

Step 2: Exchange of dataOnce two computers have connected their socket, a communication stream is esta-blished between these two computers. These two computers can read and write charac-ter strings on the socket.To read and write on the server socket, the WinDev client application must use Socke-tRead and SocketWrite.

Step 3: End of communicationTo end the communication, close the socket from the client computer with SocketClose.

Dessin.book Page 69 Jeudi, 23. avril 2009 11:49 11

Page 70: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

70

The different steps can be represented as follows:

Note: the SocketXXX functions can also be used to manage secure sockets according tothe SSL protocol. To do so, use SocketCreateSSL and SocketConnectSSL.

Dessin.book Page 70 Jeudi, 23. avril 2009 11:49 11

Page 71: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

71

Managing streams (video-conferencing)To handle the communication streams, WinDev provides:• the Conference control.• the WLanguage STREAM functions.

This enables two users to communicate between themselves. The image and the voiceof each user are transmitted in real time on each connected computer.

Examples of applications that use streams:• video-conferencing• broadcasting a live press conference• and so on.

Caution:

• The current computer and the connected computers must be equipped with a web camera and/or a microphone. If one of the computers is not equipped with a web camera or a microphone, the corresponding image or voice will not be broadcasted.

• Only the video sequences currently broadcasted by the web cameras installed on the connected computers can be viewed. No video file can be viewed.

• Only the sounds currently broadcasted by the microphones installed on the connec-ted computers can be listened to. No sound file can be listened to.

Dessin.book Page 71 Jeudi, 23. avril 2009 11:49 11

Page 72: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

72

TelephonyWinDev allows you to easily manage the incoming and outgoing phone calls via the tele-phony functions. These functions are used to manage a voice box, an answering machi-ne, and so on in a WinDev application directly.

Required configuration:To be able to use the telephony features, you must have:• a modem.

To save and play back recordings, this modem must have voice support.To identify the caller, the modem must support "Caller ID" (caller ID).

• the Tapi 2.0 protocol. This technology can be used on all the systems; however, you must:- install service pack 4 (or later) if the system used is Windows NT4- upgrade the system if the system used is Windows 95 (can be downloaded from ftp://ftp.microsoft.com/developr/tapi/tapi2195.zip). Address valid at the time of publication.

Dessin.book Page 72 Jeudi, 23. avril 2009 11:49 11

Page 73: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

73

Web ServicesWinDev proposes two management modes for Web services:• Using existing Web services• Generating a Web service

Using a WEB serviceYour WinDev application can use an existing Web service. To do so, you must know theaddress of the Web service and import its description into the application.

Dessin.book Page 73 Jeudi, 23. avril 2009 11:49 11

Page 74: WinDev 14 Concepts US

Part

5:

Com

mu

nic

ati

on

74

Generating a WEB serviceA WinDev application can be a Web service itself. In this case, the WinDev application cor-responds to a set of procedures. This Web service can be used by any type of application.All you have to do is install it on a server.

Dessin.book Page 74 Jeudi, 23. avril 2009 11:49 11

Page 75: WinDev 14 Concepts US

PART 6

Tests and setup

Dessin.book Page 75 Jeudi, 23. avril 2009 11:49 11

Page 76: WinDev 14 Concepts US

Dessin.book Page 76 Jeudi, 23. avril 2009 11:49 11

Page 77: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p

77

The different available testsSeveral methods are available to run the test of your application. The table below pre-sents these different modes.

Type of test Description

Test of the entire project Simulates the start of the application by the execu-table. Used to run the test of the entire application,even if its development is not completed.As soon as a problem occurs in the execution ofthe project, the debugger can be started to identifyand fix the problem.

Test of the current element Used to run the test of this element as soon as itsdevelopment is completed.The debugger can be run as soon as a problem oc-curs in the reports or windows.

Test of a project step by step (viathe debugger)

Used to run the debugger when the application isstarted. This solution enables you to monitor howthe application runs via the debugger.You also have the ability to debug a specific execu-table, an executable already run or an executablerun on another computer.

Unit test Used to run the test of windows, procedures andclasses found in an application at different levelsof development.The test scenarios are automatically generated inWLanguage from the test of the application or fromthe test of an element. The scenarios can be di-rectly modified in the code editor.

Regression test Used to run the regression test of an elementbetween the different versions of an application.To do so, select (or create) the test scenario thatwill be run.

Dessin.book Page 77 Jeudi, 23. avril 2009 11:49 11

Page 78: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p78

The debuggerTo help you optimize your source code, a debugger is supplied with WinDev.The debugger allows you to run your applications step by step, by viewing the WLanguagecode running, the content of the variables, and so on.

Debugging the project

1. Using a breakpoint, defined in the code editor.The debugger will be automatically started when the line preceded by a breakpoint is run. To insert a breakpoint, click in front of the code line: a red bullet is displayed.

2. Using the STOP keyword in the WLanguage codeThe debugger will be automatically started when this code line is run.

Dessin.book Page 78 Jeudi, 23. avril 2009 11:49 11

Page 79: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p

79

3. Selecting "Project .. Test Mode .. Trace the project"The debugger is started when the test of the application is run.

4. Pressing [CTRL] + [PAUSE] while running the test of the window or projectThe debugger is started during the next action performed after the use of [CTRL] + [PAU-SE].

Debugging an executableWinDev also enables you to directly debug the executable associated with the currentproject in WinDev. This executable can:• be started from WinDev, on the development computer.• be already started on the development computer.• be started from WinDev, on a remote computer.• be already started on a remote computer.

Debugging a componentA component is debugged from the project of the component. You can:• Run the test of the component from the project of the component• Run the test of the component by running another project found on the development

computer. This enables you to run the test of the component from the project that uses it.

• Run the test of the component by running an executable found on the development computer. This enables you to run the test of the component directly from the execu-table that uses it.

Dessin.book Page 79 Jeudi, 23. avril 2009 11:49 11

Page 80: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p80

Unit testsThe unit tests are used to run the test of windows, procedures and classes found in anapplication at different steps of development.To do so, select (or create) the test scenario that will be run.These scenarios are generated in WLanguage and they can be directly modified.These scenarios are grouped in the test editor. The test editor analyzes the result of theunit tests and calculates the level of validation for the application.When creating the application executable, WinDev:• displays the validation level of the application.• indicates the modified elements whose test was not run.

To create a unit test on the current window, click .To create a unit test on a procedure or on a class, select this procedure or this class inthe "Code" pane and select "Create a unit test" from the popup menu.

Dessin.book Page 80 Jeudi, 23. avril 2009 11:49 11

Page 81: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p

81

Unit tests on the executableThe unit tests created by WinDev can be run on a deployed executable, via the test robot.

The test robot runs the executable in "test mode", via "WD140Test.DLL". The test data(scenarios, test data files if necessary, and so on) is automatically used.

Dessin.book Page 81 Jeudi, 23. avril 2009 11:49 11

Page 82: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p82

Optimizing an applicationWinDev proposes two methods to optimize your applications:• Aided Application Development that makes suggestions to improve the source code

or the interface when developing the application• The profiler that is used to identify the time-consuming processes. Then, all you have

to do is optimize the requested process.

Developing the application

Test of the application

Optimizing your que-ries, improving the an-chors in your windows, and so on. These sug-gestions are made on a regular basis while you develop your ap-plications.

Analyzing the performance of the application while a test is run, viewing the longest proces-ses to optimize the source co-de.

To start the profiler, select "Pro-ject .. Performance and impro-vements .. Analyze the performance".

Dessin.book Page 82 Jeudi, 23. avril 2009 11:49 11

Page 83: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p

83

The different modes for installing an application

Standard setupThe standard setup consists in creating a setup program that will be installed on eachuser computer via a setup media.

This setup mode is compatible with:• the data files in HyperFileSQL Classic format installed locally on the user computer,• the data files in HyperFileSQL Classic format installed on a network and accessible

from the user computer,• the data files in HyperFileSQL Client/Server format installed on a server.

Dessin.book Page 83 Jeudi, 23. avril 2009 11:49 11

Page 84: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p84

Network setupThe network setup consists in creating a setup program that will be installed on a server.All the user computers that want to install the application will start the setup program viathe network.

If an upgrade is available on the application server, the application upgrade will be pro-posed when the application is started on the user computer.

This setup mode is compatible with:• the data files in HyperFileSQL Classic format installed locally on the user computer,• the data files in HyperFileSQL Classic format installed on a network and accessible

from the user computer,• the data files in HyperFileSQL Client/Server format installed on a server.

Dessin.book Page 84 Jeudi, 23. avril 2009 11:49 11

Page 85: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p

85

IP setup

The IP setup consists in creating a setup program that will be installed on a Web Server.All the user computers that want to install the application will start the setup program viaan IP address, an HTML page, and so on.

If an upgrade is available on the Web server, the application upgrade will be proposedwhen the application is started on the user computer.

Dessin.book Page 85 Jeudi, 23. avril 2009 11:49 11

Page 86: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p86

FrameworkThe WinDev framework is the set of libraries (.DLL files) required to run a WinDev appli-cation.When creating the executable, you can choose to use either the Framework specific toyour application or the common Framework.

Directory of the common WinDev framework

Setup directory of an application that uses the common WinDev framework. Only theexecutable will be installed in this directory (as well as the files used to uninstall the ap-plication if necessary).

Setup directory of an application that uses the custom framework. The PC SOFT DLLsare installed in the directory of the application

Dessin.book Page 86 Jeudi, 23. avril 2009 11:49 11

Page 87: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p

87

Monitor your applicationsAn application depends on several external parameters: Web site, HyperFileSQL server,network, and so on. To optimize the management of incidents, WinDev proposes to usea monitoring robot.Made of three executables started on different computers, the monitoring robot is usedto run different tests: Internet tests, network tests, and so on.If problems occur when running a test, different methods can be used by the monitoringrobot to warn you:• Message sent using the PC SOFT messaging program (WDBAL).• Email• Execution of another program.Furthermore, a sound alert can be implemented on the monitor.

Dessin.book Page 87 Jeudi, 23. avril 2009 11:49 11

Page 88: WinDev 14 Concepts US

Part

6:

Tests

an

d s

etu

p88

Dessin.book Page 88 Jeudi, 23. avril 2009 11:49 11

Page 89: WinDev 14 Concepts US

PART 7

Appendices

Dessin.book Page 89 Jeudi, 23. avril 2009 11:49 11

Page 90: WinDev 14 Concepts US

Dessin.book Page 90 Jeudi, 23. avril 2009 11:49 11

Page 91: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

91

New features of WinDev 14

Read this section if you are familiar with WinDev 12.Several new features are available in WinDev 14 to help you develop Windows and Linuxapplications.It is fully compatible with WebDev 14 and WinDev Mobile 14.

Work environmentThe new features of the work environment:

• Project editor:•Project explorer•Multi-project search•Internal component: Ability to include an analysis.•Redistributable monitoring robot.•Optimization of the Control Centers (Project Monitoring Center, Quality Control Center,

and so on)

• Data model editor:•Descriptions of full-text indexes

• Window editor:•New controls: Calendar, Multimedia, and so on.•Table control: breaks, Container columns, process for management of Drag and Drop,

and so on.•TreeView Table control: ability to link to a data file•New types of charts•Improved Radio Button and Check Box controls•Combo Box control: New processes•Tab control: Ability to animate the change of tab.•Databinding: Ability to link the controls with a variable of WLanguage (array, class, advan-

ced element of language)

• Report editor:•Report templates and inheritance•Improved print preview (ability to write note in a printout)

• Code editor:•Line numbering•Spelling checker for the strings and comments•Evolutions of OOP•Collapsible multiline text•Cross-references on the WLanguage functions

Dessin.book Page 91 Jeudi, 23. avril 2009 11:49 11

Page 92: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

92

• Automated tests:•Automatic generation of a test skeleton.

• HyperFileSQL Mobile and HyperFileSQL Client/Server:•Full-text search•Partial indexing of memos•Automatic resume of connection•New SQL commands•Duplication of database•Frame compression

• Java generation:•Support for treeview tables, internal windows, radio buttons and check boxes, and so on.•Support of the Associative Array type•Automatic management of WLanguage errors•Management of multilingual strings in the code editor•New supported functions

ProgrammingThe new programming features:

• New types of variables: Queue, Stack and List• New advanced types used to manage the Google elements, the XLS documents, and so on.• Ability to interface with Office 2007• Ability to interface with Sales Force.• New functions:

•Applixxx functions to manage the setup of applications.•Calendarxxx functions•Gglxxx functions to manage the link with the Google applications•BankHolidayxxx functions to manage the bank holidays•Menuxxx functions to manage the menus dynamically•and so on.

Dessin.book Page 92 Jeudi, 23. avril 2009 11:49 11

Page 93: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

93

Components supplied with WinDevWinDev is supplied with several components. These components are supplied with theirsource code and with an example.The list of the main components supplied with WinDev is as follows:

Name of the component Description

Agent Enables you to manage an agent.

Assisted directory input Enables the assisted input for a directory path or for afile path in an edit control.

Assisted email input Provides assisted input when the user saves an email.

Balloon tip Enables you to manage the display of a BalloonTip(advanced tooltip, displayed above the taskbar).

Client Socket Simplifies the use of the functions for socket server.This component manages the connection to a server.All you have to do is manage the dialog with the ser-ver.

Countries of the world Contains the list of all the countries of the world aswell as their characteristics:- ISO code of each country- list of regions, states or countries making up acountry (including the time difference for each state,region or country)- time difference (GMT)- main currency of the country- main languages- flag of each country- capital- dialing code

Did you know it Enables you to display tips from the different sources(preset tips in the code or from a file).

DisplayImage Enables you to write a note in an image (screen shotfor instance). You have the ability to insert text, lines,and so on.

Editable treeview Enables you to directly rename the different elementsfound in a TreeView control.

Dessin.book Page 93 Jeudi, 23. avril 2009 11:49 11

Page 94: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

94

EventLog Used to:- List and read the events saved in the Windows eventlog.- Add an event to the Windows event log.

Fax Management Enables you to manage faxes (operates in Windows2000 and Windows XP only).

Floating Help Enables you to display temporary information to theuser without disrupting him.

Gantt chart Enables you to create a Gantt chart from a task list.

Glossary Enables you to insert a "Glossary" into an application.It allows the users of the application to classify andstore the frequently used sentences.

GMT SOAP Enables you to retrieve the system time and date of aremote computer via the SOAP protocol.

GraphicList Enables you to manage a graphic list in an internalwindow.

Highlighting Enables you to highlight the control currently in edit bydifferent methods:- changing the font,- changing the background color of the control- displaying a border around the control- displaying an image beside the control.

Last documents Enables you to propose a menu option used to openthe last documents opened in the application.

Limits Enables you to limit an application by differentmethods:- Limit regarding the duration (the application can beused during a 30-day period)- Limit regarding the number of computers (the appli-cation can be run on a single computer)- Limit regarding the number of users (the applicationcannot be run by more than n users)

Memory zone Enables you to view the entire content of a memoryzone in a window. Also enables you to modify and addvalues into the memory zone.

Dessin.book Page 94 Jeudi, 23. avril 2009 11:49 11

Page 95: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

95

Photocopier Enables you to photocopy documents via a scannerand a printer.

Pickers Groups all the pickers available in WLanguage. Eachpicker automatically stores the last path selected inthe registry. This enables the user not to re-browse allthe folders to find the files and/or the directories thathe wants to select.

PostEmail Used to:- create preset messages for the next outgoing emails- create contacts and lists of recipients- create messages and send emails

Print spooler Defines the list of less used printers in order to per-form one or more printouts.

Printout model Enables you to manage printout profiles.

PublicHolidays Used to:- display a calendar and select a date- manage the public holidays in a calendar

RTF search Enables you to perform all types of searches in an RTFcontrol.

Scanner Enables you to digitize a document via a user-friendlyinterface.

SharingMemory Enables you to share and store a password in memo-ry.

SMS Enables you to send SMSs from a WinDev applicationvia the Internet platform www.mctel.fr.

Socket Server Simplifies the use of the functions for socket server.This component manages the server startup and theacceptation of client connections. All you have to do ismanage the dialog with the client applications.

SQL connection Establishes the connection to the database, via the in-formation given by the user when displaying a windowfor connection setting.

Dessin.book Page 95 Jeudi, 23. avril 2009 11:49 11

Page 96: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

96

Two subdirectories are specific to each one of these examples:•the "<ComponentName>-Example" subdirectory contains an example of project that

uses the component,•the "<ComponentName>-Source" subdirectory contains the component project.

Additional components are supplied with the Technical Support Newsletter (LST) or canbe downloaded from our site (www.windev.com).

SystemInfo Proposes three categories of functions used to groupinformation about the current computer, the user andthe network to which the current computer is connec-ted.

Tactile Screen This component is used for interfacing a tactile screenthat can replace the standard keyboard. This key-board enables you to use a WinDev application on acomputer not equipped with a keyboard.

Dessin.book Page 96 Jeudi, 23. avril 2009 11:49 11

Page 97: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

97

Examples supplied with WinDevThe examples supplied with WinDev are intended to help you learn the features of Win-Dev.Their source code is presented in details.These examples are found in the "Examples" subdirectory of the setup directory of Win-Dev and they can be opened directly from the "Wizards, Examples and Components" pa-ne.

Different types of examples are supplied with WinDev:•Full examples: these examples correspond to complete applications and they can be

used without any adaptation.•Teaching examples: these examples illustrate a specific feature.

Here are the features of some of the examples supplied with WinDev.

Full examples

CRM Enables you to manage customers, orders and estimates aswell as a task list and a schedule.

Sales Management This application is made of 5 projects used to manage all theaspects of sales management (customers, suppliers, pro-ducts and stock).

WD .NET WMI The WMI (Windows Management Instrumentation) is used toexhaustively manage the applications and the devices. WMIcan be compared to a database that groups various informa-tion about a computer.It gives you the ability to list the devices installed on the com-puter (networks, video cards, processors) as well as the appli-cations (from the operating system to a "standard"application).

WD Active .Net Directory Enables you to view the content of an Active Directory.

WD Answering Machine Uses the telephony features to manage an answering machi-ne.This answering machine can be interrogated and configuredremotely via a menu.

WD Burner Enables you to burn Audio CDs and data CDs, DVD or Blue-Ray disks.

WD Burner Lite Enables you to burn data CDs, DVD or Blue-Ray disks.

Dessin.book Page 97 Jeudi, 23. avril 2009 11:49 11

Page 98: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

98

WD Dictaphone Proposes the features of a tape recorder. It is used to recorda sound in "WAV" format and to play it back.

WD Euro Calculator Presents multi-currency conversion via a calculator.

WD FTP Threads Enables you to simultaneously transfer several files found inthe same directory via FTP.

WD FTPProgressBar Presents the use of an internal window to display an advan-ced progress bar.

WD Generating data Generates test data for your applications. This data is storedin data files external to the application.To handle these data files, there is no need to associate ananalysis with the project.

WD HTML Album Enables you to manage an HTML photo album.

WD Instant messaging Presents the different functions for managing sockets withWinDev.

WD Loan Enables you to simulate loans and to:- calculate the amount of monthly payments according to theamount of the loan- calculate the amount that can be borrowed according to theamount of a monthly payment- calculate the interest on investment from a monthly depositFor each case, you have the ability to print the depreciationschedule corresponding to your parameters.

WD Magnifier Enables you to zoom a section of the screen via a magnifier.The zoom value can be multiplied by 8.

WD Manager of .Net tasks Enables you to list the applications and the processes via.NET functions.Enables you to perform different processes on the applica-tions.

WD Managing a computerfleet

Enables you to manage a computer fleet.For each computer, you have the ability to define its charac-teristics, its components and its users.These features are implemented via the use of queries, re-ports and combo boxes.

WD Managing Contacts Enables you to manage the contacts and to contact them byemail.You also have the ability to synchronize these contacts withthe ones found on the mobile device linked to the PC and withthe ones found in Outlook

Dessin.book Page 98 Jeudi, 23. avril 2009 11:49 11

Page 99: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

99

WD Managing orders Simplified management of orders/invoices.Used to:- create/modify/delete a product,- create/modify/delete a customer,- contact a customer by email,- show the history of the actions performed for a customer,- place an order, print an order form,- invoice an order, print an invoice, automatically email an in-voice in PDF format to the customer.

WD Multimedia Enables you to read and play:- videos (AVI, MPEG, and so on),- sound files (MP3, WAV),- audio CDs,- Flash animations.

WD NT Service Presents the creation of an "NT service" program.

WD Outlook Enables you to read and write in the Outlook folders:- Messaging- Calendar- Contacts- Tasks.This example is intended to operate with the standard ver-sion of Outlook supplied Office.

WD PALM Desktop Uses the main functions for accessing the Palm Pilot memos.This example is used to retrieve information stored on a PalmPilot.

WD Password Presents a "box" of passwords. It can be used to manage thepasswords created when using Internet sites but also in ap-plications or in everyday’s life (codes for credit cards, and soon).

WD POP3 Enables you to send and receive emails (with or without atta-chments, and so on).

WD POP3Proxy This example presents a POP3 proxy. A proxy is a softwarethat connects to a server on behalf of another program. Inthis example, the proxy is used to automatically archive theemails in a HyperFileSQL database.

WD Puzzle Explains how to use the Drag&Drop functions as well as thefunctions for handling images in WLanguage.

WD RSS Reader Presents the use of classes for reading the RSS streams

WD RTF Editor Enables you to edit text in RTF format.

Dessin.book Page 99 Jeudi, 23. avril 2009 11:49 11

Page 100: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

100

WD Scanner - Twain Used to:- Preview a section of a document- Digitize a document (GIF, JPEG, BMP format)- Digitize a document and copy it to the clipboard- Digitize a document and print it

WD Schedule Enables you to create a graphic schedule containing clickareas.

WD Search on Internet Enables you to control different search engines on Internet(Yahoo, Alta Vista, Voilà, Lycos, Excite, Nomade, Google,Euroseek, and so on).The result of the search is displayed via an ActiveX.

WD Shipping costs Calculates the shipping costs for a package.

WD Synchronizing files Enables you to synchronize two file directories.Once synchronization is performed, the destination directoryis identical to the source directory. The comparison is perfor-med on the presence and on the date of the files.

WD Telephony Uses the telephony functions of WinDev to:- Dial a phone number- Detect and identify the incoming calls

WD Transferring files by FTP Enables you to transfer files:- from an FTP server to the local computer,- from the local computer to an FTP server.

WD Video conference Enables you to establish conference with a remote user.Enables you to send a file to a recipient and to dialog withhim.

WD Video surveillance Enables you to broadcast images recorded by a Web cameravia a network (Internet, Intranet, and so on).

WD ViewTIF Small image editor developed in WinDev for the images in TIFformat only.WD ViewTif is used to open an image and to display the diffe-rent pages of the image- in MDI mode (in several child windows),- in slide show mode.

WD WebCam Explains how a Web camera can be included in a WinDev win-dow.You can:- View the image broadcasted by the camera- Perform an immediate capture- Capture the scene broadcasted as a Windows animation("AVI" file)

Dessin.book Page 100 Jeudi, 23. avril 2009 11:49 11

Page 101: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

101

Teaching examples

WD Zip Enables you to create and read the compressed archives in"WDZ" format (WinDev ZIP).

WD Advanced input mask This example presents the advanced input masks:- Format of positive and negative numbers in a numeric editcontrol- Appearance of negative numbers in a numeric edit control- Appearance of the value 0 in a numeric edit control- Regular expression used to prevent from entering charac-ters other than 1, 2, 3, 4, 5 and 6.- Regular expression used to "control" the input of a Frenchregistration number

WD Advanced reports Presents different types of reports.Used to illustrate:- the internal reports,- the chart control,- the printout in a RTF, HTML or PDF file.

WD Agent Includes an "agent" in a WinDev application via an ActiveX.

WD Alarm Displays an alarm message in the title bar of the active win-dow (regardless of the application). The message can beassociated with a sound alarm.

WD Animated Presents the main animations that can be performed in anImage control.This example proposes:- animations without code,- programmed animations.

WD BarCode Used to create products and to associate them with an exis-ting bar code via a bar code reader. These products can beprinted as labels.

WD Bluetooth This example presents the use of the Bluetooth functions:- to list the accessible Bluetooth devices- to list the services proposed by a device- to connect to a Bluetooth device- to send a file to a device via the "OBEX" functions of WLan-guage.

Dessin.book Page 101 Jeudi, 23. avril 2009 11:49 11

Page 102: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

102

WD Calculations on date andtimes

Performs calculations on dates and times via procedures:- Calculate the duration between two moments (dates andtimes)- Calculate a sum of durations- Calculate an average of durations

WD Carousel This example presents the use of the carousel control ofWinDev.It can be handled as a ListView control.

WD ChainedList Supplies the tools for building chained lists with simplechaining. A list with simple chaining is used to store andbrowse in organized way a set of ordinary values.

WD Characters This program, powered by WinDev, is used to insert specialcharacters in a RTF control and to view the ASCII and ANSIcodes

WD Clickable map Presents a cartography application based on a MICHELINmap (authorization #9905251).In the left part of the window, the entire map is displayedwith gridlines. When one of the cells found in the gridlinesis clicked, the corresponding region is drawn in the rightpart of the window.

WD Clickable reports The example is used to list the customers and to print thislist of customers.During the print preview, a click performed on the customername will open the form of the selected customer.

WD Closing Windows Used to:- Close a Windows session- Stop and restart the computer

WD Controlling Excel Enables you to control Excel via OLE Automation. All the Ex-cel functions can be used.

WD Controlling IE Enables you to control IE via OLE Automation. All the IEfunctions can be used.

WD Controlling OpenOfficeCalc

This example enables you to control OpenOffice.org. In-deed, the workbooks opened in OpenOffice.org can becreated, opened and used from a WinDev application.

WD Controlling OpenOfficeWriter

This example enables you to control OpenOffice Writer. In-deed, the documents opened in OpenOffice Writer can becreated, opened and used from a WinDev application.

WD Controlling Outlook Enables you to control Outlook via OLE Automation. All theOutlook functions can be used.

Dessin.book Page 102 Jeudi, 23. avril 2009 11:49 11

Page 103: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

103

WD Controlling Word Enables you to control Word via OLE Automation. All theWord functions can be used.

WD CSGroupware Presents the user groupware with a HyperFileSQL Client/Server database.

WD Data encryption Presents the different methods used to encrypt data (cha-racter strings or text files).

WD Detecting errors Presents the module for assisted management of HyperFi-leSQL errors:- the default operating mode,- the customization options.

WD Direct printout Enables you to print on the dot-matrix printer connected tothe parallel port of your choice.

WD Drawing Highlights parts of a scanned document or annotates ima-ges via the drawing functions of WLanguage.

WD Drawing lines Enables you to draw the line of a function with parameters(mathematical function).You have the ability to use preset functions or to createyour own functions.

WD Dynamic compilation Presents:- The dynamic compilation of WLanguage code- The execution of dynamically compiled code- The process of the possible runtime errors

WD Evaluation period Enables you to limit the use of an application to a given pe-riod (trial period).

WD Example of unit test This example presents the use of the test editor suppliedwith WinDev via two different cases:- the test of a window- the test of a global procedure

WD External file Explains how to handle files not described in the analysis.

WD Fax Enables you to send faxes containing text in RTF format.

WD Graphic objects Uses the object-oriented programming.This example is an editor of graphic objects.You can:- move, resize the objects- perform selections with the lasso or with the mouse- cut/copy/paste the objects- delete/duplicate the objects- save the created documents and print them.

Dessin.book Page 103 Jeudi, 23. avril 2009 11:49 11

Page 104: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

104

WD Grouping task lists Enables you to group all the tasks distributed among seve-ral projects.

WD Handles Enables you to manage the sizing handles or the movinghandles of a graphic element.

WD Handling shapes Used to:- Draw rectangles, circles and diamonds- Move the created elements- Select the color of the elements to draw- Capture the double-click performed on an element to findout its characteristics- Call a popup menu on an element- Select colors by clicking a shape

WD Highlight Enables you to highlight the control currently in edit bychanging its style.3 types of highlight methods are available:- Displaying a border around the control,- Changing the background color,- Changing the font.

WD Hotkey Enables you to define your own shortcuts.

WD HSL Enables you to define a color via its HSL components (Hue,Saturation, Lightness).

WD HTML Export Manages the external files. Also explains how to handle thefiles in HTML format.

WD Importing HTML pages Saves an HTML page found on a Web site. This page is ana-lyzed in order to import all its dependencies (images, ap-plets, and so on).Remarque: This example is not a site grabber. It can only beused to download the pages one by one.The principle used in this example can also be used to re-trieve information from pages whose format is known (dailydownload of stock quotes for instance).

WD Input checks Checks the data entered by the user (name, company, city,zip code, email address and so on) in a form window.

WD JAVA Calls This example presents the call to the methods of the clas-ses of a JAR archive via JavaExecuteFunction.This example also explains how memory tables can be filled(same operating mode in Java and in Windows)

Dessin.book Page 104 Jeudi, 23. avril 2009 11:49 11

Page 105: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

105

WD Java Chart Designer This example explains how to create charts via the drawingfunctions.Three types of charts are presented:- column- scatter- line.

WD Java Client This example is a Java application developed in WinDev.This example presents:- the Hxxx commands supported in Java on HyperFileSQL(the Hxx commands are also available in Java on MySQLand SQL Server)- the controls with file links

WD Java Controls Presents some controls supported in Java:- the "progress bar" control- the "splitter" control- the "listview" control- the preset actions- the Vista style via the Vista skin template supplied withWinDev.

WD Java Drawing Presents the use of the drawing functions of WLanguagefor the generation of a Java application.The following topics are presented in this example:- the creation of graphic shapes- the creation of text in the graphic areas

WD Java HSL Enables you to define a color via its HSL components (Hue,Saturation, Lightness) and to generate a Java archive.

WD Java Sockets This example presents the use of the "socket" functionsand allows you to generate a .jar.

WD Java XML This example presents the use of the XML functions in aWinDev Java project.

WD JavaEmail Enables you to create an applet that can be used in an In-ternet page.This applet is used to read and send emails.

WD Keystrokes Enables you to detect and to identify the use of a keyboardkey.

WD Lasso Uses a selection lasso in an image control to perform azoom in a preview control.

Dessin.book Page 105 Jeudi, 23. avril 2009 11:49 11

Page 106: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

106

WD License Enables you to display an important text to a user. It can bethe text of the license displayed to the user during the firstexecution of a program for instance.The text must be entirely read, the choice for validating thewindow is activated only when the display control is entirelyscrolled.

WD Lock Explains how to handle the functions used to automaticallylock an application.

WD Mailshot Enables you to send a "mailshot" by Internet.

WD MIME Extraction Enables you to extract the attachments from an email.

WD Multi-windowing Enables you to understand the principle of multi-windowingin WinDev.

WD Number in letters Enables you to convert a numeric value into letters.The result of this conversion is displayed in a "Check Book"report.

WD OLE DB Enables you to access the external databases via OLE DB.

WD OPC Explains how the OPC protocol is implemented in WinDev.

WD OpenGL Enables you to interface OpenGL and WinDev. OpenGL is asoftware interface used to draw three-dimensional objects(3D).

WD PDF Viewer Presents the management of a PDF in an Image control ofa window.

WD Persistence This example presents the use of InitParameter, LoadPara-meter, SaveParameter.These functions are used to configure the backup of con-trols, variables and parameters.

WD Phonetics Enables you to perform a phonetic search on the name ofa person. This search is used to find a record whose exactspelling is not known.

WD Pool of threads Implements a "pool" of threads.To illustrate this feature, the threads are materialized bysoap bubbles that rise inside the window. When a bubbletouches a side of the window, it is destroyed along with thethread that was associated with it.

WD Printing TreeViews Enables you to print a Treeview. This example uses a "Tree-Prnt" class that can be easily reused in any Treeview control

Dessin.book Page 106 Jeudi, 23. avril 2009 11:49 11

Page 107: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

107

WD Printout Parameters Illustrates the use of iParameter.

WD Progress bars Enables you to create different types of progress bars.

WD Queries Enables you to perform calculations, to pass parameters orto print the result of a SQL query on a HyperFileSQL data fi-le.

WD Reflexive link Uses a "reflexive" link to manage family trees: each personhas several parents and several children.All these records are stored in the same file.

WD Regular expressions Presents two methods for using the regular expressions:- checking the input format- checking out different elements while respecting the inputformat.

WD RemoteControl Used to implement the remote control for a WinDev appli-cation.

WD Reports Presents the different data sources of a report:- Report based on a memory table- Report based on a memory zone- Report based on a view- Report based on a query- Label report with bar codes- Report based on a text file (automatic or programmed)- Report with parameters

WD RMI Server Presents the use of a WinDev RMI server to access data inHyperFileSQL format from a MAC for instance.

WD RTF Conversion Explains how to transform a text in RTF format (with format-ting) into a "rough text" (to perform processes) or into HTMLformat (to be used in an email or in an Internet site for ins-tance)

WD SAP Enables you to access your SAP data from your WinDev ap-plications via the SAP functions.

WD Screen saver Used to manage a screen saver via the management of ti-mers and Windows events.

WD Search by composite key Presents the use of filters and the use of composite keys inorder to optimize the search times on a HyperFileSQL datafile.

WD Sending keys Illustrates how keyboard sequences can be sent to an ap-plication with the WLanguage functions.

Dessin.book Page 107 Jeudi, 23. avril 2009 11:49 11

Page 108: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

108

WD Smoothing lines Enables you to smooth a "line" chart by using a "cubic spli-nes" algorithm.

WD SNMP This example displays information about the specifiednetwork computer: IP address of the computer, its MAC ad-dress, its system, and so on.This example interrogates the computer to get this informa-tion via the SNMP functions of WLanguage.

WD SOAP Server Presents the use of the SOAP functions available in WLan-guage.Presents two main topics:- Running a SOAP query- Retrieving the result of a SOAP query

WD Spelling checker Used to start the spelling checker of Word from a WinDevapplication.To do so, this program establishes an OLE connection withWord.

WD Statistics Presents a set of statistical calculations.

WD Stock chart Presents the features of the chart builder for stock charts.The following stock charts are managed by WinDev withoutany programming:- BarCharts- Candlestick- Line- Column- Minimum/Maximum

WD SystemAPIs Presents the use of the Windows APIs.

WD Table Export Exports the content of a table to:- Word- Excel- The Windows clipboard- A text file

WD Tables and Combos Enables you to select a product in a combo box and to dis-play its details in a table.The description of each product is in RTF format and it is il-lustrated by an image.

WD Text Files Manages the external files (creation, deletion, modificationof the content of an external file).

WD Trace Socket Enables you to trace a communication via socket, on a gi-ven address, on a given port.

Dessin.book Page 108 Jeudi, 23. avril 2009 11:49 11

Page 109: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

109

WD Transaction Illustrates the operating mode of transactions when pla-cing an order.

WD TreeView Presents the use of the TreeView controls.

WD TreeView Duplicates This example is used to manage duplicates in a treeviewvia TreeID and TreeSelect.

WD TreeView Table The treeview tables are used to associate a treeview with aWinDev table.This example presents the use of the TreeView Table con-trol.

WD Trigger Enables you to enter the expenses for the contributors of acompany. Two modes are available:- View with ability to perform modifications (read/write)- Read-onlyThe triggers are used to control the access to the files ac-cording to the selected mode.

WD User groupware Presents the operating mode of the User Groupware.

WD Using .NET Enables you to convert a currency into other currencies.The basis of this project (the cEuro class) is used to createa .Net assembly.

WD Using .Net classes Enables you to use the .NET classes in WLanguage. Usedto:- analyze a character string,- configure the dialog boxes displayed.

WD Using aliases Enables you to handle the same physical data file via seve-ral aliases.

WD Using sockets Presents the use of sockets in client/server mode.Each socket is handled via a thread.

WD Voice commands A WinDev application already responds to the voice, whenthe user dictates in an edit control or spells out the captionof a button.You also have the ability to program a specific voice com-mand to perform a particular action.

WD Windows Drag and Drop Proposes a catalog of images. The images can be added tothe catalog by drag and drop from the Windows explorer.

WD Wizard Manages a "Wizard" window.

Dessin.book Page 109 Jeudi, 23. avril 2009 11:49 11

Page 110: WinDev 14 Concepts US

Part

7:

Ap

pen

dic

es

110

Additional examples will be supplied with the Technical Support Newsletter (LST) or willbe available for download from our site (www.windev.com).

WD XML Enables you to import an XML file in HyperFileSQL formatand to export files in XML format (eXtensible Markup Lan-guage).

Dessin.book Page 110 Jeudi, 23. avril 2009 11:49 11