Tuto WINDEV 25
Part 4: Full application with data 247 Improving the window We are going to improve our window: • Add a Button control to close the window. • Format the window via the management of anchors and the tab order. • Start the window from the "WIN_Menu" window. Closing the window ▶ To add a Button control to close the window: 1. On the "Creation" pane, in the "Usual controls" group, expand "Button": the list of preset buttons is displayed. 2. Click the "Close" button. 3. Click the position in the window where the control must be created (for example at the bottom, to the right of the "Send" Button control). Formatting ▶ To define the anchors: • Select the "Sender", "Recipient" and "Subject" controls: these controls must be anchored in width. • Select the "HTML text" control: this control must be anchored in width and in height. • Select the Button controls: these controls must be anchored to the right and at the bottom. • Select the control for file selection: this control must be anchored in width and at the bottom. ▶ To define the tab order: Remark The tab order of controls is the order in which the user can type the values in the different window controls. Going from a control to another one is performed when pressing the Tab key at run time. The default tab order corresponds to the creation order of controls. It can be modified: • by specifying an automatic tab order: the first control in edit will be the control found in the top left corner of window, the second one will be the one found immediately to its right or below... • by specifying a tab order by selection. 1. Display the tab order via the F5 key. 2. Define the automatic tab order: on the "Window" pane, in the "Order" group, expand "Navigation" and select "Define automatically".
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==