question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Toplevel repaint issue.

See original GitHub issue

There are some cases where we only need to clear a certain region of the screen. We don’t need clear all screen if it only a minor part needed to repaint. So I think that the Redraw methods had a region as parameter because it could be any frame dimensions we want to pass to it. So in the image you see that the TextField at the bottom and the StatusBar disapear and there are not redrawed again while dragging. Without these features it’s not worth it developing dragging at all. I think that my original suggestion to resolve this is better.

background

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
tigcommented, Jun 3, 2020

I now see what @bdisp has been trying to articulate in this case. My apologies for being persistent on this, but after pouring over the entire project I’m hyper sensitive to people using the APIs correctly.

Now that I’ve authored a comment in the code in Window.MouseEvent, I understand and see that @bdisp was correct:

	// SetNeedsDisplay takes super-view relative coordinates, so use Frame
	Application.Top.SetNeedsDisplay (regionToRedraw);

	// Redraw the entire app window using just our Frame. Since we are 
	// Application.Top, and our Frame always == our Bounds (Location is always (0,0))
	// our Frame is actually view-relative (which is what Redraw takes).
	Application.Top.Redraw (Frame);
0reactions
BDispcommented, Jun 3, 2020

@tig I really appreciate your great work with no doubt and I congratulate you for your great job, but for now I don’t see other way to work around it, for now. We can wait until discovery another solution. In the meanwhile if you want I can close the PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why is overriding paint in a top-level container so bad?
Under Swing, top level containers are not double buffered. This means that repaints tend to flicker as each element is rendered directly to ......
Read more >
MacOSX and iOS
Hi, I'm seeing a hard to reproduce repaint issue when I'm using the JUCE_COREGRAPHICS_DRAW_ASYNC=1 flag on a JUCE window with a native title ......
Read more >
How To Refresh Toplevel Window That Does Not Have ...
I have severall toplevel windows in my app. When a user selects a menu item to change the time format I want it...
Read more >
Don't repaint window every frame · Issue #646
We currently repaint the whole window on every frame. ... It seems like the Paint callback in ITopLevelRenderer passes the top level visual ......
Read more >
repaint / redraw Entire window at once | ICS MotifZone
I need to invoke a redraw (repaint) operation/event on a top level menu window and all its attached children widgets.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found