Author Topic: StringGrid bug  (Read 2119 times)


  • Newbie
  • Posts: 1
StringGrid bug
« on: May 16, 2018, 10:13:05 pm »
Hi guys,

I have one problem with lazarus. The problem is in StringGrid. I used it for "database" and for Tic-tac-toe.
I using in database event OnSelectCell for edit cell and in game for add X or O but when I compile and run the program it automatic shows me inputbox which is in OnSelectCell procedure. You can see it all in this project:
(Labels are in Slovak language but you will understand it. I hope so)!fBdUGZIa!2Zz9_KKu4zmyTPpBLKMikw


  • Hero Member
  • *****
  • Posts: 764
Re: StringGrid bug
« Reply #1 on: May 16, 2018, 10:34:49 pm »

The code is doing what you telling to do, in the on selectcell event of grid1 its calling inputbox( which displays the box...
if you want the grid to be editable then you set goediting to true in the options property of grid1; then you can enter text direct into cell.
if you want to execute some code when you finish editing the cell, you would put this code in the OnEditingDone event of grid1
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.


  • Hero Member
  • *****
  • Posts: 986
Re: StringGrid bug
« Reply #2 on: June 19, 2018, 07:37:35 am »
When reading, I've been thinking a lot of things. I get more knowledge.

After reading it. I know a lot of things and I like it a lot.

Is JanaRonnie someone preparing oneself for spam?


TinyPortal © 2005-2018