NuiPanel flicker when resize


Author
Message
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 Miles,

In the project that you have attached you are using System.Windows.Forms.Panel not NUIPanel.

Anyway, one suggestion that you can try is to create class that inherits from Panel and in the constructor set DoubleBuffered to true.

Than use this class for your panel. This should reduce flickering.

public class MyPanel : Panel
{
    public MyPanel()
    {
        DoubleBuffered = true;
    }
}

Please, let us know if the problem persist.

 



Best Regards,
Nevron Support Team


Miles Thornton
Miles Thornton
Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)
Group: Forum Members
Posts: 17, Visits: 1

I'm sorry, I may have mistaken the version. On closer inspection, the Presentation DLL's version/date is: 9.11.3.12 dated: Nov. 03, 2009.

Please find a VS2010 Winforms shell project of my UI zipped and and attached.

Thank you in advance for all the help!


Attachments
NevronImageFlicker.zipx (260 views, 644.00 KB)
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 Miles,

Could you tell what is the date of this Nevron.Presentation assembly, because the version number that you say you are using it seems to be very old.

Also, it would be great if you provide us with a small example application that demonstrates the problem.

Thanks.



Best Regards,
Nevron Support Team


Miles Thornton
Miles Thornton
Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)
Group: Forum Members
Posts: 17, Visits: 1
Btw, why does this control redraw itself 3 times? When the winforms app is running in a slower environment, such as on a server accessed via Remote Desktop; the redraw (which used to be flicker) is very perceptable...
Miles Thornton
Miles Thornton
Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)
Group: Forum Members
Posts: 17, Visits: 1
I also discovered that the issue is exacerbated when the BackgroundImageLayout property is set to "stretch". The flicker isn't nearly as noticable in "tile" mode for example.
Miles Thornton
Miles Thornton
Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)
Group: Forum Members
Posts: 17, Visits: 1

Using Nevron.Presentation version 2.0.50727 in a WinForms application (using NForm); how do I eliminate NUIPanel background image flicker? I have an image loaded at design time into the npanel's Background Image; when the application starts and draws the panel, there is a disorienting flicker as the panel image draws…

I tried the advice in this post - I set the two lines up in the form's constructor - But there's no change in the flickering...

What else would you suggest I try?

 


Angel Chorbadzhiev
Angel Chorbadzhiev
Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)Supreme Being (142 reputation)
Group: Forum Members
Posts: 139, Visits: 184

Hi JSW W.,

Try to set the following styles in the constructor of the user control.

SetStyle(ControlStyles.AllPaintingInWmPaint, true);

SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

Regards,

Angel.

 


JSW W.
JSW W.
Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)Supreme Being (127 reputation)
Group: Forum Members
Posts: 127, Visits: 1
I use NuiPanel fill in UserControl to get skin for standard control e.g. scroll/background etc.
But it flicker when resize/maximize/show/hide.

Should it be done as so.
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