Tuto WINDEV Mobile 25
Part 6: Windows Mobile application 199 Displaying the form from the list of products Let’s now see how to display the form of selected product in the list of products. ▶ Perform the following operations: 1. Position on the "List of products" window: click the "WIN_List_of_products" button in the open documents bar: 2. On the "Creation" pane, in the "Usual controls" group, click : the shape of the control appears under the mouse pointer. Then, click at the bottom of the window to create the Button control. 3. Select the control and press Enter. The control caption becomes editable. Type "Modify the element" and press Enter on the keyboard. 4. If necessary, resize the control (using the handles) so that the caption is fully displayed. 5. Right-click the control and select "Code" from the popup menu. 6. In the code window that appears, write the following code in the "Click" event: Open(WIN_Product_form) TableDisplay(TABLE_Product, taCurrentSelection) Remark The assisted code input is going to help you: as soon as you type the opening bracket "(", a drop-down list proposes the name of all existing windows found in the project. All you have to do is select the window with the keyboard or with the mouse. If the window name is not displayed in the list, it means that this window was not saved beforehand. 7. Save the modifications by clicking among the quick access buttons. 8. Close the code window (click X at the top right corner of code editor). • Run the window test again in the simulator ( among the quick access buttons). • In the list of products, click one of the products with the mouse. • Click the "Modify the element" button. • The detailed product window is displayed. ▶ Close the simulator.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==