迪文科技论坛

 找回密码
 立即注册
搜索
查看: 87|回复: 3

[Question]How can I use a single Settings page for multiple background pages?

[复制链接]

3

主题

1

回帖

42

积分

新手上路

Rank: 1

积分
42
发表于 2026-9-7 14:04:44 | 显示全部楼层 |阅读模式
Hello,

I am designing a UI for the DMG80480C050_03WTC display. My UI consists of multiple background pages, and each background page has a Settings touch option.

Currently, when the user touches the Settings option, I switch to a separate Settings page corresponding to that particular background page. After completing the settings, I have designed touch and page-switching configuration to return to the respective background page.

For example:

Background Page 1 → Settings Page 1 →Return button→ Background Page 1
Background Page 2 → Settings Page 2 → Return button→ Background Page 2
Background Page 3 → Settings Page 3 →Return button→  Background Page 3

This approach requires multiple copies of the Settings page and additional page-switching configurations, which increases the number of images and consumes more flash memory.

My question is:

Is there any way in DGUS/DWIN to use one common Settings page for all the background pages, and after completing the settings, return to the previous page from which the Settings page was opened?

For example:

Background Page 1 → Common Settings Page → Return to Background Page 1
Background Page 2 → Common Settings Page → Return to Background Page 2
Background Page 3 → Common Settings Page → Return to Background Page 3

I would like to avoid creating separate Settings pages for each background page in order to reduce flash memory usage.

Is there any DGUS variable, command, register, or page-switching mechanism that can store the previous page number and return to it after completing the settings?

Please suggest the recommended method to implement this.

Thank you.
回复

使用道具 举报

0

主题

298

回帖

7602

积分

论坛元老

Rank: 8Rank: 8

积分
7602
发表于 2026-9-7 14:31:21 | 显示全部楼层
本帖最后由 chenzf 于 2026-9-7 14:42 编辑

Before cutting the page, you can first use the 0X14 interface to read the current page ID.
Read: 5AA5 04 83 0014 01
Response: 5AA5 06 83 0014 01 0007 (0007 represents page 07)
0X0084 is the interface for switching pages.
Switch page: 5AA5 07 82 0084 5A01 0001, display the 01-numbered image under the ICL file as the background picture. The fixed part in the front and the 0X0001 at the end is the page ID.
回复

使用道具 举报

3

主题

1

回帖

42

积分

新手上路

Rank: 1

积分
42
 楼主| 发表于 2026-9-8 12:44:27 | 显示全部楼层
chenzf 发表于 2026-9-7 14:31
Before cutting the page, you can first use the 0X14 interface to read the current page ID.
Read: 5AA ...

Does this need to program C51? or you telling to do it through external mcu (through command)?
Is there any way to do it through program T5L1 or through DGUS settings(using any attributes/options from DGUS)?
回复

使用道具 举报

0

主题

1196

回帖

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12399
发表于 2026-9-8 13:30:49 | 显示全部楼层
No C51 programming is required. Your mainboard simply needs to read the page ID before entering the settings page. The example commands are the ones mentioned above:
Read: 5AA5 04 83 0014 01
Response: 5AA5 06 83 0014 01 0007 (where 0007 indicates page 07).
The settings pages can be combined into a single page. For the button that returns to the previous page, you can disable its page‑switching function and have it only perform automatic data upload. After the mainboard receives the uploaded data, it sends a command to go back to the previous page, using the page ID that was read before entering the settings page.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-9-23 03:01 , Processed in 0.048964 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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