Tuto WINDEV Mobile 25

118 Part 5: Android and iOS: Developing an application Creating a new product The principle for creating a product is as follows: • In the window for the list of products, we are going to add option into the Action Bar of window in order to open the "Product form" window. • Then, we will modify the WLanguage code of "Product form" window to manage the addition into the Product data file. ▶ To add an option into the Action Bar of window: 1. First of all, display (if necessary) the "WIN_List_of_products" window in the editor: click the corresponding button in the open documents bar. 2. Select the Action Bar (at the top of window). 3. Open the Action Bar description window: right-click and select "Description" from the popup menu. 4. Click on number 2 (any number 2 in the window). The interface for typing an option in the toolbar is displayed. 5. Click on "+" (below the "Top right" area) to add an option. A new default option is created at the top right. Modify the characteristics of this option: • In the "Option caption" area, type "New product".

RkJQdWJsaXNoZXIy NDQ0OA==