Site icon Python GUI

OnChange Event in DelphiVCL Library

crop diverse women doing task in campus

Photo by Charlotte May on Pexels.com

OnChange event occurs when the user changes the text displayed in the edit region.

We write an OnChange event handler to take specific action immediately after the user edits the text in the edit region or selects an item from the list. The Text property gives the new value in the edit region.

Note: OnChange only occurs in response to user actions. Changing the Text property programmatically does not trigger an OnChange event.

Here is the working example of the implementation of an OnChange event:

[crayon-6621821105d8a902151013/]

To see the result, let’s run the complete script:

[crayon-6621821105d97337603132/]

 

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Exit mobile version