Graphical glitch lazarus / 21-General ---------------------------------------------------------------------- BubikolRamios · 2024-08-04 08:37 The list on top of tPanel, contains data for drawing various shapes . The effect seen at attached image does not apply for all shapes just for some. Point: something sometimes appears only as consequence of tPanel being there(visible/not visible). Extra thing is fixed per single data, not randome. Not the end of the world, just interesting. Any clue ? ---------------------------------------------------------------------- Eugene Loza · 2024-08-04 08:54 Means something is drawn on TPanel or its children, instead of on your primary TCanvas. This is definitely possible, but I'm not sure how easy is to make such a mistake accidentally. I guess you can try searching for all LineTo in the code and make sure they are all called on a proper parent. Note that overusing with may bite you back now as it may obscure the namespace you are using and you might want to Source -> Refactoring -> Explode a "With" block at least temporarily. You can also go backwards and try to pinpoint which exactly command (line of your list) results in such behavior. Then try to follow the logic of what is happening when executing this command and how it is different from others. ---------------------------------------------------------------------- alpine · 2024-08-04 09:23 Quote from: BubikolRamios on August 04, 2024, 10:37:08 amThe list on top of tPanel, contains data for drawing various shapes . The effect seen at attached image does not apply for all shapes just for some. Point: something sometimes appears only as consequence of tPanel being there(visible/not visible). Extra thing is fixed per single data, not randome. Not the end of the world, just interesting. Any clue ? Very interesting. It seems the artifacts are the rightmost lines from the original shape but with erroneous coordinates. But I don't think I'll guess something more without the source. ---------------------------------------------------------------------- jamie · 2024-08-04 13:29 If you are calling other GUI items while in the loop of drawing those lines, its possible the canvas is getting changed and it would be an idea to use the Save and Restore handle between the calls, even the LOCK may work,.