Tuto WINDEV 25

Part 7: Advanced programming 409 Introduction Each action performed by Windows corresponds to a Windows event. Different types of events can occur, for example: • A window is hovered by the mouse, • The system is stopped, • A dialog box is displayed, • A software error, • Etc. When these events occur, they can be intercepted in order to prepare or to run a specific process. WINDEV proposes an automatic management of most common events. For example, the following events are automatically proposed for an edit control: • Initializing the control, • Entry in the control, • Modifying the control, • Exit from the control. To manage additional events, you can: • use the optional events proposed by WINDEV. • use the Windows events. Practical example The management of events will be presented via the unit example named "The Event function". ▶ Open the unit example named "The Event function". Optional events proposed by WINDEV WINDEV proposes many optional events for each element (window, control, etc.). ▶ To add an optional event: 1. Display the WLanguage events associated to the List Box control in the unit example window: • Select the List Box control. • Press F2. • The code editor is displayed. 2. Click the "Add other events..." link:

RkJQdWJsaXNoZXIy NDQ0OA==