Windev 6.4

We are going to create our first project for Windows Mobile. If you own the mobile device (Smartphone or Pocket PC) on which the application must be run, we advise you to connect this device to the development computer.

Therefore, the device characteristics will be automatically detected and proposed when creating the Windows Mobile project.AnswerA corrected project is available. To open this project, in the WINDEV Mobile home page (Ctrl +. In the left section of the wizard, click 'Guidelines'. This step is used to define the code style.

Don't modify the suggested options. Go to the next step.

This step is used to define the style book. Select 'Elegant'. The other wizard steps not being important for our first project, click 'End' in the left section of wizard. Click on 'Finish' at the bottom of the wizard. The project is automatically created. The window for creating a new element is displayed. This window is used to create all elements that can be associated with a project.

The window is automatically created in the editor. The window for saving an element is displayed. This window displays:. the element title.

For a window, this title will be displayed in the title bar of window. the element name that corresponds to the window name. This name will be used in programming. the element location. This location corresponds to the directory in which the physical file corresponding to the element is saved.

Windev 6.4 Version

The window is a 'WDW' file, saved in the project directory. Specify the name of the element: 'Welcome' (here, the element corresponds to the WINDEV Mobile window). The element name ('WINWelcome') is automatically proposed. You are now going to create a Button control to display a message. To create the 'Display' Button control:. On the 'Creation' pane, in the 'Usual controls' group, click.

The control appears in creation mode under the mouse pointer. Move the mouse toward the position where the control will be created in the window (at the top of window for example). To drop the control in the window, all you have to do is perform a new left mouse click. Right-click the control that was just created. The popup menu of control is displayed. Select 'Description' from this popup menu.

The description window of the Button control appears. Modify the control characteristics by entering the following information. Info ( 'Hello' )Note about the assisted input: As soon as the first two characters are typed, WINDEV Mobile proposes all words of WLanguage vocabulary containing these characters. The assisted development is a very powerful feature.

No more mistakes when entering the name of an element: the syntax errors are reduced. All you have to do is select the requested word and press Enter to validate. You can focus on the algorithm.RemarkWhen writing this code in the code editor, you may have noticed that the different elements use different colors.

This is the syntactic coloring. The code editor allows you to easily identify the different elements handled by the code:.

the WLanguage functions are colored in blue,. the character strings (between quotes) are colored in purple,. the names of controls are colored in cyan.These colors can be modified element by element in the options of code editor (on the 'Home' pane, in the 'Environment' group, expand 'Options' and select 'Options of the code editor').

For a Windows Mobile application, WINDEV Mobile allows you to run the application test on the development computer via the simulation mode. This test simulates a Windows Mobile device on the development computer. This test is useful when no Windows Mobile device can be used by the developer. However, this test does not allow you to use the hardware components of device (SMS.). We will now run the window test in simulation mode. Click among the quick access buttons (or press F9).

Windev 6.4

Validate (if necessary) the information message regarding the simulator mode. The created window is started in execution.

The simulator shell corresponds to:. the device connected to the development computer,. the device chosen in the wizard for project creation. Click the 'Display' button. The options to choose depend on your configuration:. If a mobile device is connected, select 'Yes: Copy the executable to Pocket PC' as well as 'Run the application on Pocket PC at the end of copy'. In this case, once the executable is generated, the application will be automatically copied and started on the mobile.

If no mobile is device connected, select 'No: Don't copy the executable to Pocket PC'. In this case, the application can be deployed on the mobile devices via a setup procedure. Validate and end the wizard.That's it, our first application is generated and run on the Windows Mobile device.

Posted :