plugin interaction gui

Hi everyone, I recently discovered XOJO, I would like to start writing a plugin and I wanted to ask if you know a way to interact from the plugin on a pre-existing GUI component. I wanted to interact with the progressbar and change value from the plugin based on events. Thanks in advance

You may need to define a class, which has an event, so you can call event in plugin and implement code for GUI in Xojo.

ok, thx!

so there is no other way, for example having a reference to the component to be passed to the plugin?