redraw

Speeding up WPF resizing/redrawing

坚强是说给别人听的谎言 提交于 2019-12-31 02:48:10
问题 Im noticing a black area displays when resizing even an empty WPF window. Alot of programs on my desktop dont have these issues.. So im wondering, is there a way to set a resize redraw priority or something, and speed up the resizing of WPF windows? or is this problem just unavoidable. 回答1: This is inherit to how WPF works and there is nothing you can do about this. What you're seeing is the DirectX surface resizing and the entire surface redrawing, which takes a considerable amount of time.

Chrome does not redraw <div> after it is hidden

对着背影说爱祢 提交于 2019-12-28 06:17:31
问题 I have some div s that show up on hover, and then are hidden. However, in Chrome (19.0.1084.56 m, Windows XP) when you unhover, Chrome doesn't redraw them as gone until you do something like scroll or resize the window. http://jsfiddle.net/y7NdR/3/ I am aware that certain modifications to my CSS will fix the problem, e.g. removing the position or z-index and overflow properties, but I really don't want to do that--the JSfiddle is paired down from a full site where I need them. Can anyone shed

Android, how to redraw list when the user sets checkbox?

被刻印的时光 ゝ 提交于 2019-12-23 04:34:28
问题 I have a list view and each row contains two textviews and a checkbox. I need user sets just one of checkboxes and if user sets other checkbox, previous checkbox should be cleared and second checkbox can be set. I can generate the list but i don't know why onListItemClick() method does not work? therefore, I don't know which checkbox is set. and my next question is, how can i redraw list after clicking checkbox by user? my code is: package com.Infindo.DRM; import android.app.ListActivity;

Redrawing elements ignores user-scalable=0 in Android Browser. Why?

浪尽此生 提交于 2019-12-21 23:24:13
问题 This is the meta tag <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> Problem - I wanted to force a redraw (to solve another problem) when the orientation was changed by hiding and unhiding a container <div id="redraw>" . Once redraw occurs however, the Android browser now allows me to zoom in even though I had set user-scalable=0 . Why is this? My guess was that Android had changed the meta tag on redraw by setting

Canvas redraws only after loop ends

孤人 提交于 2019-12-19 08:56:08
问题 I have an issue with drawing on canvas in a loop. What I want to achieve is that in each loop the script waits for a few milliseconds, then draws on a canvas, the user can actually see the change, and then the loop repeats. What it does instead is that the user can't see the change, until the for-loop ends. But I have found that if I show an alert window and the script waits for the user to respond, it actually draws the change. How to show "the small changes" in every loop, not just in the

How to update Android ListView with dynamic data in real time?

旧街凉风 提交于 2019-12-18 10:44:34
问题 I have a background thread loading data which I want to display in an Android ListView. The data changes very often (i.e. 1-2 times per second). Sometimes the number of rows in the dataset changes too (but certainly not as often as the data in the cells changes). There are two ways to update the data in the cells, as far as I can tell: Have the background thread notify the UI thread that new data is ready, and the UI thread can then call BaseAdapter.notifyDataSetChanged(). However, I have

reload/refresh subViews - setNeedsDisplay doesnt work

安稳与你 提交于 2019-12-18 04:23:42
问题 i have trouble with setNeedsDisplay. I have an UIView with a lot of sub UIViews, created in Inteface Builder. I have also an Button with IBAction. In this IBAction i want to redraw/reload all UIViews (or all UIElements, like UILabel, UIWebView and so on..) I am doing this, which doesn't work for me, dont know why.. : //redraw the UIViews [self.view_card_0 setNeedsDisplay]; [self.view_card_1 setNeedsDisplay]; [self.view_card_stapel setNeedsDisplay]; //other UI Elements [self.webView_0

Can I suspend redrawing of a form until I have performed all updates?

隐身守侯 提交于 2019-12-17 18:24:59
问题 Using C# and .Net 2.0, I'm using an irregularly shaped form (TransparencyKey, FormBorderStyle = None, etc...) and want to allow "normal" bordered mode. I change the back colour to default from Lime I change FormBorderStyle to FixedSingle I change the TransparencyKey to Colour.None Unfortuanately this looks a complete mess on screen with the image jumping a few pixels down and to the side and Lime green form. I think this is caused by the form being redrawn after each line of code, is it

Redraw a single row in a listview [duplicate]

北城余情 提交于 2019-12-17 03:23:22
问题 This question already has answers here : Android ListView Refresh Single Row (6 answers) Closed 5 years ago . Is it possible to redraw a single row in a ListView ? I have a ListView with rows that are LinearLayout s. I listen to a preference change and sometimes I need to change just one View inside the LinearLayout of a single row. Is there a way to make it redraw that row without calling listview.notifyDatasetChanged() ? I've tried calling view.invalidate() on the view (inside the

D3 update dataset on click and redraw the bar chart

自作多情 提交于 2019-12-14 03:46:19
问题 I am new to d3 as well as javascript, and I am having trouble updating the dataset, as well as redrawing the bars. This is the code I have been looking at so far. http://jsfiddle.net/TwEhT/2/ I have a function clickEvent, that is evoked upon a click on any bar. This function prompts for a value. function clickEvent() { var op = prompt("Please enter the value", ""); }; What I need to do is to update the dataset at the index of the click, and redraw the rects so that they will reflect the