完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
背景:MPLAB X IDE 4、XC32 V1.44、和声V2.04、PIC32 MZ2064 DAG176、NEWHAVEN 4.3“显示四线电阻触摸屏(ST722T2内部控制器)、内部DDR。我有几个简单的问题。第一个是如何处理弹出窗口。它能像创建窗口一样简单,但是把它放在屏幕的逻辑边界之外,并有一个按钮切换它的坐标,使得它在需要的时候“出现”?我尝试了一个按钮,可以改变它的坐标,结果很甜。第二,有没有限制层到底有多复杂?因为我需要几个配置按钮来弹出几个按钮,它会变得相当复杂。如果它依赖于堆和DDR,那么我对放弃使用单独的屏幕来避免时间惩罚的想法非常有信心。
以上来自于百度翻译 以下为原文 Background: MPLAB X IDE 4.00, XC32 v1.44, HARMony v2.04, PIC32MZ2064DAG176, Newhaven 4.3" display with 4-wire resistive touch panel (ST7282T2 internal controller), internal DDR. I have a couple of simple questions. The first is how to handle a popup window. Can it really be as simple as creating the window, but placing it somewhere outside of the logical boundaries of the screen and having a button toggle its coordinates such that it "appears" when needed? I tried this with a button that could have its coordinates shifted and the results are pretty sweet. Second, are there limits on just how complex a layer can be? Since I need several popups for several of the configuration buttons, it will get fairly complex. If it's dependent on the heap and DDR then I feel pretty confident about ditching the idea of using a separate screen for anything to avoid the time penalty. |
|
相关推荐
3个回答
|
|
您可以保存/推送显示字节,将弹出到缓冲区中。当完成时,将POPUP.Reule/Poph缓冲区显示到显示器。这就是我如何做的,但这是我自己的ST7920驱动程序。
以上来自于百度翻译 以下为原文 You can save/push the display bytes what the popup will occupy into a buffer. Display the popup. Restore/pop the buffer to the display when done. That is how I do it but that is my own driver for the st7920. |
|
|
|
你好,是的,你可以在屏幕上有一些元素,然后在你想要的时候重新排列它们。您也可以将POP放置在不同的层上,并使整个层不可见直到需要。所以有不同的方法让你进入同一个空间。你可以查看咖啡机演示的例子,我们故意从屏幕上(多个窗口小部件)开始。现在它没有帮助,但是在和谐V2.05中,我们已经修改了库,以帮助改变屏幕的性能。所以在未来你应该会更快。这将在十一月左右公开。
以上来自于百度翻译 以下为原文 Hello, Yes, you can just have elements off the screen and reposition them when you want to. You can also put the pop upon a different layer, and make the entire layer invisible until needed. So there are different approaches to get you to the same space. You can check out the coffee_maker demo for examples where we purposely started with the trays (of multiple widgets) off the screen. Not that it helps right now, but in Harmony v2.05 we have reworked the library to assist with the performance in changing screens. So it should be faster for you in the future. That will be available publicly in about November. |
|
|
|
我在ASM中编写了驱动程序,因为我需要快速滚动和位图。还使用剪辑,使得GFX不会出现在剪辑区域之外。可以在位图内显示位图,像cookie切割器。位图的磁带看起来不错。
以上来自于百度翻译 以下为原文 I wrote the driver in asm because I wanted fast scrolls and bitmaps. Also used clipping so that that gfx's do not appear outside the clipped area. And can display a bitmap inside a bitmap, like a cookie cutter. Bitmapped ticker tape looks good. |
|
|
|
只有小组成员才能发言,加入小组>>
5150 浏览 9 评论
1994 浏览 8 评论
1924 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3165 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2221 浏览 5 评论
716浏览 1评论
602浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
488浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
617浏览 0评论
515浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-15 07:00 , Processed in 1.151441 second(s), Total 82, Slave 65 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号