Recent

Author Topic: DBGrid / OnCellClick - Event  (Read 5976 times)

uli65

  • New Member
  • *
  • Posts: 12
DBGrid / OnCellClick - Event
« on: November 09, 2011, 12:55:22 pm »
Hello,

I know, that the problem with the OnCellClick-Event (execute only after second click) was fixed for 0.9.31 (target 0.99) (http://bugs.freepascal.org/view.php?id=19818.

But I need a fix for 0.9.30.2, too.....

Best regards
Uli65
Lazarus 2.0.6, FPC 3.0.4, Unidac 8.12

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Re: DBGrid / OnCellClick - Event
« Reply #1 on: November 09, 2011, 08:54:22 pm »
I can not guarantee that it the needed patch will be merged, but you can download the patches and try them, if everything goes fine we will have a better argument to ask for a merge.

I don't use 0.9.30.x so I can't test but I don't anticipate big problems. Can you do it? the patches are:

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/dbgrids.pas?r1=31812&r2=31811&pathrev=31812&root=lazarus&view=patch

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/grids.pas?r1=31812&r2=31811&pathrev=31812&root=lazarus&view=patch

uli65

  • New Member
  • *
  • Posts: 12
Re: DBGrid / OnCellClick - Event
« Reply #2 on: November 09, 2011, 10:52:42 pm »
It looks very good!!! Thank you very much!  :)
Lazarus 2.0.6, FPC 3.0.4, Unidac 8.12

jesusr

  • Sr. Member
  • ****
  • Posts: 470
Re: DBGrid / OnCellClick - Event
« Reply #3 on: November 10, 2011, 07:48:12 pm »
does it mean that you actually tested? o just you took a look?

uli65

  • New Member
  • *
  • Posts: 12
Re: DBGrid / OnCellClick - Event
« Reply #4 on: November 10, 2011, 10:40:33 pm »
Yes, I tested it in a current developed application.
Lazarus 2.0.6, FPC 3.0.4, Unidac 8.12

sandy.sakti

  • Newbie
  • Posts: 3
Re: DBGrid / OnCellClick - Event
« Reply #5 on: November 11, 2011, 08:07:52 am »
I can not guarantee that it the needed patch will be merged, but you can download the patches and try them, if everything goes fine we will have a better argument to ask for a merge.

I don't use 0.9.30.x so I can't test but I don't anticipate big problems. Can you do it? the patches are:

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/dbgrids.pas?r1=31812&r2=31811&pathrev=31812&root=lazarus&view=patch

http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/lcl/grids.pas?r1=31812&r2=31811&pathrev=31812&root=lazarus&view=patch


Can anyone please tell me how to use this patch?

uli65

  • New Member
  • *
  • Posts: 12
Re: DBGrid / OnCellClick - Event
« Reply #6 on: November 11, 2011, 09:54:00 am »
In the attachment you find the fixed files "dbgrids.pas" and "grids.pas" as 7zip-Archive.  Replace the files at "\lazarus\lcl" and compile Lazarus incl. LCL again.
Lazarus 2.0.6, FPC 3.0.4, Unidac 8.12

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3865
  • I like bugs.
Re: DBGrid / OnCellClick - Event
« Reply #7 on: November 11, 2011, 10:18:51 am »
If they merge cleanly you can add the revs here:
  http://wiki.lazarus.freepascal.org/Lazarus_0.9.30_fixes_branch

At some point I will start backporting to branch 0.9.30.3 (unless other volunteers pop up).

sandy.sakti, to apply a patch :
  http://wiki.lazarus.freepascal.org/Creating_A_Patch#Applying_a_patch

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux.

sandy.sakti

  • Newbie
  • Posts: 3
Re: DBGrid / OnCellClick - Event
« Reply #8 on: November 16, 2011, 01:21:07 am »
Thx all for the reply...
I'll try it first...

 

TinyPortal © 2005-2018