[Gambas-user] Events
Benoit Minisini
gambas at ...1...
Wed Oct 10 12:37:43 CEST 2007
On mardi 09 octobre 2007, David Villalobos Cambronero wrote:
> Hi all,
>
> I want to know if I can create a event with Gambas, for example add the
> event click to a object that do not have it?
>
> Can someone explaime how Gambas deals with events
>
> Best regards
>
> David
>
I'm speaking about the development version:
In a few words, you can create any events you want in Gambas.
You cannot add a new event declaration to an already existing class. But you
can use inheritance for that.
You can use the Observer() class too: it allows you to intercept events sent
by an object before the event handlers get them.
You should read "The Gambas Object Model" page on the wiki documentation, and
take a look at all event-related functions in the language documentation.
Look at the Observer class documentation too.
Regards,
--
Benoit Minisini
More information about the User
mailing list