Coder Social home page Coder Social logo

Redraw problems on Windows about ui HOT 15 CLOSED

andlabs avatar andlabs commented on July 24, 2024
Redraw problems on Windows

from ui.

Comments (15)

andlabs avatar andlabs commented on July 24, 2024

Known issue (it's in todo.md). I have no idea what's going on: the closest thing I could come up with is MoveWindow()'s bRepaint argument doesn't actually redraw immediately, but the only reference I could find for that is some Stack Overflow answer given by the person who asked the question :S I'll probably need to start asking Microsoft people directly... maybe

from ui.

boppreh avatar boppreh commented on July 24, 2024

So far I have only seen this bug when controls overlap each other, so it shouldn't be a problem in finished applications.

from ui.

andlabs avatar andlabs commented on July 24, 2024

Does this still happen on the latest version of the package? (You will need go tip if you use gcc 4.9.)

from ui.

adam-p avatar adam-p commented on July 24, 2024

Here's my example, using the widgetgallery:

redraw

The amount of overall flickering varies. In that images there isn't a lot, but often the entire view flickers while resizing. As you can see, the grid disappears and only reappears when clicked on. The set of icons at the bottom is sometimes briefly visible during resizing, but is otherwise not visible.

from ui.

andlabs avatar andlabs commented on July 24, 2024

I think redraw flicker is due to the GC. I'm not too sure; when I finish this container rearchitecture things will be somewhat simpler and I can try again.

Table hiding is a weird one; it's either a Z-order issue or something screwy in comctl6. Again, will check after the container restructure (which WILL make things easier; gives everything a straight Z-order)

from ui.

andlabs avatar andlabs commented on July 24, 2024

Does it still happen with the latest revision?

from ui.

webmaster-gostec avatar webmaster-gostec commented on July 24, 2024

I'm using Windows 7, 64 bits.
I downloaded the latest version few minutes ago and now I can't build the widgetgallery example anymore. The error message is:
.\main.go:31: undefined: ui.NewStandaloneLabel

from ui.

andlabs avatar andlabs commented on July 24, 2024

oh right; change that to NewLabel; will fix now

from ui.

webmaster-gostec avatar webmaster-gostec commented on July 24, 2024

Thanks, now I'm able to build and run the example again, but the redraw issue is still happening.

from ui.

andlabs avatar andlabs commented on July 24, 2024

Okay, this is super weird. It's definitely some wacky redraw issue that's either affecting just the Table and Area or something else entirely. Hm...

Does it still happen if the Table/Area are moved to the top of the Stack? Or does it happen to different controls in that case? (Be sure to alter the SetStretchy() indices appropriately.)

from ui.

webmaster-gostec avatar webmaster-gostec commented on July 24, 2024

I moved the Table and the Area on top of the stack and updated SetStretchy indices. Now the Area is redrawn correctly every time, but the Table has still problems: during resize i can see it flickering and when i release the mouse button sometimes is redrawn, other times it is not. Looks like the order in which the parent (the main window?) and the child (the Table) redraw changes cyclically.

Next time I'll try to swap the position of the Table and the Area and see whant happens.

from ui.

webmaster-gostec avatar webmaster-gostec commented on July 24, 2024

Just swapped the Table and the Area putting the Area on top of the stack and the Table in second position. Again, the Area redraws correctly while the table does not.

from ui.

andlabs avatar andlabs commented on July 24, 2024

Does this specific issue still occur with the current package? You'll have to rewrite the example programs, or at least recreate the UI above.

I know redraw performance is still bad, but that's a separate issue.

from ui.

boppreh avatar boppreh commented on July 24, 2024

I cannot resize the window smaller than the size of the widgets inside, and thus they never overlap. It's considered fixed for me. There's also no visible flickering anymore.

Thank you!

from ui.

andlabs avatar andlabs commented on July 24, 2024

Excellent; thanks! Redraw performance will be fixed soon, too!

from ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.