Lazarus

Programming => General => Topic started by: jbmckim on May 16, 2018, 11:14:44 pm

Title: I bet its stupid but I've not seen this before and I'm stumped.[Solved]
Post by: jbmckim on May 16, 2018, 11:14:44 pm
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.
Title: Re: I bet its stupid but I've not seen this before and I'm stumped.
Post by: Josh 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
Title: Re: I bet its stupid but I've not seen this before and I'm stumped.[Solved]
Post by: jbmckim on May 17, 2018, 07:36:53 pm
That's it! 

Thanks.
TinyPortal © 2005-2018