Tuto WINDEV Mobile 25
Part 5: Android and iOS: Developing an application 163 ▶ To avoid being bothered by the keyboard appearance during the swipe, we are going to use SIPVisible : 1. Display the WLanguage events of the Internal Window control in "WIN_Product_form_ Advanced". 2. Write the following code in the WLanguage event "Selection by swipe ...": SIPVisible(False) 3. Close the code editor. ▶ To finish this window, we are going to add the validation option into the Action Bar of the window. We already did this in the lesson 5.2 ("Managing the product creation and modification"). Here, we will only present the main points: 1. Select the Action Bar (at the top of window). 2. Open the Action Bar description window. 3. Click number 2. The interface for typing an option in the Action Bar appears. 4. Click the "+" button to add an option. A new default option is created at the top right. 5. Modify the characteristics of this option: • In the "Caption" area, type "Done". • In the "Preset image" area, expand the list and select "Done". • Validate the description window. 6. To enter the code used to save the modifications performed in the "WIN_Product_form_ Advanced" window: • Select (if necessary) the Action Bar control of window. • Click on "OK". • A drop-down menu with the "Done" option is displayed. • Right-click the option. • Select "Code" from the popup menu that is displayed. • Write the following WLanguage code in the event "Selecting the menu": ScreenToFile() HSave(Product) Close() 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).
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==