Recent

Author Topic: TStringGrid Cell editor  (Read 5366 times)

jhvhs

  • New Member
  • *
  • Posts: 18
TStringGrid Cell editor
« on: May 03, 2010, 11:48:45 am »
Hello everyone.

First of all I would like to thank the team for the great work!

I've been searching the forums, but was unable to find anything about this problem:
  = I have a TStringGrind with AutoEdit set to true
  = Edit a cell, then move focus to a different component
  = Sometimes(!) the cell editor would still remain active, even the caret will be there blinking.
  = Even if I delete this row programmatically, the editor will remain visible, containig the value for the deleted row

Lazarus 0.9.28.2 beta
FPC version 2.4.0
SVN revision 22296
i386-darwin-carbon (beta)

The TStringGrid shows as "partially implemented" on carbon, but the same behaviour remains if I cross-complie the app for win32

As a workaround, I have assigned a custom cell editor.
Is this problem known? Should I file a bug report?

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: TStringGrid Cell editor
« Reply #1 on: May 03, 2010, 08:23:57 pm »
I think that the best would be if you file a bug report

jesusr

  • Sr. Member
  • ****
  • Posts: 483
Re: TStringGrid Cell editor
« Reply #2 on: May 04, 2010, 07:28:19 pm »

jhvhs

  • New Member
  • *
  • Posts: 18
Re: TStringGrid Cell editor
« Reply #3 on: May 05, 2010, 07:22:15 am »
Seems like it. As a workaround I use the following simple code before programmatically deleteing/moving the rows:

Code: [Select]
if Assigned(MyGrid.Editor) then MyGrid.Editor.Visible := false;

 

TinyPortal © 2005-2018