flicker

D3DImage and SharpDX flickering on slow hardware

浪子不回头ぞ 提交于 2019-12-21 05:16:18
问题 I am using the SharpDX.WPF project for the WPF abilities, it seems like an easy to understand low-overhead library, compared to the Toolkit that comes with SharpDX (which has the same issue!) First: I fixed the SharpDX.WPF project for the latest SharpDX using the following: https://stackoverflow.com/a/19791534/442833 Then I made the following hacky adjustment to DXElement.cs, a solution that was also done here: private Query queryForCompletion; public void Render() { if (Renderer == null ||

How to avoid flicker while handling WM_ERASEBKGND in Windows dialog

半腔热情 提交于 2019-12-19 15:41:32
问题 I have a dialog that resizes. It also has a custom background which I paint in response to a WM_ERASEBKGND call (currently a simple call to FillSolidRect). When the dialog is resized, there is tremendous flickering going on. To try and reduce the flickering I enumerate all child windows and add them to the clipping region. That seems to help a little -- now the flickering is mostly evident in all of the child controls as they repaint. How can I make the dialog flicker-free while resizing? I

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

大憨熊 提交于 2019-12-19 10:35:12
问题 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)

How can I avoid flicker in a WPF fullscreen app?

徘徊边缘 提交于 2019-12-18 13:16:04
问题 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

flicker free tab control with WS_EX_COMPOSITED

时间秒杀一切 提交于 2019-12-18 09:21:30
问题 I have a VS2008 C++ application for Windows XP SP3 developed using WTL 8.1. My application contains a tab control that flickers when the application border is resized. My window hierarchy looks like this: CFrameWindowImpl CMainFrm |-CSplitterWindow Splitter |-CTabView Configuration Tabs | |-CDialogImpl Configuration View 1 | |-CDialogImpl Configuration View 2 | |-CDialogImpl Configuration View 3 |-CDialogImpl Control View The solution I'm trying is to make the CFrameWindowImpl derived class

Prevent WPF window flicker

夙愿已清 提交于 2019-12-18 08:53:26
问题 I've got a borderless WPF window that needs to be able to hide one of its controls and shrink the window at the same time. The problem is that it looks terrible. Here's what I am doing now: private void btnShowHideTopBar_Click(object sender, RoutedEventArgs e) { if (commandTopHide == true) { txtblkShowHideTopBar.Text = "Show Top Bar"; commandTopHide = false; myWindow.Left = 1100; myWindow.Width = 180; RSide.Width = new GridLength(0, GridUnitType.Pixel); } else if (commandTopHide == false) {

Resizing window causes black strips

假如想象 提交于 2019-12-18 06:57:57
问题 I have a form, which sets these styles in constructor: this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); And I draw some rectangles in Paint event. There are no controls on the form. Hovewer, when I resize the form, there are black strips at right and bottom of the form. Is there any way to get rid of them? I've tried everything,

Flickering white on canvas

这一生的挚爱 提交于 2019-12-14 03:23:37
问题 I figured out a solution minutes after posting, but due to low reputation I couldn't delete the post For the fun of it I decided to start working on something which might turn into a game at some point. I'm trying to draw some circles and move them in a given direction currently. This causes flickering. It's very likely that I oversee something very basic but I can't figure out why it doesn't render smoothly. My board class looks something like (removed what I deemed unnecessary): public

On hover show DIV flicker

泪湿孤枕 提交于 2019-12-14 00:28:03
问题 I am facing very annoying problem. I have 2 div's like bellow, first div is product image, and second one is overlay that should be shown when user hovers over product image. It does work, but when image is hovered, overlay doesnt stop flickering. I tried few "hacks" by setting opacity and nothing works. <div class="product-container"> <div class="product-image"><img src="http://placehold.it/200x200"> <div class="overlay">PRICE</div> </div> URL is http://jsfiddle.net/MZ3eE/ I know JS could be

Problem with surfaceview

此生再无相见时 提交于 2019-12-13 19:29:49
问题 I have a problem with the flickering. Here is my code. public class Tutorial2D3 extends Activity { Panel panel; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); panel = new Panel(this); setContentView(panel); } @Override public boolean onCreateOptionsMenu(Menu menu) { menu.add(1, 1, 1, "Clean Canvas"); return super.onCreateOptionsMenu(menu); } @Override public boolean onMenuItemSelected(int