Tuto WINDEV 25

Part 4: Full application with data 185 We are now going to create in our window the different controls allowing the user to select the query parameters. These controls will be positioned above the Table control. ▶ Move (if necessary) the Table control in the window and reduce its height in order to get available space for creating the different controls. First parameter: Order status Three states can be assigned to an order: • pending, • paid, • canceled. In our analysis, the order status is saved in the "Status" item found in the "Orders" file. This item is a radio button. To allow the user to select one of these three states, we are going to use the Radio Button control associated with the "Status" item of "Orders" data file. Remark The radio buttons are also called "option box". They are used to select a single option among the proposed ones. How to differentiate between a radio button and a check box? We will only refer to option boxes as "Radio buttons". An easy way to remember: think of old radios: a single frequency could be selected via the button! The radio button is used to select a single option. ▶ To create the Radio Button control: 1. Display the "Analysis" pane if necessary: on the "Home" pane, in the "Environment" group, expand "Panes" and select "Analysis". The different data files described in the "WD Full Application" analysis appear in the pane. 2. Click the icon next to the "Orders" data file: the items found in the data file are listed. 3. Select the "Status" item in the Orders data file, then drag and drop this item into the "WIN_ Menu" window 4.  The Radio Button control is automatically created. Position this control above the Table control.

RkJQdWJsaXNoZXIy NDQ0OA==