Jump to content
  • Advertisement
  • entries
  • comments
  • views


Sign in to follow this  


Not the www2 theme though - a couple of XP theme glitches.

First up is the ListView control in .NET 2. If you switch on gridlines and scroll with the arrows on the scrollbar, it leaves the gridlines behind as nasty artefacts. This is what I came up with - and it appears to work.

Create a new class that inherits from ListView. Then add to it this code:

/// Hacky override to fix the garbage lines.

protected override void WndProc(ref Message m) {
if (m.Msg == 0xF) { // 0xF is WM_PAINT
GridLines = false;
GridLines = true;
base.WndProc(ref m);

...compile and that new class should appear in your toolbox. Use that instead of the normal ListView control.

If anyone could come up with a better solution, I'd love to hear it...

The other theme bug appeared last night in XP.

Click for big.

I guess it can't remember if it's using Windows Classic or Windows XP styling?
Sign in to follow this  


Recommended Comments

I hate you and your crazy ass dual monitor system.

Oh, and remind me to get your to tell me what controls and stuff you used for your editor... Would be cool to make a script editor for a scripting engine type thingy thing thingy.....

Share this comment

Link to comment
@Rob: The control is just a modified RichTextBox. The original version was pretty buggy and very slow - I've removed the bugs, but it's still pretty slow (at least it now only rehighlights lines of text that have changed!)

@philipptr: It's a very nice demo [smile] (Looks great on hardware). He's managed to switch palette colours at the ends of scanlines, so has the timing down pretty tightly - not something I ever managed to get quite right!

Share this comment

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!