Recent

Author Topic: TDrawGrid/TStringGrid character entry  (Read 6891 times)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: TDrawGrid/TStringGrid character entry
« Reply #15 on: July 14, 2020, 03:15:42 am »
I downloaded your demo from https://forum.lazarus.freepascal.org/index.php/topic,46787.msg334041.html#msg334041

The problem seems to be worse now with Lazarus & FPC trunks (see signature).

Whichever cell I choose to edit, the first character is focussed, entering a character deletes it. So far this agrees with your issue.

But now I cannot edit any other cell. If I click on another cell, the cell outline is highlighted, but anything I enter turns up in the first cell I edited! It seems that the focus remains stuck on the first cell I edited.

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: TDrawGrid/TStringGrid character entry
« Reply #16 on: July 14, 2020, 03:32:43 am »
Thanks so much trev. This has been making me crazy.

I thought I had a work around, but now I'm jammed in another application.
« Last Edit: July 14, 2020, 03:44:47 am by VTwin »
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: TDrawGrid/TStringGrid character entry
« Reply #17 on: July 14, 2020, 11:19:08 pm »
The bug report I filed was closed and reopened. Dmitry is working on it.

Perhaps it would be useful for you to add a note on this new behavior? 
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: TDrawGrid/TStringGrid character entry
« Reply #18 on: July 15, 2020, 11:51:16 am »
Bug report updated.

bigeno

  • Sr. Member
  • ****
  • Posts: 266
Re: TDrawGrid/TStringGrid character entry
« Reply #19 on: July 15, 2020, 03:49:23 pm »
Thats rev 63541 bug.

VTwin

  • Hero Member
  • *****
  • Posts: 1215
  • Former Turbo Pascal 3 user
Re: TDrawGrid/TStringGrid character entry
« Reply #20 on: January 22, 2022, 11:06:07 pm »
Bump

This is a serious bug for anyone using a StringGrid or DrawGrid. It has not been resolved as of Lazarus 2.2.0. Does anyone have a fix or workaround?
“Talk is cheap. Show me the code.” -Linus Torvalds

Free Pascal Compiler 3.2.2
macOS 12.1: Lazarus 2.2.6 (64 bit Cocoa M1)
Ubuntu 18.04.3: Lazarus 2.2.6 (64 bit on VBox)
Windows 7 Pro SP1: Lazarus 2.2.6 (64 bit on VBox)

 

TinyPortal © 2005-2018