Comments (15)
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.
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.
Does this still happen on the latest version of the package? (You will need go tip if you use gcc 4.9.)
from ui.
Here's my example, using the widgetgallery:
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.
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.
Does it still happen with the latest revision?
from ui.
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.
oh right; change that to NewLabel; will fix now
from ui.
Thanks, now I'm able to build and run the example again, but the redraw issue is still happening.
from ui.
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.
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.
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.
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.
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.
Excellent; thanks! Redraw performance will be fixed soon, too!
from ui.
Related Issues (20)
- 希望能加入菜单和居中功能,谢谢 HOT 5
- Twitching progress bar HOT 2
- use go module
- Can you create Window center func ? HOT 1
- 有2个问题需要帮助/Two questions ask for help HOT 3
- Add Linux/ARM64 support to ‘andlabs/ui’
- how to add a new row to a table?
- Open file dialog crashes HOT 1
- ld: library not found for -lstdc++ HOT 2
- How can we fix windows size ? HOT 2
- How to remove a row from table properly HOT 1
- Avoid cgo HOT 2
- Cross-compilation on Linux for Windows HOT 1
- System notification message
- Reopen a closed window
- Is this project still alive? HOT 2
- collect2.exe: error: ld returned 1 exit status
- Win10下gocv+andlabs/ui同时使用出现以下错误
- possible to use ui load a webview to load html/js/css or remote url as ui HOT 1
- 如何在ui中嵌入式一个浏览器窗口
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui.