Tuto WINDEV Mobile 25
Part 5: Android and iOS: Developing an application 157 ▶ We are now going to modify the WLanguage code used to open the list of products. Indeed: • we work with the "WIN_List_of_products_Advanced" window and not with the "WIN_List_of_ products" window anymore. • the "WIN_List_of_products_Advanced" window contains the sliding menu. Therefore, the "List of products" option must not re-open this window. ▶ We are going to change the WLanguage code used to select the Multiline Zone control. 1. Select the Multiline Zone control. 2. Display the associated WLanguage events (F2). 3. Replace the line: CASE 1 // List of products OpenMobileWindow(WIN_List_of_products) by: CASE 1 // List of products WinSlidingVisible(swLeft, False) In this WLanguage code, WinSlidingVisible is used to make the sliding window displayed from the left invisible. Therefore, the list of products is displayed. 4. Save the modifications by clicking among the quick access buttons. 5. Close the code window (click X at the top right corner of code editor). ▶ To associate the internal window with the "WIN_List_of_products_Advanced" window: 1. Display the window "WIN_List_of_products_Advanced" (click its name in the bar of opened documents). 2. Display the description window. 3. In the "Details" tab, in "Left sliding window", select "IW_MLZ_Options". The "Swipe" option is used to automatically manage how the sliding window is displayed during the swipe. 4. Validate.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==