NDataGridView scrollbar painting issue


Author
Message
Brad Swearingen
Brad Swearingen
Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)
Group: Forum Members
Posts: 53, Visits: 3

I'm using the NDataGridView and have noticed that the horizontal and vertical scrollbars sometimes do not draw themselves using the current skin/scheme.  This is easily reproduced by clicking and dragging the scrollbar thumb to scroll and letting it go.  A subsequent mouse move over the scrollbar will cause it to paint back to the current skin/scheme.  The NListView doesn't have this problem that I can tell.

I added some code to get the grid scrollbars and look for the scroll events on it.  Setting a 250 msec timer during this event on which I invalidate the scrollbar helps but doesn't completely fix all scenarios.

I was wondering if there might be a better way to work around this issue today?


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hello Brad,

On Windows 7 with theme different than Windows Classic and if the application is with enabled visual styles we are not able to paint our scrollbars on the top of some parent control scrollbars correctly.

We cannot find any solution of the problem yet.



Best Regards,
Nevron Support Team


Brad Swearingen
Brad Swearingen
Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)Forum Guru (53 reputation)
Group: Forum Members
Posts: 53, Visits: 3
Thanks, I should have thought to try disabling visual styles.  It would be great if you could provide a document which explains the various known issues with using and not using visual styles.  Providing recommendations where it makes sense as to what should be done on the various platforms.  I suspect there is no clear direction but knowing all the issues could help users make the best decisions.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search