Tuto WINDEV 25
Part 2: The WLanguage basics 77 Practical example: Using a procedure In a new window, we are now going to: • Create two numeric edit controls containing the value BT and the value IOT. • Create a Combo Box control used to choose the VAT rate. • Create a Button control used to calculate and display the value IOT of the amount BT entered. The calculation result will be displayed in the "Price IOT" control. This window is as follows: Project used To handle the different concepts of this lesson, we are going to create different windows. These windows will be created in the "WD My first windows" project. ▶ Open the "WD My First Windows" project if necessary. To do so, in WINDEV’s home page (Ctrl + <), click "Tutorial" and select "My first windows (Exercise)". Implementation ▶ Create a new blank window: 1. Click among the quick access buttons. The window for creating a new element is displayed: click "Window" then "Window". The window creation wizard starts. 2. Select "Blank" and the "Phoenix" skin template. 3. Validate. The window is automatically created in the editor. The window for saving an element is displayed. 4. Specify the window title: "Procedures". The window name ("WIN_Procedures") is automatically proposed. 5. Click "OK" to validate the information shown in the save window. ▶ To create the edit control corresponding to the price BT: 1. On the "Creation" pane, in the "Usual controls" group, expand "Edit" (click the arrow). The list of available edit controls is displayed. In the search box at the top of the list, enter "Currency". Select the "Currency Edit" control and position the control in the window. 2. Right-click the control and select "Description". 3. In the description window: • Type the control name: "EDT_PriceBT". • Type the caption: "Price BT". 4. Validate.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==