PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Pat Dooley on March 10, 2010, 08:36:25 AM

Title: gridline ghosting in listview
Post by: Pat Dooley on March 10, 2010, 08:36:25 AM
Would anyone know why I'm getting phantom horizontal gridlines in a listview (shown below) when scrolling using the scroll bar? It will clean up when it needs to, such as after a minimize/restore.
Title: Re: gridline ghosting in listview
Post by: John Thompson on March 10, 2010, 09:09:48 AM
I didn't have exactly the same, but if you're using custom draw on the listview try turning off Windows XP Themes support prior to compiling.
Title: Re: gridline ghosting in listview
Post by: Pat Dooley on March 10, 2010, 10:05:39 AM
That fixed it. Thanks. I wasn't using any custom draw, however.

Title: Re: gridline ghosting in listview
Post by: Pat Dooley on March 10, 2010, 11:13:36 AM
Now I'm wondering if there may be another solution besides disabling theme support. When I copied the exe with theme support enabled from the XP machine to my new Win 7 box, it ran fine (no phantom lines in the listview).  The version without theme support also ran fine, but didn't look as good.
So is it a choice between appearance or functionality?
Title: Re: gridline ghosting in listview
Post by: José Roca on March 10, 2010, 07:17:32 PM
I have had all kind of problems using listviews with themes. The only solution that worked in my computer, besides disabling themes, was not to use grid lines.
Title: Re: gridline ghosting in listview
Post by: Roger Garstang on March 12, 2010, 12:19:53 PM
Yeah, I think it is a combination of grid lines and how scrolling is setup (Smooth Scroll, etc). Could even be Font Size/Type and height of control being an increment of the line height or not, etc. I have the same issue every now and then and end up playing with it and finally get it to look better. I usually turn off the V and H Redraw styles in the Form Class Styles...could try flipping those and various Clip styles to see which one draws best too.  Usually when it draws weird like that it is when I scroll fast in the control too and not so much if I scroll slow.