Questions tagged [redraw]

Describes the update of a display (or a part of it, like a program window) to show the latest version of the data.

385 questions
2
votes
1 answer

how to force redraw contents inside a NSScrollView

I put NSTextView + NSImageView + NSMatrix + NSTextView in a NSScrollView. And I scroll this scrollview to top using following code - NSPoint pointToScrollTo = NSMakePoint(0, NSMaxY([[singleScrollView documentView] frame]) - [[singleScrollView…
Saurabh
  • 22,743
  • 12
  • 84
  • 133
2
votes
1 answer

Force call to OnCustomDraw with CDDS_ITEMPREPAINT

I have a custom slider in a toolbar. In order to show the slider in the toolbar it is wrapped in a CMFCToolBarButton derived class. The slider uses OnCustomDraw to perform its rendering: BEGIN_MESSAGE_MAP(CCustomSlider, CSliderCtrl) …
cbuchart
  • 10,847
  • 9
  • 53
  • 93
2
votes
1 answer

Google chart does not redraw the chart based on a new Ajax filter

How can I make this code update the google chart with new Ajax call data? When I submit from the dropdown list I see the updated data in the echoed results but the chart does not update. It seems like I have place the submit code in the wrong…
Nissar
  • 23
  • 4
2
votes
1 answer

UIView force redraw in real-time (drawing app)

I'm working an app for drawing. I'm collecting the strokes as points and draw those points into the drawRect method of my UIView subclass. I collect the point by overriding touchesBegan, touchesMoved and touchesEnded. In all this those methods I…
Cesar
  • 4,418
  • 2
  • 31
  • 37
2
votes
2 answers

Rotating video messes up MediaControls, android

When I rotate my device, the video controls dont resize properly. I made a video of what I am talking about here: http://www.youtube.com/watch?v=FgRythmUo3A Is there a way to "redraw" the controls? I made this change to my manifest so I could…
Ronnie
  • 11,138
  • 21
  • 78
  • 140
2
votes
1 answer

Flutter difference between Timer and AnimationController uses

I have animations working and a Timer. I understand that the Timer is the best way to get the Second Ticks ticking at exactly the second mark. For Animations I have used both AnimationController and the Timer with a small duration time (100ms). I…
2
votes
1 answer

Problem with TransparencyKey in Windows Forms C#

I'm trying to have in .NET 2.0 a transparent form, that is on top, invisible for mouse clicks but is possible to draw on it. I can easily reach this by setting the TransparencyKey to background color of the form. But there is one very easy to…
Hugo
  • 21
  • 2
2
votes
1 answer

How to add vertexes in OpenGL scene when its already loaded?

I'm using python to make a Rubik's cube application with OpenGL and pyGame. I can see the cube and I want to press a button and load the colors, but colors are not shown. (I color each little cube alone but I don't think that it matters). If I call…
Jimmy
  • 33
  • 4
2
votes
1 answer

How do you redraw an object created from a class in p5.js javascript

I have a class which draws a tree, however I would like to be able to draw another tree when the mouse is pressed, however I can't currently as redraw(); simply adds a tree on top of the current canvas. I would like to be able to draw a new tree…
2
votes
1 answer

Updating only a portion of View without using invalidate(Rect)

In my current application I am using invalidate(Rect) to update a portion of my current view but as of API 28 this method is deprecated. So my questions are: 1.Are there any other way to update only a portion of view? 2.What are the consequences of…
titor
  • 35
  • 1
  • 8
2
votes
1 answer

Xamarin Forms - Redraw view

I am writing an app using Xamarin Forms XAML, and I need a way to redraw the view. I have a layout containing multiple Labels and a ListView. I also have a button that when pressed calls an API to download a new set of data which needs to update the…
plingingo
  • 121
  • 2
  • 13
2
votes
2 answers

Invalidate is not redrawing the screen. Android

BufferedReader hl = new BufferedReader(new InputStreamReader(getResources().openRawResource(R.raw.lines))); while(hl.ready()){ showLines.append(hl.readLine()+"\n"); showLines.invalidate(); …
Mitchell
  • 929
  • 2
  • 11
  • 34
2
votes
1 answer

Redraw Drawable by timer using invalidateSelf() not working

I have my class implements Drawable. I need to redraw it periodicaly to get some "blink" effect. I am using timer.schedule to schedule invalidateSelf() but nothing happend. private class DrawableImpl extends Drawable { private boolean blinkFlag…
hatesms
  • 750
  • 1
  • 9
  • 27
2
votes
1 answer

Vue.js - Highmaps - Redraw map on series change

I have a highmaps 'chart' and the only thing that I want is to redraw the whole map inside an external function. Let me explain better. The map draws itself immediatly when the page loads up but I fetch some data from an external service and set it…
Eugenio
  • 1,013
  • 3
  • 13
  • 33
2
votes
0 answers

when drawing to a window, are the previous contents usually discarded? and what's the best way of preserving them?

I'm trying to speedup the rendering (both latency and throughput wise) in the Inkscape vector image editor so that it can be more artist friendly. I'm trying to decide whether to draw directly to the window or draw to an intermediate offscreen…
Yale Zhang
  • 1,447
  • 12
  • 30