Tuto WINDEV 25

Part 4: Full application with data 243 ▶ Align the created controls: 1. Select the four controls. 2. On the "Alignment" pane, in the "Inside and outside" group, click "Justify (Ins. and Out.)". 3. Save the window ( or Ctrl + S). Creating the controls used to type the email characteristics To write an email, the user must have: • A control used to type the sender address. • A control used to type or select the recipient address. • A control used to type the email subject. • A control used to type the email text. The user must have the ability to format the email text. • A control used to add attachments. We are now going to create these controls in our window. ▶ To create the edit control corresponding to the sender address: 1. On the "Creation" pane, in the "Usual controls" group, expand "Edit". 2. Enter "Email" in the search box at the top of the list of preset controls. Select "eMail Edit". 3.  The control shape appears under the mouse cursor. 4. Click below the "Password" control: the edit control is automatically created. 5. Select the control and press Enter. The caption becomes editable. Type "Sender" and validate. ▶ The control used to type the recipient address must list the addresses of the customers found in the database but it must also allow the user to type another address. To do so, we will be using an "Editable combo box" control linked to the Customer data file. 1. On the "Creation" pane, in the "Usual controls" group, click "Combo Box". 2.  The control shape appears under the mouse cursor. 3. Click below the "Sender" control: the wizard for creating the Combo Box control is automatically started. 4. Select "Display the data found in a file or in an existing query". Go to the next step.

RkJQdWJsaXNoZXIy NDQ0OA==