Tuto WINDEV 25
244 Part 4: Full application with data 5. Select the Customer data file. Go to the next step. 6. The email addresses of customers must be displayed in the control: • Uncheck the "CustomerID" item. • Check the "Email" item. Go to the next step. 7. The sort item is the "Email" item. Go to the next step. 8. The return value is the "Email" item. Go to the next step. 9. Keep the default options. Go to the next step. 10. In the "Additional parameters" screen, check "Allow the input". Indeed, the user must have the ability to type a new email address. Go to the next step. 11. Modify the name and caption of Combo Box control: • The control name is "COMBO_Recipient". • The control caption becomes "Recipient". 12. Validate the wizard. The control is automatically created in the window. ▶ To create the edit control corresponding to the email subject: 1. On the "Creation" pane, in the "Usual controls" group, click . 2. The control shape appears under the mouse cursor. 3. Click below the "Recipient" control: the edit control is automatically created. 4. Select the control and press Enter. The caption becomes editable. Type "Subject" and validate. ▶ For the message body, we will be using an HTML edit control: the user will have the ability to format the email text via a specific toolbar. 1. On the "Creation" pane, in the "Usual controls" group, expand "Edit". 2. Enter "HTML" in the search box at the top of the list of preset controls. Select "HTML Edit". 3. The control shape appears under the mouse cursor. 4. Click below the "Subject" control: the edit control is automatically created. 5. Enlarge the control in order for several lines to be visible. 6. Open the control description window (double-click the control). • On the "General" tab, modify the mode for displaying the formatting toolbar. This toolbar must always be visible. • Validate the control description window. 7. Reposition the control if necessary in order for the toolbar to be displayed properly. ▶ We are going to create a file picker allowing the user to add an attachment. Instead of creating it from scratch, we will be using a preset edit control of file type. Via the popup menu of control ("Browse" option), the user will be able to select the file to attach. 1. On the "Creation" pane, in the "Usual controls" group, expand "Edit". The list of preset controls proposed by default is displayed. 2. Select the "File" control and perform a Drag and Drop toward the "WIN_Sending_an_email" window: drop the control below the "HTML text" control. The file picker is immediately created.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==