Dbgrid.onCellClick lazarus / 31-LCL ---------------------------------------------------------------------- tintinux · 2012-05-22 18:15 Hi Using Lazarus 0.9.30.4 on Linux (GTK2). In a DbGrid, I would like to enable a button when a row is selected. I have assigned an OnCellClick event, but it is not fired when I click a Row. Here are some properties of the DbGrid :  Code: [Select]    AutoEdit = False     FixedCols = 0     Options = [dgTitles, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgMultiselect, dgAutoSizeColumns]     ReadOnly = True     OnCellClick = GridCellClick Is there anything which could explain the issue ? Or is it a known bug, and is there a workaround ? Thanks for your help ! ---------------------------------------------------------------------- jesusr · 2012-05-22 20:44 dbgrid OnCellClick was fixed in r31812 which is not included in 0.9.30.4, you may try to patch your Lazarus version with http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/grids.pas?r1=31 812&r2=31811&view=patch&sortby=file&root=lazarus&pathrev=31812 and http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/dbgrids.pas?sor tby=file&root=lazarus&r1=31812&r2=31811&pathrev=31812 or try a newer version. ---------------------------------------------------------------------- tintinux · 2012-05-23 18:10 Hi Good news if it is fixed ! It is a bit complex to patch lazarus sources or to use sources from svn, mainly because if other people one want to compile, they must have exactly the same sources. I managed to workaround by using OnKeyDown. It is ugly, but allow to wait for the next stable release. Thanks for your help ! Tintinux ---------------------------------------------------------------------- JuhaManninen · 2012-05-23 18:48 Quote from: tintinux on May 23, 2012, 08:10:36 pmIt is a bit complex to patch lazarus sources or to use sources from svn, mainly because if other people one want to compile, they must have exactly the same sources. I recommend using the 1.0 fixes branch. It is stable and will become the 1.0 release (hopefully) soon.   http://wiki.lazarus.freepascal.org/Lazarus_1.0_fixes_branch Juha ---------------------------------------------------------------------- tintinux · 2012-05-23 20:02 Yes I would, but I don't know how I can install Lazarus from SVN sources on a new machine. There are many different procedures in the wiki, but none of them works, probably because they are  related to previous versions and out of date. If some "heroes" could spend some time to explain it clearly, or to provide working installers, many others dummy programmers like me could give time to really test the pre-releases, and this would make Lazarus better quickly. Regards. ---------------------------------------------------------------------- BigChimp · 2012-05-23 20:10 Download a snapshot. That will work. Edit: btw: the procedures on the wiki work... they're not that version dependent.