Microchip
直播中

张俊

7年用户 180经验值
私信 关注
[问答]

Harmony Graphics Lib如何创建弹出窗口?

我使用的是和谐的V1.10图形库和一个LCD显示。我需要创建一个弹出窗口,它会出现在当前屏幕的“前面”。但是,在下一个屏幕上的任何原始对象在弹出窗口上呈现。T不是我需要的效果。有人能提出一个很好的方法来解决这个问题吗?谢谢,Phil。

以上来自于百度翻译


      以下为原文

    I'm using the HARMony v1.10 Graphics library with an LCD display.
I need to create a popup window which would appear 'in front' of the current screen.
However, any primitive objects on the underlying screen are rendered 'on top' of the popup window.

I can make it work by using a popup 'screen' but that is not the effect I require.

Can anyone suggest a good method of working round this.

Thanks,
Phil

回帖(3)

陈晨

2019-4-24 15:52:03
它实际上不支持这个。如果你需要的效果,你需要编码它。不要清除旧屏幕,只是新的矩形。启动新的屏幕。重新处理旧的屏幕,用记住的值。你正在使用HGC,这可能会使它更难做到。2.0x有这个特性吗?

以上来自于百度翻译


      以下为原文

    It really does not support this natively.
If you need the effect you would need to code it.
Do not clear the old screen, just the rectangle of the new one.
Launch the new screen.  
Handle it.
Relaunch the old screen, with the remembered values.
It you are using HGC, it may make it harder to do.
 
Does 2.0X have this feature?
举报

魏紫瑜

2019-4-24 16:03:35
是的,和声图形作曲套件(在V2.02b和后面)具有这个函数本身。每个小部件都可以放入绘图树中,并按照选定的顺序覆盖。每一个都有一个“可见”特性,它可以让你查看它。事件管理器可以用来控制效果,无论是从图形引擎内的事件(如菜单中的函数)还是从外部源(通过启用宏)来控制。

以上来自于百度翻译


      以下为原文

    Yes, Harmony Graphics Composer Suite (in v2.02b and later) has this function natively.  Each widget can fit into a drawing tree, and overlay in the order selected.  Each also has a 'visible' characteristic, which can enable you to view it or not.  The events manager can be used to control the effect, either from an event within the graphics engine (say a function within the menu) or from some external source (by enabling a macro).
举报

黄登高

2019-4-24 16:10:15
谢谢你的回复。看来我必须按照NKurzman的建议来处理这个问题。WIDGET可以按需要的顺序分层,但是任何图元都会显示在顶部。

以上来自于百度翻译


      以下为原文

    Thanks for the replies.
It appears that I'll have to handle this myself as suggested by NKurzman.
Widgets can be layered in a required order but any primitives will always be displayed on top.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分