Tuto WINDEV 25
334 Part 4: Full application with data 4. The SCM proposes three check-out modes: • Exclusive (recommended mode): nobody can check out this element until it is checked back in. The element can be checked out for test only. • For test : the element can be modified but the modifications will not be checked back in. • Multiple : the element can also be checked out by other users. In this case, the differences between the different element versions can be viewed when the element is checked back in. This mode is reserved to specific cases and to experienced developers. 5. The window will be checked out in exclusive mode. Keep the "Exclusive" option checked. 6. Type a comment ("Image modification" for example). This comment will be useful for the other developers. 7. Validate the check-out. The window is checked out. 8. Display the description window of Image control ("Description" from the popup menu). 9. In the "UI" tab, modify the cursor used: select the "System hand" cursor. 10. Validate the control description window. 11. Display the code of Image control: select the Image control and press F2 for example. 12. Write the following code in the event "Click...": // Runs the click code of button that modifies the image ExecuteProcess(BTN_Modify, trtClick) 13. Close the code window. 14. Save your window (Ctrl + S). ▶ Test your modifications. 1. Run the project test ( among the quick access buttons). 2. Select a product and click "Modify". 3. In the form that is displayed, click the product image: the file picker is opened to modify the product image. This is the expected operating mode. 4. Close the test window.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==