flicker

Flickering Java GUI in Ubuntu 14.04

守給你的承諾、 提交于 2019-12-13 18:43:33
问题 I stumbled upon a problem I cant solve nor can I understand. I'm writing a simple 2D game using Java 1.8.0_31 with java.awt.Canvas on Ubuntu 14.04. The problem is that I get this unbearable flickering(an issue I never had on Windows), to make sure my code is not the problem I wrote a small test program with a moving circle... The test loop: public void run() { long startTime = System.currentTimeMillis(); long tick = 1000; int fps = 0; int upd = 0; double nanoScale = 1000000000.0 / 60; double

background color of a control (winapi)

余生长醉 提交于 2019-12-13 04:22:49
问题 Here is what I'm talking about:program window I know, this topic was several times published, but I can't find any good solution. My problem is 1.: -flickering controls showing time and histogram (static, not double bufferred). 2.: -I can't change background of controls (labels, trackbar buddies, histogram bkgnd) from white to LTGRAY_BRUSH. And here's some code: case WM_PAINT: PaintProcedure( hdcClock ); SetBkColor(hdcWindow, RGB(255,220,180)); TextOut(hdcWindow,260,10,TEXT(" -- CAMERA WINDOW

Page Flickering on Dropdown change

时光总嘲笑我的痴心妄想 提交于 2019-12-13 01:24:18
问题 I'm using a drop down list to select the customer. The page flicker twice on selecting the customer and I don't know how to rectify it. Can someone please help me solve the problem? My Drop Down SelectedIndexChange Code protected void ReceiverDropDown_SelectedIndexChanged(object sender, EventArgs e) { if (ReceiverDropDown.SelectedValue != null && ReceiverDropDown.SelectedValue != "0") { string benId = ReceiverDropDown.SelectedValue; Page.ClientScript.RegisterStartupScript(this.GetType(),

d3 flickering Text on setInterval when update data from csv

时光怂恿深爱的人放手 提交于 2019-12-12 18:42:24
问题 I am new at d3 and learning alot. I have a little problem with updating my data, that i'm getting from a csv file. I use setInterval() to update the data every second. When it removes and Insert the data again, it flickers for some milliseconds (the table goes away and a new table is generated). What am I doing wrong? How can i get rid of the flicker? Thanks for Helping! :-) Here my code: <script type="text/javascript"> d3.text("data.csv", function(data) { var parsedCSV = d3.csv.parseRows

Prevent unwanted flicker due to innate WebView behavior

好久不见. 提交于 2019-12-12 07:23:14
问题 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

running two jquery events at the same time causes flickering

99封情书 提交于 2019-12-12 03:54:59
问题 I have two functions that I want to happen at the same time. Function 1 is a window scrollTop and function2 is an absolute element hide (#elem1). These two functions take place immediately after an absolute element (#elem2) is placed on top of (#elem1). Running these functions at the same time executes as: elem1 scrolls top elem1 is hidden elem2 scrolls to top This causes an instant flicker, blink on ios and I want to avoid it. I would have expected that changing the order of the functions

Image Flickering only in Firefox

谁说胖子不能爱 提交于 2019-12-12 02:33:47
问题 I have a popop on my page with cross button image. When I open the popup for the first time everything is fine. But when I close the popup and open it again, the cross button image flickers. How can I Fix this. I am facing this problem only in firefox. Are there any configuration settings which i need to make? 回答1: Got the issue. A button click function was written twice because of which the popup was loading twice and the image flickering happened. 来源: https://stackoverflow.com/questions

Avoid Flickering on a dialog that moves its controls on resize

懵懂的女人 提交于 2019-12-12 01:28:19
问题 I have a popup dialog( CDialog ) that handles WM_CTLCOLOR message to color itself. It is having some controls (like bitmap buttons) that draws themselves using OwnerDraw. It is also having a control that displays an image with size that takes up to 70% of the dialog. When user re-sizes the dialog, some of the controls in the dialog should be re-positioned (not re-sized) . It also involves re-sizing of the image inside the dialog. As the re-sizing of image makes the whole process slow,

Anyway to remove text flickering in this custom ProgressBar class?

孤者浪人 提交于 2019-12-11 19:39:59
问题 This is what I made to have string displayed on the bar: public class ProgressBarWithText : ProgressBar { const int WmPaint = 15; SizeF TextSize; PointF TextPos; public ProgressBarWithText() { this.DoubleBuffered = true; this.TextChanged += ProgressBarWithText_TextChanged; this.SizeChanged += ProgressBarWithText_SizeChanged; } public override string Text { get { return base.Text; } set { base.Text = value; } } void RecalcTextPos() { if (string.IsNullOrEmpty(base.Text)) return; using (var

Java Applet flickering when running? (not everybody sees flickering)

余生颓废 提交于 2019-12-11 19:33:34
问题 I have a Java Applet that is flickering constantly for me every time the GUI is redrawn. Most people don't see the flickering. Others are able to run the applet without any problems at all but I am not. I am not sure if this is a problem with the way in which I am redrawing the UI or if this is a problem with my JRE or what. I've exhausted myself looking up other people's similar problems but I have not yet seen an answer that applies here. I have shortened the applet I am running down to a