Tuto WINDEV Mobile 25

Part 5: Android and iOS: Developing an application 127 Managing anchors in the Product form All controls have been positioned in the Product form. The vertical and horizontal resolution may differ according to the devices. The anchoring is used to adapt the size of controls to the resolution and to avoid displaying "empty" areas in the window (especially at the bottom right). If the application’s target device is known since the creation of the project, the windows adopt the size of the target device. No anchoring is required. If the target device of application is not known or if several devices are used, the smallest common resolution must be chosen as soon as project creation. The anchoring is required in this case. ▶ To define the anchoring that will be applied to the different window controls: 1. Select the following controls (click each control while keeping the Ctrl key down): • the Image control that displays the product image, • the Button control used to take photos, • the Button control for selecting a photo from the album. 2. Display the popup menu of selection (right mouse click) and select "Anchor". 3. Select "Centered horizontally" ( ). 4. Validate. ▶ To define the anchoring that will be applied to the edit controls: 1. Select the following edit controls (click each control while keeping the Ctrl key down): • Name, • Bar code, • Reorder date, • Description. 2. Display the popup menu of selection (right mouse click) and select "Anchor". 3. Select "Width" ( ). 4. Validate.

RkJQdWJsaXNoZXIy NDQ0OA==