[Gambas-user] Databrowser.gridview events.?
Benoit Minisini
gambas at ...1...
Tue Nov 4 17:22:05 CET 2008
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
More information about the User
mailing list