迪文科技论坛

 找回密码
 立即注册
搜索
查看: 301|回复: 9

[Question]Popup menu wouldn't include Text display control ?

[复制链接]

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
发表于 2023-8-16 17:51:52 | 显示全部楼层 |阅读模式
Hi, I'm testing my popup to show the dynamic messages,
and prepared a demo to confirm it.



I just call my popup dialog with popup menu module and no problem to show it.
But I also prepared one <Text display> module on my popup dialog to show a string (which will be changed with the different situation),
it wouldn't show the text (initialized with "message" string, x:16, y:32, GBK).

Sure, I provided the LARGE space to show the string for my <Text display> module,
because I got an issue to show it (in my old question you can find it why I provide LARGE space ).

So I wonder whether I can use the Text display module on my popup dialog or not ?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0

主题

692

回帖

8656

积分

论坛元老

Rank: 8Rank: 8

积分
8656
发表于 2023-8-16 19:18:44 | 显示全部楼层
Only basic touch controls can be used on pop-up menu controls
沧海横流,方显英雄本色。
回复

使用道具 举报

0

主题

763

回帖

8630

积分

论坛元老

Rank: 8Rank: 8

积分
8630
发表于 2023-8-16 22:27:44 | 显示全部楼层
本帖最后由 DWIN-ARK 于 2023-8-16 23:27 编辑

Dear,
Annex 1 is implemented through page switching.
When the 0x5000 variable is refreshed, switch to page 1 operation.


Annex 2 By calling a part of the touch implementation.
The 0x5000 variable can be refreshed arbitrarily, and the 0xD4 instruction can be used when necessary to trigger the simulation.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-8-17 13:04:13 | 显示全部楼层
Lreamy 发表于 2023-8-16 19:18
Only basic touch controls can be used on pop-up menu controls

I see it's not possible to use on popup.
Thanks for your confirmation, Lreamy!!
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-8-17 13:05:50 | 显示全部楼层
DWIN-ARK 发表于 2023-8-16 22:27
Dear,
Annex 1 is implemented through page switching.
When the 0x5000 variable is refreshed, switch  ...

Wow, great demo package to understand, DWIN-ARK !! Got it and thanks!

I prefer to use popup to show dynamic text strings,
but I need to use page switching.
回复

使用道具 举报

发表于 2023-8-17 13:30:32 | 显示全部楼层
The easiest way to achieve dynamic text display on pop-up menus is to use page cutting. The logic is also simple, but it will take up a bit more memory.
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-8-17 16:44:29 | 显示全部楼层
沃特玛贞帥斯基 发表于 2023-8-17 13:30
The easiest way to achieve dynamic text display on pop-up menus is to use page cutting. The logic is ...

Yes I agree that page cutting (or switching) is easy but it requires more memory,
as DWIN-ARK is showing on Annex 1)'s.
Maybe I also need to try a hard way ;)
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-8-17 16:47:19 | 显示全部楼层
DWIN-ARK 发表于 2023-8-16 22:27
Dear,
Annex 1 is implemented through page switching.
When the 0x5000 variable is refreshed, switch  ...

@DWIN-ARK, I'm sorry but could you explain about your 'Annex 2' in more detailed ?
Especially, does original page(caller, page 0) also have to draw the string and same popup background image ?
回复

使用道具 举报

0

主题

763

回帖

8630

积分

论坛元老

Rank: 8Rank: 8

积分
8630
发表于 2023-8-17 17:43:22 | 显示全部楼层
本帖最后由 DWIN-ARK 于 2023-8-17 17:50 编辑
jhpark 发表于 2023-8-17 16:47
@DWIN-ARK, I'm sorry but could you explain about your 'Annex 2' in more detailed ?
Especially, doe ...

Dear,
text display is set on the current page,This will refresh the display.
The pop-up menu just needs to touch the setting area,Splice the display and touch together.
The coordinates in the upper left corner of the menu area are consistent with the current coordinates, so the position can be displayed unchanged, so it seems that the text display can be refreshed and touched to select.


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-8-22 09:57:57 | 显示全部楼层
DWIN-ARK 发表于 2023-8-17 17:43
Dear,
text display is set on the current page,This will refresh the display.
The pop-up menu just ...

Thanks for your kind explanation, DWIN-ARK ! I see !
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|迪文科技论坛 ( 京ICP备05033781号-1 )

GMT+8, 2025-5-10 03:40 , Processed in 0.035973 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表