Krypton-Suite / Standard-Toolkit

An update to Component factory's krypton toolkit to support .NET Framework 4.6.2 - 4.8.1 to .NET 6 - 8
BSD 3-Clause "New" or "Revised" License
404 stars 62 forks source link

[Bug]: `KryptonForm` Flickers when using features in #1117 #1175

Open PWagner1 opened 12 months ago

PWagner1 commented 12 months ago

As noted by @AngeloCresta, this is caused by the looping in VisualForm as per comment in #1174

// Force repaint of Background etc.
            OnBackColorChanged(EventArgs.Empty);
            OnBackgroundImageChanged(EventArgs.Empty);
            OnBackgroundImageLayoutChanged(EventArgs.Empty);
            OnFontChanged(EventArgs.Empty);
            OnForeColorChanged(EventArgs.Empty);

Might be better to move it in its own method?

Smurf-IV commented 11 months ago

I did not see any flickering when I was did this conversion. (And as not seen when the recording was done) Can I have a project that demonstrates it, as it might be some interaction with child controls that causes refreshing weirdness....

PWagner1 commented 11 months ago

I did not see any flickering when I was did this conversion. (And as not seen when the recording was done) Can I have a project that demonstrates it, as it might be some interaction with child controls that causes refreshing weirdness....

Happens with a StatusStrip, will upload a demo shortly

PWagner1 commented 11 months ago

Edit: Ignore, can't get it to reproduce

Smurf-IV commented 11 months ago

Edit: Ignore, can't get it to reproduce

Is the code still removed ?

PWagner1 commented 11 months ago

Edit: Ignore, can't get it to reproduce

Is the code still removed ?

Yes, because that particular block still affects the ribbon.

giduac commented 4 months ago

Hi @Wagnerp & @Smurf-IV,

I tried this with build 80.24.3.64 and cant get it to reproduce. Is this fixed then?

PWagner1 commented 4 months ago

Hi @Wagnerp & @Smurf-IV,

I tried this with build 80.24.3.64 and cant get it to reproduce. Is this fixed then?

Hi @giduac

Partly, #1117 is still outstanding

giduac commented 4 months ago

@Wagnerp Not sure how those two are connected to one another?

Smurf-IV commented 4 months ago

@Wagnerp Not sure how those two are connected to one another?

When the code is restored, then this bug becomes apparent.

PWagner1 commented 4 months ago

@Wagnerp Not sure how those two are connected to one another?

Hi @giduac

If you uncomment/restore code for #1117, you'll see what I mean