spiren 0 Newbie Poster

Hello,
I wrote a program to find a path in a StringGrid. The path found should be highlighted - according to several articles I use an array with 0/1 values to indicate path cells.
When using this in the onDrawCell event handler, only the first and the last cell of the path seem to be drawn, when overlapping the form window with another one, I can see that the grid is correctly redrawn - so it seems to be a Refresh/Repaint problem.
A refresh of the form has no effect, a refresh of the Grid enters an endless loop. What do I miss?? Thanks for any help.
Sylvain Piren

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.