Tuto WINDEV 25

Part 4: Full application with data 317 Localizing an image ▶ To change the image of the bar used in the WIN_Menu window according to the runtime language: 1. Open the "WIN_Menu.WDW" window. 2.  The bar image is found in the template associated with the window. Therefore, the associated window template must be opened: • Click the "WD FullApplication" control and display the popup menu. • Select "Open the template". • The window template appears, enclosed in an orange border. 3. Display the description window of the bar: • Select the "WD FullApplication" control and display the popup menu. • Select "Description". 4.  In the "Image" area, click the button. 5. Select "Multilingual" from the popup menu that is displayed. 6.  The window for managing multilingual images is displayed. A different image can be used for each language. This feature is very useful if you are using images containing text. 7. For our example, in the "French" area, select the "header-fr.png" file: • Click the icon. • Select "Browse". • Select the requested file. 8. Validate. The "Multilingual value" caption appears in the "Image" area of description window. 9. Validate the control description window. 10. Save the window template ( or Ctrl + S). 11. Update the windows that use the window template by clicking the icon in the orange bar. Validate the update window. 12. Close the window template displayed in the editor.

RkJQdWJsaXNoZXIy NDQ0OA==