387 questions
0
votes
0
answers
102
views
How to refresh label text on tabpage when property changes?
I'm subclassing TabPage in Winforms in order to implement additional behavior, and one of those changes is to add an * to the tab page's label text when the context inside the tab page changes.
The ...
0
votes
1
answer
49
views
C# DataGridView cells with conditional background colors go white when I sort by column
I'm conditionally making the background color of some cells green, yellow, or red. That works. However, every time I sort by a particular column, the cells temporarily revert to a white background ...
0
votes
2
answers
502
views
Generic UIViewControllerRepresentable implementation not reloading based on published property
I'm trying to use a generic wrapper for different UIViewControllers (screens implemented in legacy part of the app in obj-c) and I hit a problem where SwiftUI doesn't redraw the view when the wrapped ...
1
vote
1
answer
615
views
When scrolling in a Menu - Picker, releasing the tap mid-scroll causes it to keep jumping to the top
struct PlainTextPicker<T: Hashable>: View
{
@Binding var selection: T?
let defaultString: String?
var options: [T]
var toLabel: (T) -> String
// body
Menu
{
...
1
vote
1
answer
100
views
Call windows explorer to refresh recycle bin filename
I changed recycle bin name by this code:
HKEY recycleBinHKey;
LPCSTR registrySubkey = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\CLSID\\{645FF040-5081-101B-9F08-00AA002F954E}";
...
0
votes
0
answers
65
views
NSView display causes immediate drawRect call, but subviews changes not shown untill the next NSApp loop step
I have programmatically created NSButton as subviews of main window NSView, and wish to change button text color while some long processing is running.
[myButton setAttributedTitle:colorTitle];
[...
2
votes
1
answer
817
views
Apexcharts <svg> attribute height: Expected length, "NaN" when loading other page
I have a simple chart generated with ApexCharts v3.45.1. This is on a single page application where when I fetch another page via an AJAX call, the original chart in the DOM is removed on purpose (...
0
votes
1
answer
83
views
How to update content of child window (c++) even if window size does not change
The content of my application window is only updated when i change the window size.
Details:
I have a windows application written in c++ and compiled with mingw64.
Within WinMain, i do a CreateWindowW ...
0
votes
1
answer
89
views
Chartjs not rendering when legend display true
I'm trying to use chartjs(pie) to display some data on the screen. On the first load the screen works perfectly, but when trying to update the pie (using the same code in which it was created) it ...
3
votes
1
answer
223
views
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 ...
4
votes
1
answer
1k
views
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: ...
0
votes
1
answer
2k
views
Prevent SwiftUI redrawing all subviews
Here is a simple example of a more complex problem I'm having.
In this case, I have an array of Objects, and a struct that holds the state for them.
In the ContentView, I'm displaying a custom view, ...
0
votes
0
answers
34
views
progress bar not update when read firebase records
I use next code to save firebase records to my array list:
List<PoIs> LocoList = new ArrayList<>();
DatabaseReference ref =
FirebaseDatabase.getInstance().getReference("DATABASE"...
0
votes
0
answers
134
views
Update bitmap on button click
I am drawing a box with certain measurements and updating the angle at which it is viewed which I set as a double 'offset'. I am trying to get the view to change as I click a button to increase its ...
0
votes
0
answers
177
views
Is it normal a stateful widget is called at each frame?
While debugging my stateful widget that reset its state, I was surprised to see it is called at each frame (I mean initState() and build() are called many times).
I guess this is not OK and would like ...
0
votes
1
answer
47
views
how to be sure that the visualization is updated with css changes via javascript?
example..
<input type="button" value="click me" id="p1">
<script>
document.querySelector("#p1").onclick = function () {
this.style....
0
votes
0
answers
115
views
Speeding up the zoom and zoom function of the map drawn with Javascript canvas
I draw a map with Javascript and leave the pictures of the players in each cell of this map.
I've made good progress so far. Now I am zooming in and zooming out in this project.
The length of the map ...
2
votes
0
answers
955
views
Add node to force directed graph in d3.js
I've found a nice example of a force directed graph in d3.js version 7 that I wanted to extend: https://observablehq.com/@brunolaranjeira/d3-v6-force-directed-graph-with-directional-straight-arrow
I ...
1
vote
1
answer
3k
views
Best way to pass widgets to child widget in flutter
I'm new to flutter but I have a widget that wraps a custom painter. I am trying to get it to work so I can supply a Widget to this child widget's constructor and then use that widget as the child of ...
-1
votes
1
answer
93
views
Why :redraw! not take effect in augroup?
I use Vim-Airline plug in Vim, but statuline incomplete display after source .vimrc, so I want use :redraw! in augroup but it not take effect.
augroup Vim
autocmd!
autocmd BufWritePost $MYVIMRC ++...
0
votes
1
answer
327
views
Redraw Highcharts Organization Chart after collapse
I'm using Highcharts to create organization charts that where each node can be collapsed when clicked as in provided example : http://jsfiddle.net/vegaelce/83uktasc/
It works well but it would be ...
0
votes
0
answers
725
views
Vue3 + DataTables redraw the table after delete
I have a Vue3 component that renders tables based on model data. Then I add DataTables functionality to the table to be able to filter and sorting data. Everything works fine. But if I click on the ...
2
votes
2
answers
409
views
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:
...
1
vote
1
answer
123
views
How to redraw a treestore in gtkmm manually (expanders are not correct)?
I have problems with the redrawing of expanders in a TreeStore/TreeView. When I call Example::Customize() for the first time, I can see the expanders. When I call Example::Customize() for the second ...
0
votes
1
answer
315
views
Why does custom NSView redraw when window is resized or moved (drag) to an secondary display (monitor)?
I recently started adding graphic charts to a MacOS application I wrote. The first chart is great and I added a second chart where I ran into a fundamental way the code operates that I did not/do not ...
1
vote
0
answers
883
views
Flutter and GetX - Widget doesn't redraw when I update my RxObject
Here the existant :
My IssueController
Rx<GitlabIssue> selectedIssue = new GitlabIssue().obs;
RxList<GitlabIssue> issues = <GitlabIssue>[].obs;
void changeIssueState(GitlabIssueState ...
0
votes
1
answer
992
views
chartOptions.redraw is not a function in highcharts using angular
This is the html code
<highcharts-chart
*ngIf="!isLoading"
[Highcharts]="Highcharts"
[options]="chartOptions"
[(update)]="updateChart"
style="width: 100%; height: 100%; display: block;...
0
votes
1
answer
47
views
HTML redraw with ajax issue in PHP project
I'm working on a PHP assignment and having trouble getting an ajax call to properly redraw. Everything almost works except I have this one line of code that keeps giving me errors:
$line .= '<input ...
0
votes
1
answer
1k
views
How to make SDL(2) refresh the convas content on resize?
(premise: the (pseudo) code is in Rust, however, answers in any language are accepted, since the Rust SDL library mimics closely the standard one).
I have a very minimal SDL2 template I use when I ...
-1
votes
1
answer
110
views
JavaFX multi linechart and series - curves missing
I would like to plot one serie per chart, and in the end all the series together in one chart, but did not succeed. I'm asking for help. The code is simple and straight forward. Here is my code:
The ...
0
votes
2
answers
323
views
Redrawing widgets in flutter after coming back from another
I have a one MainExerseClass dart class. In which I have ImageSequenceAnimator and LinearPercentIndicator which should be restarted when control comes to the MainExerseClass dart by poping another ...
0
votes
1
answer
2k
views
How can I redraw only certain matplotlib artists?
I'm working on a custom interactive figure for electrophysiology data, anywhere from 10-400 lines (EEG or MEG data channels) plotted as a LineCollection with offsets. It is often useful to have a ...
0
votes
1
answer
2k
views
How do I get BootstrapTable to redraw with updated data?
I have a Table from react-bootstrap that displays a list of devices with several columns. I want to change this so you can reorder by the columns so I switched to BootstrapTable from react-bootstrap-...
1
vote
1
answer
80
views
How do I refresh the question to the user?
I'm currently working through 100 days of code in Swift UI and I'd like to think I'm 99% complete on my day 25 challenge. However, my brain is now a pink mush and I'm stumped.
I'm trying to refresh (...
15
votes
2
answers
35k
views
Plotly: How to update / redraw a plotly express figure with new data?
During debugging or computationally heavy loops, i would like to see how my data processing evolves (for example in a line plot or an image).
In matplotlib the code can redraw / update the figure with ...
12
votes
2
answers
14k
views
LiveCharts WPF Slow with live data. Improve LiveCharts real-time plotting performance
I am investigating the use of LiveChart within a WPF application for the purpose of plotting in real time, temperature measurements.
I have put together a simple line chart example to read data at ...
2
votes
1
answer
273
views
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 ...
0
votes
1
answer
1k
views
dart/flutter: CustomPaint updates at a lower rate than ValueNotifier's value update
I use dart FFI to retrieve data from native side, and show the data with flutter CustomPaint.
I use ValueNotifier to control CustomPaint repaint.
Code: Poll data at a rate
With a state class, I poll ...
3
votes
1
answer
7k
views
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 ...
0
votes
0
answers
402
views
SwiftUI device orientation works on iPhone but not on iPad
i'm playing around with SwiftUI and try to get correct screen size depending on orientation. The solution works fine in simulator on iPhone but lacks on iPad (i have no iPad for testing real). It ...
4
votes
1
answer
2k
views
SwiftUI and excessive redrawing
TL;DR:
Applying visual effects to the contents of a ScrollView causes thousands of requests for the same (unchanging) image for each drag gesture. Can I reduce this? (In my real app, I have 50-odd ...
0
votes
1
answer
360
views
Cannot force DOM redraw using window.getComputedStyle or element.offsetHeight?
I have a function that takes a little while to run, so I'm trying to set the display value of a div (that basically says "please wait") to "block" at the start of the function and then to "none" when ...
0
votes
1
answer
535
views
How to force Mithril to redraw without diffing? (integrating dragula in Mithril)
I am translating a JQuery-based app to Mithril. That app uses Dragula to allow drag/drop to reorder lists.
Dragula reorders the li elements in the DOM.
When the Drop event is fired, I sync the model ...
3
votes
2
answers
355
views
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.
...
0
votes
1
answer
212
views
OpenGL redrawing the object once player reaches the goal
I'm working on a simple 3D maze game where the labirynth itself is gerenated automatically with each start. What I have so far is having the maze which is different with each run, having a character ...
1
vote
0
answers
211
views
How to redraw graphics after screen is refreshed?
I have the following code for my windows forms application and I have issues with redrawing a bitmap on screen after screen is refreshed. I tried using a timer to draw the bitmap on screen but i got ...
0
votes
1
answer
992
views
Highcharts redraw series in chart
I am building following chart
https://jsfiddle.net/marialaustsen/x1s9ndm3/11/
I am trying to create a click function for the All button, but instead of hide the other series and show only one serie, ...
1
vote
0
answers
40
views
Redraw window return immediately without painting whole window in Excel.exe process in win32
I have excel.exe process now from that process i got the hWnd of that opened excel.exe.
Now I want to redraw that opened excel worksheet. So i use this code to force redraw whole window , So I can ...
-1
votes
1
answer
279
views
Pygame: Character not appearing on screen
I have been trying to get this code to work for weeks and cannot figure out the issue. I have a list of images, that I am using to animate my character. THe game worked fine at first, but ever since I ...
2
votes
1
answer
4k
views
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 ...