Describes the update of a display (or a part of it, like a program window) to show the latest version of the data.
Questions tagged [redraw]
385 questions
4
votes
1 answer
Design-Time Redraw
I created a custom listview control. I set it to add a new button every time I add a new Column.
When I run the program containing my custom control, the column buttons are placed properly. However, at design time, when I add or remove columns, the…

rusoaica
- 49
- 1
3
votes
1 answer
When I minimize the window and restore it again the window has a black background, I can't figure out why
I'm new in programming Windows Application, and I have simple window with some checkboxes, text and button. Everything seems to work as it should, but when I minimize the window and restore it again the window has a black background, I can't figure…

Sigurður Sigurðsson
- 33
- 3
3
votes
1 answer
How to design an efficient view model for SwiftUI?
I have the following view model:
class ViewModel: ObservableObject {
@Published var brightnessValue: Double = 0.0
@Published var saturationValue: Double = 0.0
@Published var contrastValue: Double = 0.0
}
In the UI layer I then have 3…

Paulo Mattos
- 18,845
- 10
- 77
- 85
3
votes
1 answer
Progressively append and plot new data to a matplotlib line
Question
What is the way to append data to an existing matplotlib line and plot only the added portion of the line without redrawing the whole line?
Comments
Following is a simple code that plots the redraw time vs. the number of times we append a…

pch
- 533
- 6
- 11
3
votes
2 answers
Shape does not redraw itself
How do I redraw Shape with new data when this data is new "source of truth"?
The following shows, that only "Text("...") view gets updated with the ObservedObject. The Shape draws itself only once.
import SwiftUI
struct ContentView: View {
…

matyasl
- 295
- 2
- 11
3
votes
1 answer
Why does NSTextField not redraw the background of focused fields?
I'm running into a weird problem. I have two NSTExtFields representing a username and a password. When I get an incorrect username/password combination, I set an instance variable stating so in the controller of the view containing those two fields.…

nomothetis
- 233
- 2
- 7
3
votes
1 answer
How to: Overlapping of gray dots colors in pygame
i am working on a pygame with random moving dots. The dots are moving across a black surface. The aim is to add upp the RGB-Colors of the dots in case they overlap. In the following image are 3 dots which do overlap. How can i add up the RGB of the…

qwertz
- 619
- 1
- 7
- 15
3
votes
1 answer
Items not drawing on Resize of Viewbox, Silverlight
I am currently designing a layout app in Silverlight and have a Canvas inside of a Viewbox. I add shapes to the canvas and they display properly, when I resize the viewbox to zoom in at 2x the height and width, everything still draws properly.
The…

Ty Rozak
- 471
- 6
- 19
3
votes
1 answer
How to force android view to redraw it's background-drawable? / probably an animation is blocking it to work properly
Is there a way to force an android view to redraw it's background?
I have set a drawable shape with a gradient as background which works fine but after changing the view's height you can see those ugly gradient steps.
What can I do?
I tried…

ShadowMare
- 2,087
- 2
- 25
- 27
3
votes
3 answers
I want the activity to refresh/redraw after dialog fragment is dismissed.. How can I achieve that?
This is how it looks at first:
This is the dialog fragment that pops when "edit" is pressed and I want The change to be seen in the activity after the dialog fragment is dismissed.
public Dialog onCreateDialog(Bundle savedInstanceState) {
…

Nishan Khadka
- 385
- 1
- 2
- 14
3
votes
2 answers
Update canvas in WPF
I want to show the animation of my moving ant on the canvas. Therefore the position of an ellipse should be changed. The calculation of the steps works, but I can't show the change of the ellipse position in the MainWindow. Only after the…

kame
- 20,848
- 33
- 104
- 159
3
votes
3 answers
Forcing windows to redraw the entire screen
I am currently drawing graphics with GDI but I need to be able to redraw the entire desktop/screen. My graphics are drawn on the screen but when I would move a plotted pixel it would become a line because I am not redrawing the screen ( well windows…

Yonathan
- 1,253
- 1
- 17
- 29
3
votes
1 answer
Unity - Repaint/Redraw Scene after gameObject instantiation
Unity: 5.1.1f
Language: c#
When i instantiate a gameObject inside a Assets/Editor/ file, it doesn't appear in Scene until i select another scene's gameobject.
I've tried calling some methods…

FrakyDale
- 647
- 8
- 22
3
votes
1 answer
Redraw balloon tip and tooltip in C#?
I wrote a C# application that is a simple countdown timer. I use it myself to keep track of cooking time (not to forget about boiling pasta) and other purposes.
It works in the tray. When hovering the icon it shows remaining time as a tooltip. When…

Sergiy Belozorov
- 5,856
- 7
- 40
- 73
3
votes
3 answers
How to redraw the picture while moving windows in openGL?
I have drawn a picture with openGL on my windows. Now whenever I hold the mouse button on the windows and move it, my picture always got distorted. I don't know what function in openGL that can help me redraw the picture while the windows is moved.…
user188276