I have an array of 8x8 and a TDrawGrid of 8x8 - each element of the array contains a color code and on keypress (arrow key expected) it changes the color codes in the array and redraws the changed cells in order to 'move' a blue square around the grid of black squares.
My problem is with the default behaviour of the TDrawGrid - it puts a 1px dash-border around what it considers the 'current' cell, and for some reason forces this cell to be white, along with the previous 'current' cell... this produces a 2-cell white 'snake' that moves around the grid...
I made 4 small screenshots showing the problem, but I'm too new to post images
Any help to figure this out will be *VERY* much appreciated!
Edit: I should probably mention I'm trying to get RID of this 'snake' altogether.. I've tried things like .Enabled := False (which has the lovely effect of disabling the DrawGrid lol) and .Options.goRangeSelect := False (stops the user click-dragging a range of cells, but leaves the snake there)
Edit2: It's funny how you can spend 3 days trying to figure something out, then as soon as you post on a forum you work it out yourself...
I missed an 'Update;' at the beginning of my procedure that actually draws the images onto the TDrawGrid. Put it in, and away she goes!
Thanks anyway - hopefully this can help somebody else in the future!