flicker

How do I force windows NOT to redraw anything in my dialog when the user is resizing my dialog?

泪湿孤枕 提交于 2019-11-27 09:51:57
问题 When the user grabs a corner of a resizable window, and then moves it, windows first moves the contents of the window around, then issues a WM_SIZE to the window being resized. Thus, in a dialog where I want to control the movement of various child controls, and I want to eliminate flickering, the user first sees what windows OS thinks the window will look like (because, AFAICT, the OS uses a bitblt approach to moving things around inside the window before sending the WM_SIZE) - and only then

Image flickers on repaint()

房东的猫 提交于 2019-11-27 07:24:12
问题 I figured out the solution for my previous question which landed me into new problem. In the following code im moving an image around a JFrame using arrow keys. but every time i press an arrow key the image seems to flicker which is quite noticeable when a key is pressed continuously. import java.awt.Graphics; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.image.BufferedImage; import java.io.IOException; import javax.imageio.ImageIO; import javax.swing

How to prevent a Windows Forms TextBox from flickering on resize?

£可爱£侵袭症+ 提交于 2019-11-27 04:30:06
问题 There are plenty of articles addressing flicker in Windows Forms. The majority recommend setting DoubleBuffered = true or setting a bunch of ControlStyle flags. However, none of these help reduce a TextBox flickering. Here are a couple of related questions: How to double buffer .NET controls on a form? How to eliminate flicker in Windows.Forms custom control when scrolling? To reproduce the issue, create a new WinForms project, add a TextBox , enable multi-line, disable word-wrap, add a bunch

c# flickering Listview on update

喜你入骨 提交于 2019-11-27 03:19:34
I have a list view that is periodically updated (every 60 seconds). It was anoying to me that i would get a flicker every time it up dated. The method being used was to clear all the items and then recreate them. I decided to instead of clearing the items I would just write directly to the cell with the new text. Is this a better approach or does anyone have a better solution. The ListView control has a flicker issue. The problem appears to be that the control's Update overload is improperly implemented such that it acts like a Refresh. An Update should cause the control to redraw only its

CSS3 Transform affecting other elements with chrome/safari

痴心易碎 提交于 2019-11-27 01:52:40
I have an issue where my css3 transformations are effecting other elements on the page and even causing them to sort of flicker. I saw another post about this but they didn't have a resolution with the issue. http://scosha.mybigcommerce.com/w107b/ when you scroll over the navigation you see an animated css3 transformation. It works fine in firefox without flickering but with chrome and safari the effect is very obvious, you see it in the drop down menu items as well as the footer text. This is a known issue with Macintosh text rendering on Chrome 22 (and apparently Safari). GPU acceleration

JApplet - super.paint(); causes flicker

做~自己de王妃 提交于 2019-11-26 22:13:22
问题 I'm writing a JApplet right now, and whenever I call super.paint(), the applet flickers. I am using double buffering (drawing to an image, and then rendering that image), but I think super.paint() is clearing the screen or something, defeating my double buffer. I know I'm supposed to use paintComponents(), but for some reason, when I call "currentScreen.Draw(g)," it won't show the screen's draw. Can anyone help me with this? public void paint(Graphics g) { super.paint(g);//Remove this and it

Android VideoView black screen

僤鯓⒐⒋嵵緔 提交于 2019-11-26 19:48:50
I have been looking for a way to get rid of the nasty black initial screen on a VideoView before the start() method is run. I have tried with background image on the widget but it doesnt work as expected at all. I have also tried putting an image of the first frame in the video on top of the VideoView and hiding it after the stars() method. Adding an onPrepared listener to start the video and then hide the image. This works but there is a horrible flicker in the transition and i don't know how to get rid of it. Thanks for your reply. Adding the MediaController had no effect at all. The problem

TLabel and TGroupbox Captions Flicker on Resize

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 18:32:24
So, I have an application that loads different plugins and creates a new tab on a TPageControl for each one. Each DLL has a TForm associated with it. The forms are created with their parent hWnd as the new TTabSheet. Since the TTabSheets aren't a parent of the form as far as VCL is concerned ( didn't want to use dynamic RTL, and plugins made in other languages ) I have to handle resizes manually. I do this like below: var ChildHandle : DWORD; begin If Assigned(pcMain.ActivePage) Then begin ChildHandle := FindWindowEx(pcMain.ActivePage.Handle, 0, 'TfrmPluginForm', nil); If ChildHandle > 0 Then

Fixed attachment background image flicker/disappear in chrome when coupled with a css transform

China☆狼群 提交于 2019-11-26 17:24:54
I am currently doing a parallax website theme. The background images need to be attached as fixed for certain 'div's and 'section's to avoid jquery indulging in everything. The problem was the background images of the tags below any animated item disappeared while the transformation is being done, only on Google Chrome. Remedy? This has been a very common unsolved mystery. Recently I had the same problem, and '-webkit-backface-visibility: hidden', proved to be less than useless (on my 'fixed' attached background), since the background just disappeared when it was set. ( Additional Info: the

Flickering in a Windows Forms app

主宰稳场 提交于 2019-11-26 16:24:09
问题 I have an app that has a ton of controls on it. And it has a massive amount of flicker, particularly on startup. I applied this fix to it. protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x02000000; // WS_EX_COMPOSITED return cp; } } This worked great - the flickering was reduced by a pretty unbelievable amount. However, the side effect is that the Minimize, Maximize and the Close buttons in the top right of the window don't animate when