PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Event handling for a runtime created button
Event handling for a runtime created button
Débuté par Hans VINCKIER, 02 nov. 2024 13:32 - Aucune réponse
Membre enregistré
1 message
Posté le 02 novembre 2024 - 13:32
Hi,
I've been working in Clarion since 1996 and now we want to start moving our app to windev. First we'll try to find out how we can move our working principles.
The application controls access , payment, weigh registration for a containerpark. Each cabinet has a card reader, payment terminal, printer... For each type of cabinet or function there is a class object. Screen setup is done at runtime,i.e. all controls are created when the program starts by reading a configuration file.
I found how to create buttons, etc at runtime. Now, several buttons are repeated on screen. In the called procedure (when the button is clicked) I want to know which button activated the call.
I asked chatgpt and copilot and both suggested the "eventsource()" procedure. I didn't find any docs on that, even via the help it seemed to be an unknown function.
How can I find out which control activated the call ??

Thanks

Hans Vinckier