Comments (11)
为什么打开之后马上就关闭?
from awtk.
为了篇幅,我把中间部分程序省掉了,你可以在中间加一个usleep 500ms,但当你连续点击多次按钮,短时间多次触发该事件,就有可能在屏幕上留下残影。我发现这种情况下ret = window_close(busying_win)的ret为0,说明界面是关闭成功了。那么这个残影是怎么导致的?
为什么打开之后马上就关闭?
from awtk.
from awtk.
PC上能重现不,如果能重现,发给我看看。如果不能,你在微信群里问下。
from awtk.
你指的是发个短视频给你看看?
from awtk.
160ff9d42d43ce4b199abc8317a16f58.online-video-cutter.com.1.mp4
from awtk.
你的窗口是透明的,请看下面的文档,有介绍如何解决透明窗口残影的问题
http://awtk.zlg.cn/docs/awtk_docs/FAQ/1.AWTK.html#%E5%BD%93%E5%BA%94%E7%94%A8%E7%94%BB%E9%9D%A2%E5%87%BA%E7%8E%B0%E6%AE%8B%E5%BD%B1-%E6%AE%8B%E7%95%99%E5%9B%BE%E5%83%8F-%E6%97%B6-%E8%AF%A5%E6%80%8E%E4%B9%88%E5%A4%84%E7%90%86
from awtk.
窗口透明是什么意思?我的界面背景是是白色,所以看不见。我设成白色,依然会有残影
from awtk.
你帖子上面的 popup 的背景被设置为 #00000000,这个就是透明的意思啊,你这个白色窗口又是什么意思呢?你把上面的 popup 的背景色设为 #FFFFFFFF 吗?
但是这个窗口是否还要消失呢?如果这个窗口需要消失的话,还是会有整个窗口的残影的,只要你涉及这种多图层的半透融合效果,都需要按照文档里面的做法来处理,否则都是有残影的。
from awtk.
你好,可不可以通过先销毁子控件(比如GIF),再关闭界面的方式消除残影问题?如果是,我发现widget destroy这方面的函数好像都是异步销毁(idle add函数),请问有没有同步销毁控件的函数
from awtk.
重点不在控件上面,是机制上面:
1,一般的 GUI 都不处理 lcd 为透明的情况,因为正常 lcd 就是需要有颜色的,所以对透明的情况就不处理了,所以出现残影的问题。
2,同时由于 lcd 有可能是透明的,导致颜色混合公式要变复杂了(具体你可以谷歌一下),所以导致性能下降的问题,所以默认会不处理这种背景色为半透明的情况的
所以 awtk 默认不处理 lcd 为半透明的情况,所以做了一些优化,所以需要根据文档上面的说明来修改配置达到支持 lcd 透明情况。
from awtk.
Related Issues (20)
- 请假字体加载问题 HOT 1
- AWTK Designer可以帮忙开通下不?我是个人使用,不是公司使用的. HOT 3
- 请问问题label_resize_to_content? HOT 4
- Ubuntu18.04执行scons报: wayland-util.h: No such file or directory HOT 1
- xml布局属性值的介绍有吗
- 关于Linux下资源加载问题? HOT 2
- 【关于AWTK 鼠标卡顿的问题】
- 能否提供Rust语言的绑定 HOT 2
- gif problem
- AttributeError: 'tuple' object has no attribute 'lower'
- 最新版本按键功能异常 HOT 8
- mledit显示文本问题,属性 字体设置为非默认字体时, 失去焦点字才能显示?
- 发生较难排查的偶现奔溃时,awtk有提供什么好的排查方式吗 HOT 1
- 页面提示找不到view_model HOT 3
- 获取不到开启auto_adjust_size属性的label控件高度 HOT 1
- freetype渲染有点问题,truetype内置的bitmap字体数字和字母渲染不正常,中文正常。矢量字体全部正常 HOT 1
- dialog_toast短暂提示信息是否支持弹窗期间收到按键行为自动退出 HOT 6
- Incorrect format specifier HOT 1
- Missing null check HOT 3
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 awtk.