Again: Stringgrid self shiftup


[ DelphiLand FAQ ]

Posted by Ed on April 12, 2004 at 12:47:49:

This is still the same problem as posted on 26/9/2004.
I am displaying a deck of cards with a Stringgrid. 4 rows (one row for each suit), 13 columns. Clicking on a card means playing that card.
But, at runtime, after a click on the lowest row, the system shifts all the rows up by 1. The former top row is now invisible, and former row n is now at n-1. Very annoying. I did not ask the system to do that.
The shift up seems to happen at the very end of the event handler. The event handler is my own method. It is assigned to the OnSelectcell event of the stringgrid.

Any idea how to prevent the shift up?


Related Articles and Replies:



[ DelphiLand: free Delphi source code, tips, tutorials ]