flicker

Win32 GUI flickering on resize

青春壹個敷衍的年華 提交于 2019-12-01 18:18:40
I have a Win32 GUI program with a tab control, each tab having a list view control. There is massive flickering whenever the window is resized. I've tried the following things: Handling WM_ERASEBKGND in the main wndproc and returning TRUE. No effect. Filtering out all WM_ERASEBKGND messages in the event loop. No effect. Setting the WM_CLIPCHILDREN style on the main window. Now when the window is resized the list view control is simply erased to a white background and doesn't redraw. Using DefWindowPos instead of MoveWindow. No effect. Passing FALSE for bRepaint in MoveWindow. Same effect as

Flicker-free expansion (resize) of a window to the left

不羁的心 提交于 2019-12-01 11:15:25
Say you have a form that you can expand to the left to show additional controls: Collapsed: Expanded: The simplest way to achieve this in Delphi is to use alRight as the primary anchor for all controls (instead of alLeft ) and then simply adjust the width and X coordinate of the form. Either you can set the Width and Left properties individually, or you can use a function that sets them simultaneously, like if FCollapsed then SetWindowPos(Handle, 0, Left - Width, Top, 2 * Width, Height, 0) else SetWindowPos(Handle, 0, Left + Width div 2, Top, Width div 2, Height, 0) The problem is that there

Android Home Screen like effect flickering problem when set child.setvisibility(View.Visible)

六眼飞鱼酱① 提交于 2019-12-01 10:11:24
问题 I have made a sample application to flip through different layouts in a viewflipper. XML is basically (pseudo-code) <ViewFlipper> <LinearLayout><TextView text:"this is the first page" /></LinearLayout> <LinearLayout><TextView text:"this is the second page" /></LinearLayout> <LinearLayout><TextView text:"this is the third page" /></LinearLayout> </ViewFlipper> And in Java code, public boolean onTouchEvent(MotionEvent event) case MotionEvent.ACTION_DOWN { oldTouchValue = event.getX() } case

winforms Label flickering

戏子无情 提交于 2019-12-01 00:31:09
I have a problem with the Label control that is terribly flickering. Below is some code to reproduce the problem. How to solve this? UPDATE: The solution for the previous case (a Form contains a Label directly) was to make the form.DoubleBuffered = true. But this is not a generic solution. For example, what should I do in the case of label inside a SplitContainer? this is my real case. UPDATED CODE: DoubleBufferedLabel.cs: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows.Forms; namespace FlickerLabelTest { public class

Prevent unwanted flicker due to innate WebView behavior

冷暖自知 提交于 2019-11-30 23:09:52
I am using an Android WebView to show some HTML content (a String with HTML tags to be precise) generated at runtime. The content has basically an HTML <table ...> showing various stuff and the rows of this table are generated by my program. The HTML content is loaded in my WebView by calling the loadDataWithBaseUrl() method. Now everytime I generate a new row, I create a new <tr></tr> and modify the HTML string to add the newly created row to the table. Obviously I have to recall the loadDataWithBaseUrl() method to reload the HTML and show the latest row. Now there are a few problems here:

How can I reduce PageControl flicker in Delphi?

主宰稳场 提交于 2019-11-30 13:34:12
In Delphi 2009 I found that the flicker of a PageControl - which occurs during resizing of the form - can be reduced by setting its DoubleBuffered property to true. However if I add controls to the PageControl tabsheets, they will flicker regardless of their DoubleBuffered property setting. I have also tried with and without runtime themes enabled. Setting ParentBackground to False for components on the PageControl helped a lot. However this results in a different color of these panel components, they all have a darker background now. Maybe this can be fixed easily (without losing Theme

How can I avoid flicker in a WPF fullscreen app?

只愿长相守 提交于 2019-11-30 08:49:09
I have a WPF application that is a fullscreen kiosk app. It's actually a pretty complicated app at this point, but here's some code that shows the basic idea. Essentially, whenever the user goes from one screen to the next, there's some serious flicker going on bringing up the new window. In severe cases, the desktop is displayed for a few seconds before the new screen shows up. That doesn't happen in this sample code, because it's so simple, but add a few more buttons and styles and you'll see it. App.xaml.cs: public partial class App : Application { Manager mManager; public App() { mManager

Images border-radius doesn't work during css transition

孤街醉人 提交于 2019-11-30 04:46:30
问题 I'm using border-radius: 50%; to make an image round. By default the image is blurred and zoomed (with a hidden overflow) and on hover it will remove the blur and zoom. However, when I use a CSS transition on the element, it temporarily shows the overflow for the duration of the transition. http://jsfiddle.net/jonny_me/cyvL61qx 回答1: I believe on transition, the element gets taken out of document flow, something like a shadow position: relative; and put back in once the animation is complete.

Why do my WinForms controls flicker and resize slowly?

十年热恋 提交于 2019-11-30 03:54:00
I'm making a program where I have a lot of panels and panels in panels. I have a few custom drawn controls in these panels. The resize function of 1 panel contains code to adjust the size and position of all controls in that panel. Now as soon as I resize the program, the resize of this panel gets actived. This results in a lot of flickering of the components in this panel. All user drawn controls are double buffered. Can some one help me solve this problem? To get rid of the flicker while resizing the win form, suspend the layout while resizing. Override the forms resizebegin/resizeend

How can I reduce PageControl flicker in Delphi?

时光总嘲笑我的痴心妄想 提交于 2019-11-29 19:06:41
问题 In Delphi 2009 I found that the flicker of a PageControl - which occurs during resizing of the form - can be reduced by setting its DoubleBuffered property to true. However if I add controls to the PageControl tabsheets, they will flicker regardless of their DoubleBuffered property setting. I have also tried with and without runtime themes enabled. 回答1: Setting ParentBackground to False for components on the PageControl helped a lot. However this results in a different color of these panel