Windev Mobile 21 Concepts Us
Windev Mobile 21 Concepts Us
Windev Mobile 21 Concepts Us
This documentation is not contractually binding. Modifications may have been made
to the 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 2016: This publication may not be reproduced in part or in whole in any form without the express
permission of PC SOFT.
Test of examples
Run the test of the examples supplied with WINDEV Mobile in the fields you are
interested in.
Introduction 3
Summary
Summary
Part 1 - Basic concepts
Project and Analysis............................................................................................................... 9
Development cycle of an application................................................................................. 10
WINDEV Mobile: Android, iOS, UWP, ..................................................................................12
The Android, iOS and Mobile windows...............................................................................13
Android, iOS windows,...: Characteristics...........................................................................14
The layouts...........................................................................................................................15
Available controls in a window............................................................................................ 16
Menus of applications ........................................................................................................19
Internal window....................................................................................................................20
Window templates............................................................................................................... 21
Control templates.................................................................................................................22
Reports.................................................................................................................................23
Report templates................................................................................................................. 24
Part 3 - Databases
Analysis: Structure of the database...................................................................................45
The different types of accessible files................................................................................46
Data handled by a WINDEV Mobile application.................................................................48
HFSQL Classic......................................................................................................................49
HFSQL Client/Server............................................................................................................50
HFSQL Cluster...................................................................................................................... 51
Creating HFSQL files: the files physically created..............................................................52
Associating controls with data............................................................................................53
The queries...........................................................................................................................55
The embedded queries........................................................................................................56
Summary 5
Part 6 - Setup
Installing an Android or iOS application.............................................................................79
The different types of setup................................................................................................80
Part 7 - Communication
Communication with WINDEV Mobile................................................................................. 87
Managing the emails (POP3/IMAP/SMTP)........................................................................89
Handling files on an FTP server..........................................................................................90
Managing the SMSs............................................................................................................. 91
Part 9 - Appendices
Component supplied with WINDEV Mobile......................................................................113
Examples supplied with WINDEV Mobile..........................................................................114
Summary
Part 1
Basic concepts
Project 1
Classes
Style
sheet
Windows
and controls
Analysis
Project 2
Classes
Style
sheet
Project N
Windows
and controls
Classes
Style
sheet
Windows
and controls
Conception
Development
Specifications
UML modeling
Importing
existing files
Development
- Project RAD
- Window RAD
- Queries
- Reports
- Input of source code
10
Test and
generation
Deployment
Testing and
debugging
the application
Generating the
application :
Final test
- Android
First setup:
- Windows Mobile
- iOS
- Universal Windows
10 App
Test and generation step: WINDEV Mobile offers several tools for running automatic tests
in order to guarantee the reliability of applications and to make sure that no regression
occurs between the development steps.
Deployment step: A WINDEV Mobile application can be deployed according to several
methods: on the Mobile directly, by download, via Play Store, MarketPlace, App Store
or Windows Store. In any case, the HFSQL data files (if they exist) will be automatically
updated according to the evolutions made in the application.
12
iPhone/iPad
Android
Windows Mobile
14
The layouts
The anchors are used to easily manage the change of orientation for a Mobile application or
the transfer of an application from a phone to a tablet.
However, in some cases, the interface must be entirely modified: the positioning of
controls must be different.
The layout is used to define several views of a window in the same project without
duplicating this window. This gives you the ability to define:
a specific view for the portrait mode,
a specific view for the landscape mode,
a view specific to the phone,
a view specific to the tablet, ...
To create a layout, on the "Window" pane, in the "Layouts" group, expand "Layouts"
and select "Add layouts". The wizard for layout creation starts and it asks you several
questions in order to create the necessary number of layouts. When the different layouts
are created, you have the ability to change the positioning of controls on one or more
layouts in order to get the requested interface.
At run time, the initial layout is automatically chosen according to the platform, the
orientation and the size of the screen. The layout is automatically modified when the
device switches from portrait mode to landscape mode for example.
Radio button,
Combo box,
List box
Check box,
List box
ListView
Image
16
Multimedia
Image
Calendar
Memory table
or browsing
table
Looper
Chart
Display a progress
Progress bar
Group the controls by theme and display the themes one by one
Tab,
Sidebar
18
Menus of applications
Android/iOS
In Android and iOS, the menus are
displayed in the Action Bar.
Different buttons correspond to the
available actions.
The menus can also be presented in a
sliding window.
Windows Mobile
The menus are displayed at the bottom
of the window.
The menu options can easily be
selected with the stylus of the device or
with a finger.
To create the main menu, on the
"Windows" pane, in the "Bars and
menus" group, expand "Main menu"
and select "Add the main menu".
Internal window
The Internal Window control is used to include a window (and its code) in another window.
At run time, the window to merge will be dynamically merged to the host window.
1. Creating an internal window
An internal window can be created via
found among the quick access buttons. In
the wheel that is displayed, hover "Window"
and click "Internal window".
An internal window is a specific window that
contains no title bar and no menu.
All types of controls can be used in this
window.
2. Using an internal window.
To use an internal window, you must:
create an Internal Window control.
in the control description, select the
internal window to use and validate.
Notes:
The internal window used in the "Internal window" control can be modified by
programming.
Limitations: The home area is a rectangular area and no overload is allowed. To
perform overloads, we recommend that you use the control templates.
20
Window templates
WINDEV Mobile allows you to create window templates. These templates contain all the
graphic elements common to all the windows of your application.
The modifications performed in a window template are automatically applied to all the
windows that use this template.
A window template allows you to comply with the style book defined for an application.
Control templates
WINDEV Mobile allows you to create control templates. A control template is a set of
controls that can be re-used in several windows.
The modifications performed in a control template are automatically applied to all the
windows that use this template.
A control template is used to:
group a set of controls for a specific purpose.
make the controls independent of the window that hosts them.
22
Reports
WINDEV Mobile allows you to easily create and print all types of reports
with the report editor.
In Windows Mobile, the generated reports can be printed in PCL format
(".PCL" file or print on a PCL printer).
In the iOS applications, the generated reports can be printed in PDF
format.
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 (means, statistics) or create charts.
The diagram below presents a simplified definition of a report:
the data to print comes from a data source (data file described in an analysis,
HFSQL view, query, memory zone or text file).
the report groups, sorts and formats the data.
the report execution can be performed on a PCL printer or in a PCL file.
Print
mode
Source of
report
PCL file
(Windows Mobile)
Table control
Query
Text file
Report
(Report editor)
Printer
(PCL format,
Windows Mobile)
PDF file
(iPhone, iPad, ...)
Data
WLanguage variable
Report templates
Most of the time, the prints use a standardized appearance and layout:
date in the top right corner in a specific format, page footer with print
time and file name, logo in the top left corner.
The report templates are used to easily standardize the layout of your
reports.
Part 2
Development
environment
26
Project dashboard
The project dashboard is a main element for managing the WINDEV Mobile projects. The
project dashboard gives an overall view of the progress status of a project.
The project dashboard includes several indicators about the project content:
statistics about the project,
incidents,
tasks,
status of automatic tests,
result of different audits,
list of elements checked out from the SCM (Source Code Manager),
result of action planes (continuous integration), ...
The elements found in this dashboard are presented in Widget format. These Widgets
can be configured, moved, enabled, disabled, ... You have the ability to add new indicators.
The dashboard configuration is saved for each user. The dashboard configuration is the
same for all the projects belonging to the same user.
28
Project configuration
The project configurations are used to create several "targets" from the same project.
From the same project, you have the ability to create:
executables that do not contain the same elements, with different names, ...
different external or internal components,
multi-platform executables.
You have the ability to work on a specific configuration at any time: the elements that do
not belong to this configuration are grayed in the project graph.
Mobile project
Project configurations
Config 1.
Mobile
executable
Config 2.
Library
Config 3.
Component
...
The multiple generation allows you to generate all the project configurations (or some of
them) in a single operation.
Multiple generation
The project configurations are used to easily define the different "Targets" of your project.
Several executables, several components and several libraries can be defined for the
same project.
To generate the result of each configuration, you can select each configuration one by
one and generate the corresponding program.
Another faster method is available: the multiple generation. The configurations to
generate are selected in a single operation and the result is immediate.
To start a multiple generation, on the "Project" pane, in the "Generation" group, click
"Multiple generation".
30
Content of
Customer
custom-folder
Content of
Orders
custom-folder
Notes:
To organize your projects while sharing a set of elements between different projects,
WINDEV Mobile also proposes the internal components.
The "custom-folders" are displayed in the project explorer and in the project graph.
Network
(intranet)
ADSL
(internet)
Offline
SCM
A database groups the project elements, each computer
has a local copy of the elements required for the development
The elements found in the SCM can be shared:
via a network,
via Internet,
via the Cloud,
in offline mode. In this case, the elements that require specific attention will be
checked out from SCM when the laptop is connected to the main system for
example.
32
Local Computer 1
Check-out 9:57
Project A
Version 1
Project A
Version 1
Modification
Project A
Version 2
Check-in 10:41
Local Computer 2
Check-out 14:28
Project A
Version 2
Project A
Version 2
Project A
Version 3
SCM database
Mobile Computer
Check out Beta window from
Project A Version 1 at 9:13
Mobile Computer
Check-out 9:57
Project A
Version 1
Local Computer 2
Check out Alpha window from
Project A Version 2 at 14:28
Modification
for end users
Project A
Version 3
Local Computer 1
Check out Alpha window from
Project A Version 1 at 9:57
Check in modified Alpha window
into Project A Version 2 at 10:41
Check-in 18:32
Mobile Computer
Check in modified Beta window
into Project A Version 3 at 18:32
If a project element (window, report, ...) is checked out, this element cannot be checked
out twice.
Once the checked-out elements are modified, these elements must be checked back in
so that these modifications can be taken into account by the source project. Indeed, the
SCM database stores a history of all the project elements since their creation.
Whenever an element is checked back in, the version number of the source project is
incremented by 1.
Internal component
An internal component is a grouping of project elements. This grouping is used to:
Organize a project: you have the ability to create internal components in order to
group the project elements (by feature for example).
Share the elements between several projects, via the SCM.
SCM
Project 1
Creating the
internal component
Windows
Classes
Project 2
Sharing the
internal component
via the SCM
Queries
Sub-directory of
<MyComponent>
project
WCI file
(List of elements)
34
External component
An external component is a set of WINDEV Mobile elements: windows, reports, analysis,
... This set of elements performs a specific feature. For example, an external component
can correspond to one of the following features:
Sending SMSs,
Sending emails,
...
An external WINDEV Mobile component can be distributed to other WINDEV Mobile
developers (for free or at a cost). These developers will be able to easily include the
feature proposed by the external component in their application. The external component
will be included in the application and distributed along with it.
WINDEV Mobile
project
Developing the
component
Generating the
component
.WDK file
Created in the EXE directory
3
WINDEV Mobile
project
Using the
component
Importing the
component
WINDEV Mobile
project
Using the
component
WINDEV Mobile
project
Using the
component
Generation modes
WINDEV Mobile allows you to generate several other types of projects.
Android applications
WINDEV Mobile allows you to generate applications for the Android
platform. These applications can be run on smartphones, tablets,
ultra-portable, using this operating system (from version 1.5). These
applications can also be distributed on Play Store for example.
iOS applications
WINDEV Mobile allows you to generate applications for the iPhone
and iPad platform. These applications will be able to run on iPhone
and iPad devices. These applications can also be distributed on the
Apple Store for example.
36
External components
The external components are application bricks allowing you to
share one or more specific features between several applications.
A component generated by WINDEV can also be used in a WEBDEV
or WINDEV Mobile project.
Project
Monitoring Center
Database of
Control Centers
Business Rules
Stand-alone
messaging (WDBAL)
Automatic tests
Login window
of WINDEV Mobile
Image catalog
(custom images)
Note: When installing WINDEV Mobile, the setup program proposes to:
create the database of Control Centers (database of Project Monitoring Center).
This database will be automatically created in HFSQL Classic format in the specified
directory.
share an existing database of Control Centers.
38
Project Manager
Creating requirements
made of:
Tasks
Developer
Performing the
requirements:
Project Monitoring
Center
Incidents
Business Rules
Pane of
Business Rules
Managing the
requirements
Once all the project tasks have been defined, the Project Monitoring Center takes care of
everything. Entering the time spent on a task is almost automatic, it requires no specific
action and it generates no particular constraint.
When the relevant project is opened, the Project Monitoring Center requests or indicates
the current task. As soon as a task is completed, all you have to do is indicate that this
task is over and specify the new task.
A task can be linked to a project element (window, report,...). Whenever the relevant
element is opened, the time spent on this element is counted and stored in the Project
Monitoring Center. Conversely, the element corresponding to the task that you want to
perform can be automatically opened from the task list.
Each developer can also see his own task list in the "Project Monitoring Center" pane
found in the editor.
40
Defining the
Business Rules
42
Part 3
Databases
44
Part 3: Databases
Supplier
Full name, ...
Product
Description, Price, ...
Order
Date, ...
Customer
Full name, ...
System studied
Corresponding analysis
The analysis of a WINDEV Mobile project corresponds to the LDM (Logical Data Model).
The entire structure and data organization are described: the data is grouped by file.
Each file contains several data called item.
In the analysis, the description of a data file can be linked to a type of file (HFSQL Mobile,
HFSQL Client/Server, SQLite, ...).
Part 3: Databases 45
46
Part 3: Databases
Part 3: Databases 47
Mobile device
HFSQL
Classic
HFSQL
Client/
Server
AS/400
Databases
48
Part 3: Databases
Tasks
Notes
Contacts...
.cdb
.INI
ASCII
UNICODE
Text files
Registry
HFSQL Classic
The HFSQL Classic format (also called HFSQL Mobile) is the database format supplied
with WINDEV Mobile. This database format is compatible with WINDEV, WINDEV Mobile
and WEBDEV.
It is a freely distributable Relational DBMS.
This format can be used on the following platforms: Windows Mobile, iPhone, iPad,
Android and Universal Windows 10 App.
This format is identical to the HFSQL Classic format of WINDEV and WEBDEV (".WDD" file,
data files, ...).
However, the available size being limited on the mobile devices, the following features
are not supported by HFSQL Classic on mobile:
the transactions.
the log process.
the management of locks for files and records.
the management of files in Hyper File 5.5 format.
Mobile device
Database
Hxxx
functions,
(read, write...)
Part 3: Databases 49
HFSQL Client/Server
A WINDEV Mobile HFSQL application can also operate in Client/Server mode.
The characteristics of the Client/Server mode are as follows:
A HFSQL Client/Server application is run on different mobile devices (called client
computers).
The data files are found on a server. Only the server physically accesses the data
files.
All the processes (query, read/write operation in a data file, ...) are performed on the
server.
Mobile Device 1
Windows or Linux
HFSQL server
Mobile Device 2
Manta server
Mobile Device N
HFSQL
Client/Server
databases
HFSQL Client/Server can be used on the Windows Mobile, iPhone, iPad and Android
platforms.
50
Part 3: Databases
HFSQL Cluster
HFSQL Cluster is an extension of the database model of HFSQL Client/Server. In a
database cluster, all the HFSQL servers contain a copy of the databases and they are
synchronized in real time.
The read load can be balanced among the different servers.
The physical configuration can evolve without any interruption for the client
computers.
If one of the servers crashes, the client is automatically redirected to an operating
server.
Client computer
Access to data
Cluster
HFSQL Client/Server
server
HFSQL Client/Server
server
Applying modifications
HFSQL Client/Server
server
HFSQL Client/Server
server
HFSQL Cluster can be used from the Windows Mobile, iPhone, iPad and Android platforms.
Part 3: Databases 51
52
Files physically
created
".fic" file
Data file
".ndx" file
Index file
".ftx" file
Full-text index file
".mmo" file
Memo file
Part 3: Databases
ScreenToFile
FileToScreen
Database
Part 3: Databases 53
ScreenToFile
FileToScreen
Linked variable
Simple control
Link with:
- Simple variable
- Instance of class or
structure member
- Property of dynamic object
List box, Table, Combo box, ...
Link with:
- Array of classes or structures
- Advanced types (for example
xlsRow, xlsColumn)
Note: The concept of control/variable link is not available for the Android
applications.
54
Part 3: Databases
The queries
A 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 data files.
The query editor allows you to easily create queries without programming.
Sources
Data coming from
one or more files
(HFSQL, Oracle, ...)
Possible uses
Windows and controls
of a window
The result of a
query can be used
like a file
Reports
Programming
Queries
Note: In programming, a query can be handled like a data file. Especially, it can be
associated with a display control (a Table control for example) that will present the data
returned by the query.
Part 3: Databases 55
Embedded query:
MyWindow_1$Query
Embedded query:
MyWindow_2$Query
In this case, the query is included in the window. It is found in the WPW file corresponding
to the window. If the WPW file is copied (into another project for example), the embedded
queries used by this window will also be copied.
56
Part 3: Databases
Customer
file
The displayed data that is not linked to the data file is not kept when displaying the row
(value of a Check Box column for example).
The WLanguage functions starting with "Table" are used to handle the browsing Table
controls with direct access. Adding or deleting a row into/from the Table control triggers
the addition or deletion of the record in the linked data file.
Data in
memory
The data being found in memory, the Table control allows you to perform all the operations
on the data (sort on any column, search performed in the columns, ...).
Part 3: Databases 57
Customer
file
File loaded
in memory
Notes:
These different fill modes are also available for the List Box and Combo Box controls.
The Table control is not available in the Universal Windows 10 apps
applications. Only the Looper control can be used.
58
Part 3: Databases
Synchronizing data
WINDEV Mobile allows you to synchronize the records used by several applications.
The two applications manage the same data independently of each other. During the
synchronization, the modifications performed in the database used by the PC are
automatically applied to the mobile device (and conversely).
This synchronization is automatically performed by:
ActiveSync when the Mobile Device (Pocket PC) is connected to the Windows PC
(Windows Mobile only). From Windows Vista, "ActiveSync" was replaced by the
"Manager for Windows Mobile devices".
the Universal Replication when the mobile device is connected (or not) to the
Windows PC.
Mobile Device
File 1
File 1
File 3
File 2
File 2
Part 3: Databases 59
Universal replication
The universal replication is used to update databases (with the same or different formats)
used by several applications. You can for example perform a synchronization between a
HFSQL Mobile database and an Oracle Lite database.
The universal replication is using a centralized model: all the databases are synchronized
with a master database. Then, the master database applies the modifications to the
other databases.
Universal
replication
The synchronization can be adapted to special cases. For example, you have the ability to
retrieve the records regarding a specified product or the records created at a given date,
manage the conflicts, display a configuration window, ...
These changes must be done by programming via HRplFilterProcedure.
60
Part 3: Databases
3-tier
The purpose of 3-tier programming is to separate the "3 standard layers" of an application:
GUI, process and data.
Therefore, an application will include 3 separate tiers:
a presentation layer,
an application layer,
a layer for accessing the data.
The reason for separating the layers is to simplify the maintenance and the future
evolutions of the application. This provides better security because the access to the
database is allowed via the Processes layer only. It also optimizes the teamwork and the
multi-target development.
Mobile
Windows
Browser
Webservices
WEBDEV application
server
Presentation layer
Components
Application layer
HFSQL
Classic, Client/Server
External databases
Oracle, AS/400, SQL Server...
Data layer
Part 3: Databases 61
62
Part 3: Databases
Part 4
Advanced
concepts
64
Note: For the Windows Mobile applications, the RAD can be used to
entirely create the application (with or without code).
Multilingual application
A multilingual application is an application that can be distributed in several languages.
WINDEV Mobile takes into account the different languages of the application during the
entire development of an application.
The main steps for developing a multilingual application are as follows:
- Project
- Analysis
- Direct translation
- Translation via WDMSG, WDINT,
WDTRAD, ...
66
Programming
Data files
Executable
Setup program
- Available languages
- Translate the setup program
Test and debug on the Mobile Device (Pocket PC) connected to the development computer. This test allows you to use the debugger even though it
is run on the Mobile Device directly.
Debug modes
Two different modes can be used to debug a WINDEV Mobile application:
68
Unit tests
The unit tests (also called automatic tests) are used to run the test of windows, procedures
and classes found in an application during the entire 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 the
unit tests and calculates the validation rate of the application.
When creating the application executable, WINDEV Mobile:
displays the validation rate of the application.
indicates the modified elements whose test was not run.
Creating a test scenario
Correction
To create a unit test on a procedure or on a class, select this procedure or this class in the
"Project explorer" pane and select "Create a unit test" from the popup menu.
70
Part 5
Interactions
between
WINDEV and
WINDEV Mobile
72
WLanguage functions
Most of the WLanguage functions found in WINDEV are available in WINDEV Mobile.
These functions are common to the two products.
The functions specific to Windows are not available in WINDEV Mobile because of the
differences between Windows and the different systems available on the mobile device
(Windows Mobile, Android, iOS, ...).
On the contrary, some functions specific to the mobile devices are proposed with WINDEV
Mobile only.
The following diagram presents some of the WLanguage functions that can be used
according to the type of application developed:
WINDEV Mobile functions
only
Functions that can only be used
on Mobile Device (for example,
management of SIM card)
Common
functions
for example,
HReadFirst,
FileToScreen,
ExtractString...
WINDEV functions
for Windows
only
Functions not available
due to limitations of
the Mobile Device
S is string
...
UNICODE
string
fOpen(MyFile,ANSI)
fReadLine(...)
UNICODE
string
fOpen(MyFile,Unicode)
fReadLine(...)
UNICODE
string
or
ANSI
UNICODE
74
Windows PC
S is ANSI string
...
ANSI
string
S is UNICODE string
...
UNICODE
string
fOpen(MyFile,ANSI)
fReadLine(...)
ANSI
string
or
ANSI
fOpen(MyFile,Unicode)
fReadLine(...)
UNICODE
string
UNICODE
The method for programming the character strings is the same in WINDEV and in
WINDEV Mobile (with very few exceptions). WINDEV automatically performs the
necessary conversions.
76
Part 6
Setup
78
Part 6: Setup
Part 6: Setup 79
80
Part 6: Setup
Part 6: Setup 81
Creating the
executable (Exe)
Creating the
setup
(.CAB file)
Development computer
Starting the
setup
Direct copy
Deployment
running this setup program on the Windows Mobile devices. This program installs all
the files required by the application.
To use this application, start the application on the Windows Mobile device (via the
shortcut created in the "Start" menu).
82
Part 6: Setup
Windows PC
Creating the
executable (Exe)
Delivery
Starting the
setup
Starting the
setup
Mobile Device
Connection
SETUP
Client 1
Creating the
setup
(.MSI file)
Delivery
Deployment
Client 2...
Client N...
Development computer
Mobile Device
Development
Direct
COPY
Deployment
Part 6: Setup 83
84
Part 6: Setup
Part 7
Communication
86
Part 7: Communication
Some examples
1. Communication by Infrared
Communication by infrared is performed via the Socket functions (SocketConnectInfrared,
SocketCreateInfrared, ...). Therefore, the Windows Mobile devices or the Android devices
can communicate with all types of devices.
Mobile Device 1
Mobile Device 2
Contact application
Contact application
Communication
by infrared
Part 7: Communication 87
2. Communication by Wi-Fi
The communication by Wi-Fi can be used to transfer files by FTP for example.
Mobile device
FTP server
FTP account
Anonymous
Transfer files by WI-FI
Mobile Device
PC
INTERNET
INTRANET
GPRS
GPRS
88
Part 7: Communication
Connection to Internet
(NetOpenRemoteAccess function)
Mobile Device
POP3 protocol
Receiving emails
SMTP protocol
Sending emails
Retrieving and
sending emails
Email server
(Hosting company)
Principle
1. Connect the Windows Mobile device to a PC (required if it is not natively equipped with
an Internet access).
2. Connect to the Internet service provider (if necessary).
3. Start an email session with EmailStartSession.
4. Send and read the messages.
5. Close the messaging session with EmailCloseSession.
Part 7: Communication 89
Mobile device
FTP server
FTP account
Anonymous
Connection to the server
(FTPConnect function)
Mobile device
FTP account
Anonymous
90
INTERNET
INTRANET
Part 7: Communication
Retrieving files
FTPGet function
PC
Cell phone
Smartphone, ...
Mobile device
SMS
Application
SMS
Part 7: Communication 91
92
Part 7: Communication
Part 8
Specific features
of
Windows Mobile
94
WINDEV Mobile allows you to easily manage this keyboard via the WLanguage functions
(SIPXXX functions).
96
Mobile Device
Databases of
standard applications
Calendar
Notes
Contacts
Tasks
cdbxxx functions
(read, write)
Windows PC
Outlook
Tasks
Notes
Contacts...
.cdb
Standard
database
cdbxxx
functions
(read,
write...)
Note: To handle a Mobile Device database (Pocket PC) from a WINDEV application, the
Windows PC must be connected to the Mobile Device (ceConnect).
98
Mobile Device
Database
cdbxxx
functions
(read, write...)
Windows PC
Database
cdbxxx
functions
(read,
write...)
Note: To handle a database found on a Mobile Device (Pocket PC) from a WINDEV
application, the Windows PC must be connected to the Mobile Device (ceConnect).
100
Windows PC
Database
Database
cdbxxx
functions
(read,
write...)
Notes:
To handle a database for Mobile Device (Pocket PC) from a WINDEV application, the
Windows PC must be connected to the Mobile Device (ceConnect).
The WINDEV application can also handle the Access database via the Native
Access.
From Windows Vista, "ActiveSync" was replaced by the "Manager for Windows
Mobile devices".
Mobile Device
HFSQL
1 LINE
PER WINDOW
(File link)
ScreenToFile
102
FileToScreen
Mobile Device
CEDB
1 LINE
PER CONTROL
cdbWriteCol("MyDatabase",...
"Schedule","Caption",ctlCaption)
cdbWriteCol("MyDatabase",...
"Schedule","Contrib",ctlContrib)
...
ctlCaption=cdbCol("MyDatabase",...
"Schedule","Caption")
ctlContrib=cdbCol("MyDatabase",...
"Schedule","Contrib")
...
Other differences
The use of HFSQL databases (Classic or Client/Server) allows you to access the following
features (non-exhaustive list):
Speed of the HFSQL database.
Queries on the HFSQL databases (created with the query editor supplied with the
product).
Fast application development via Full Application RAD.
Features specific to the HFSQL database (encryption, ...)
Files
Windows PC
Database
Copying files
Starting applications
WINDEV Mobile
application
WINDEV Mobile is supplied with several examples that use the functions for accessing
the Mobile Devices:
PC Registry.
PC Explorer.
These examples can be used on a PC.
104
ceConnectionStatus
Used to find out the status of the connection between the current
computer and a Windows Mobile device
ceConnect
ceCopyFile
Copies:
- a file found on the current computer to the connected Mobile Device.
- a file found on the connected Mobile Device to the current computer.
- a file found on the connected Mobile Device to another directory in
the Mobile Device.
ceCreateShortcut
ceDeleteFile
ceDeleteShortcut
ceDir
ceDisconnect
Closes the connection between the current computer and the device
ceFileDate
ceFileExist
ceFileSize
Returns the size (in bytes) of a file found on the Windows Mobile
device connected to the current computer
ceFileTime
ceListFile
ceMachineName
ceMakeDir
ceOEMInfo
cePlatform
cePowerStatus
ceProcessorType
ceRegistryCreateKey
ceRegistryDeleteKey
ceRegistryDeleteValue
ceRegistryExist
ceRegistryFirstSubKey
Identifies the key found after the specified key in the registry of the
Windows Mobile device
ceRegistryListValue
Returns the name (and possibly the type) of the values for a registry
key of the Windows Mobile device
ceRegistryNextKey
Identifies the key found after the specified key in the device registry.
ceRegistryQueryValue
ceRegistrySetValue
ceRegistrySubKey
Identifies the path of the specified Nth sub-key in the registry of the
Windows Mobile device
ceRemoveDir
ceRunExe
ceSysDir
ceWindowsVersion
ceWinEnum
ceWinTitle
ceXRes
ceYRes
Note: these functions are WINDEV functions and not WINDEV Mobile functions.
106
Synchronization software:
ActiveSync,...
Several programs can be used to synchronize the data (WINDEV application, email,
calendar, contacts, tasks, notes, ...) between a PC and a Mobile Device (Pocket PC):
ActiveSync, for versions up to Windows XP.
In most cases, ActiveSync is supplied with the Mobile Device (Pocket PC) but it can
also be downloaded from Internet.
ActiveSync is automatically started on the PC during the connection between the
Mobile Device and the PC. The data to synchronize is configured in ActiveSync
("Options" icon).
the "Manager for Windows Mobile devices", available from Windows Vista. This
manager is automatically started when the Mobile Device is connected to the PC.
PC
Mobile Device
Pocket
Outlook
Outlook
ActivSync
account
Connection:
Internet
Retrieving and
sending emails
Email server
(Hosting company)
108
PC
Mobile Device
Pocket
Outlook
Other
Accounts
Retrieving
and sending emails
Connection:
Internet
Retrieving and
sending emails
Email server
(Hosting company)
If the Pocket PC has a direct access to Internet (by Wi-Fi, ...), no synchronization with a PC
is required.
WDRegistry
Tool used to view the registry of a Mobile Device (Pocket PC), Smartphone, ...
110
Part 9
Appendices
112
Part 9: Appendices
Description
Pocket Datalogic
Pocket Falcon
Pocket GPS
Pocket Intermec
Pocket Limitation
Pocket Motorola
Pocket Opticon
Pocket PAXAR
Allows you to use the features of bar code reader and printers of PAXAR
industrial terminals.
Pocket Pidion
Pocket Signature
components that can be used from a WINDEV application that handles the files
found on the Mobile Device (Pocket PC).
These components are found in the "Components\Example components\Windows"
sub-directory of the setup directory of WINDEV Mobile.
Name of the component
Description
PC Pocket Picker
Directory picker and file picker found on a Mobile Device (Pocket PC)
from a WINDEV application.
Additional components are supplied with the Technical Support Newsletter (LST) or can
be downloaded from our site (www.windev.com).
This example is used to list the files and directories found on an Android
device.
Android GPS
Android Inventory
Android
Persistent
Notifications
This example is used to create persistent notifications that appear even if the
application is not used anymore.
Android
Synthesis
Speech
Android System
Android ZIP
This example is used to browse the folders of the Android device to find ZIP
archives.
114
iOS Loan
iOS System
Part 9: Appendices
iOS Push
WM Food
WM Notes
This example is using the drawing functions of WLanguage for Android and
iOS. It allows you to draw graphic "notes" and save them.
WM Poker
This example is a poker game for Android, iOS and Universal Windows 10 App
smartphones powered by WinDev Mobile
WM Poll
WM Stocks
WM ToDo List
Virtual
This example proposes virtual keyboards that can be fully customized and
certainly smaller than the standard keyboard of Mobile Devices (Pockets PC).
Pocket Animated
This example explains how an image can be animated with WinDev Mobile.
The following topics are presented in this example:
1/ the cartoon animations (image to animate)
2/ the zoom in loop animations (scroll).
This example presents the use of threads with the WLanguage functions.
The following topics are presented in this example:
1/ Running processes started in parallel (threads)
2/ How to limit the number of threads in execution at a given time.
Pocket Statistics
This example explains how to calculate statistics with the WLanguage functions.
The following topics are presented in this example:
1/ the statistical functions.
2/ the use of matrices
This example proposes a solution used to offset the sections of a Pie chart via
a simple click.
Pocket FTPClient
This example is used to view the content of an FTP server. It can also be used to
download, rename or delete files.
116
Pocket Loan
Pocket Explorer
This example is a file explorer for Windows CE. You have the ability to list the files
and directories found on a Mobile Device (Pocket PC).
Pocket Managing
Contacts
Pocket Images
Pocket Inventory
This example is used to draw up inventories and to save the results in a HFSQL
database.
Pocket Map
This example is a light version of WDMap. This example is used to view and
modify the data files in HFSQL Mobile format on a Mobile Device (Pocket PC)
directly.
Pocket Notes
This example is used to draw graphic "notes" and save them. You have the ability
to enter keywords to identify your notes.
Pocket Attendance
Pocket Telephony
Pocket ZIP
Pocket _NET
Part 9: Appendices
This example is used to import and/or export the photos found on a Mobile
Device (Pocket PC) from a PC.
PC Registry
This example is used to handle the registry of a Mobile Device (Pocket PC)
from a PC.
PC CDB Browser
PC Explorer
This example is used to view the files and directories found on a Mobile
Device (Pocket PC).
UWA Orders
UWA Password
UWA Stopwatch
This example explains how to create a stopwatch for a mobile device with
WinDev Mobile.
In this example, a timer is used to display the hands of the stopwatch and to
display the time passed on a regular basis.
118
Part 9: Appendices