Tuto WINDEV Mobile 25
128 Part 5: Android and iOS: Developing an application ▶ Repeat this operation for the Button control that allows managing barcodes. In this case, select "Right" ( ). ▶ All anchors have been defined in the window. The red arrows indicating the orientation of anchors are displayed: Using the Map control We will now present the Map control and the GPS functions of WLanguage. Our database contains a "Store" data file. This data file contains the addresses of stores that will be localized on a map via the mapping functions. Creating the window We are going to create a new window and add a Map control into it. ▶ To create the window: 1. Create a new blank window. Click among the quick access buttons. The window for element creation is displayed: click "Window" then "Window". In the wizard, choose "Blank" and validate. 2. The window for saving an element is displayed. Specify the window title: "Map of stores". Its name is automatically proposed: "WIN_Map_of_stores". Validate. Creating the Map control ▶ To create the Map control: 1. On the "Creation" pane, in the "Graphic controls" group, click "Map". The control shape appears under the mouse. 2. Click inside the window to create the control. 3. A message regarding the management of scrollbars in the window is displayed. Indeed, both the window and the Map control include their own scrollbar. Therefore, a conflict occurs. A single scrollbar must be enabled. We advise you to: • disable the scrollbar in the window because the window has a fixed size, • keep the scrollbar enabled in the Map control.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==