On mardi 4 novembre 2008, moon_walker wrote: > Hi all, > > i would like to ask if there is an event raised if i click a row in the > databrowser? > Another question if i can catch the events of the control buttons of the > databrowser? > (movefirst, save, etc...) > > This is not working: > > PUBLIC SUB DataBrowser1_MouseDown() > > Message.Info("catched") > > END > > Thanks > and regards from hungary. > > Attila
DataBrowser's goal is just browsing. If you need more control, you have to create your own one, by using a DataView, and buttons that call DataView methods. The DataView control has an 'Activate' event that is raised each time the current record change (It should have been named 'Change' or 'Click' instead). If this is not what you need, you will have to catch events on the DataView GridView yourself, by using its GridView property. That property returns the underlying GridView control. Then you use the Observer class to catch the events. Regards, -- Benoit Minisini ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user