* * *

Author Topic: I bet its stupid but I've not seen this before and I'm stumped.[Solved]  (Read 521 times)

jbmckim

  • Jr. Member
  • **
  • Posts: 84
Adding a stringgrid to a form.  Run to test and I can't enter anything in form.  Grid is enabled, KeyPress event traps a character but other, later events don't "see" any entry.

I was able to duplicate in a dummy project and the project is attached.  Didn't do anything special to the form, although I did add a Rowcount assignment as this mimics the original project.  (Demo proj had the same result without the assignment.) I do not remember anything like this when adding my other string grids.

Thanks.
« Last Edit: May 17, 2018, 07:36:40 pm by jbmckim »

josh

  • Hero Member
  • *****
  • Posts: 631
Re: I bet its stupid but I've not seen this before and I'm stumped.
« Reply #1 on: May 16, 2018, 11:41:57 pm »
Hi

Have you set goEditing to True in the option property of the grid.

Similar to post a few hrs ago
https://forum.lazarus.freepascal.org/index.php/topic,41255.msg286068/topicseen.html#new
Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

jbmckim

  • Jr. Member
  • **
  • Posts: 84
That's it! 

Thanks.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus