PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Available project elements
  • Available controls
  • Databases
  • Windows
  • Modal windows
  • Skin template
  • Size of windows
  • Managing the "Back" and "Home" buttons
  • Back button
  • Home button
  • Loopers
  • Management of directories and character strings
  • Managing directories
  • Managing character strings
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Warning
From version 21, no Windows Phone project can be created anymore. Only the projects in Universal Windows 10 App mode are available.
The Windows Phone projects created with version 20 (or earlier) are automatically changed into projects in Universal Windows 10 App mode. See Developing applications in Universal Windows 10 App mode for more details.
Overview
The method for developing applications for Windows Phone differs from the method for developing applications with WINDEV Mobile in the following fields:
Note: The list of available features evolves very quickly. The forthcoming version (available for download) will include the evolutions and new features. To find out the list of functions available in Windows Phone, see the Windows Phone paragraph in New features of WLanguage.
Available project elements
The following project elements are available for the Windows Phone development:
  • Windows.
  • Sets of procedures.
  • Window templates.
The following project elements are not available for the Windows Phone development:
  • Queries
  • Components.
  • Classes.
  • Reports and report templates.
  • Control templates.
  • Internal windows.

Available controls

The following controls are available for the Windows Phone development:
  • Button.
    By default, the buttons use the system skin template. To get custom buttons (buttons with an image for example), we recommend that you use a clickable image.
  • Image.
    The image formats supported in Windows Phone are PNG and JPEG.
  • Check box
  • Static
  • Edit control
  • Radio button
  • Looper
    Note: The loopers are used to replace the tables in a Windows Phone application. Indeed, the concept of table does not exist in Windows Phone and in Android. The tables are not used in Windows Phone for the following reasons::
    • The interface of tables is not appropriate.
    • Problem regarding the space in the windows: the columns and the column headers would not be displayed.
    • The row height would be too small to be handled with the fingers.
    • The tables are not used in the interface standard of this system.
Note: The properties of control borders, although available in edit, are not supported by the Windows Phone applications in this version.
Databases
Windows Phone does not support the database systems.
However, you have the ability to handle the files (text or binary files) containing data (fXXX functions). Stored on the phone.
You can for example retrieve data via the HTTP functions (HTTPRequest, HTTPGetResult, ...) and save it locally in a file found on the phone.
Windows

Modal windows

The modal widows are not supported by the Windows Phone operating system. Open is not allowed.
The windows can be opened by OpenChild.
When it is closed, a child window can call a local procedure of the window that opened it in order to pass a return value to it. A return value can also be returned via a global variable.

Skin template

The Windows Phone applications use the "ActivPhone7" skin template by default. This skin template is adapted to the applications for Windows Phone. The color of the text can be modified.
Notes:
  • In this version, you cannot select a specific skin template: the controls use the system style. You can for example create buttons with a specific interface by using the clickable image controls.
  • If the theme of Windows Phone is modified on the phone, the background color of the window is automatically modified. The color of the text is not modified: the text can become invisible.
    Tip: Using an image control (whose size is identical to the window size) in window background. The image contained in this control will not be assigned by the change of theme.

Size of windows

The size of the windows as well as their resolution are defined by Microsoft for the Windows Phone applications. These parameters cannot be modified:
  • Size: 800 x 480
  • DPI: 240
In edit, the DPI and size of the window are adapted for the comfort of the developer: therefore, the window is properly viewed in the editor. In the editor, the DPI is set to 160 and the size is set to 533 x 320.
When creating the executable, the window is automatically adapted to the requirements of Microsoft.
Note: The screen size (in inches) can change but the screen is always the same for the developer.
Managing the "Back" and "Home" buttons

Back button

All the devices operating in Windows Phone include a special "Back" key (symbolized in most cases by a little arrow pointing to the left). In a WINDEV Mobile application, this key closes the current window and runs the "Window closing" process. If the current window was the "last" window of the application, the "Closing" process of the project is run.
An application must be developed in order to behave properly if any of its windows is closed via the "Back" key. In most cases, each window control must be initialized with a default value and the "Back" button must be considered as being a "Cancel" button.

Home button

All the devices operating in Windows Phone include a specific "Home" key. In a WINDEV Mobile application, this key provokes the closing of the current application and the execution of the "Closing" process of the project.
An application must be developed in order to behave properly if any of its windows is closed via the "Home" key. In most cases, each window control must be initialized with a default value and the "Back" button must be considered as being a "Cancel" button.
Loopers
In the Windows Phone applications, the "Row selection" process in the loopers is run when the row is selected by a click.
Note: The loopers are used to replace the tables in a Windows Phone application. Indeed, the concept of table does not exist in Windows Phone. The tables are not used in Windows Phone for the following reasons::
  • The interface of tables is not appropriate.
  • Problem regarding the space in the windows: the columns and the column headers would not be displayed.
  • The row height would be too small to be handled with the fingers.
  • The tables are not used in the interface standard of this system.
Management of directories and character strings

Managing directories

The management of directories in Windows Phone presents the following specific features:
  • The application is installed in the setup directory. When running the application, the files used are created in the data directory associated with the application.
  • Only the files found in the data directory associated with the application can be handled. You cannot handle the files or directories found at another location.
  • The current directory corresponds to the data directory of application.

Managing character strings

The default format of the character strings differs on Windows and on Windows Phone.
In most cases, on the PCs, the Windows applications handle character strings in ANSI format.
On Windows Phone, the applications handle character strings in UNICODE format.
Minimum required version
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment