Tuto WINDEV 25
140 Part 4: Full application with data Creating buttons The "WIN_Product_form" window will be used to add a new product or to modify a product found in the list. We are going to add a validation button and a cancelation button. ▶ To create the Button control to validate the data entered: 1. On the "Creation" pane, in the "Usual controls" group, expand "Button" (click the arrow found below ). 2. The list of preset buttons is displayed. 3. Click "Validate": the Button control shape appears under the mouse pointer. 4. Then, click on the right of edit controls to create the Button control. ▶ Add the Button control to cancel the input using the same principle. 1. On the "Creation" pane, in the "Usual controls" group, expand "Button" (click the arrow found below ). 2. In the list of preset buttons, click "Cancel": the Button control shape appears under the mouse pointer. 3. Then click below the "Validate" Button control to create the control. Improving the window interface This window being quite simple, let’s try to improve its interface. Several details can become very annoying for the user so let’s try to sort them out right now. Aligning controls ▶ One of the first optimizations consists in aligning the controls and in giving them the same size: 1. Select the "Caption" control then all edit controls found in the window (hold the Ctrl key down while clicking the different controls for example). The first selected control will be used as reference for the size of other controls.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==