迪文科技论坛

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

[Question]How to close the popup ?

[复制链接]

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
发表于 2023-6-22 13:40:27 | 显示全部楼层 |阅读模式
Hi,
I'm testing the <popup menu> control to show my dialog, and it's working well to show.
But how to close this popup dialog ?

I just added 2 basic touch modules to my dialog as OK and CANCEL,
and I expected it should be closed automatically when I touch the OK or CANCEL button.
But my popup dialog is still open and wouldn't be closed...

Is there any other way to close the popup ?

I attached my sample project.


本帖子中包含更多资源

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

x
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-22 16:05:31 | 显示全部楼层
Maybe it's a little bit different than I expected for using Popup menu control.
I guess I should set the 'Page switching' property on my basic touch module (OK and CANCEL)
to go back the main screen... It's weird for me to set the page swithcing too, you know it's just a popup.
回复

使用道具 举报

0

主题

713

回帖

7658

积分

论坛元老

Rank: 8Rank: 8

积分
7658
发表于 2023-6-22 19:14:26 | 显示全部楼层
本帖最后由 DWIN-ARK 于 2023-6-22 19:17 编辑
jhpark 发表于 2023-6-22 16:05
Maybe it's a little bit different than I expected for using Popup menu control.
I guess I should set ...

Dear,
Valid key code during input: 0x0000-0x00FF.
0x00FF is "Cancel" (return without parameter selection).
“OK”can be set to a valid key value.



本帖子中包含更多资源

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

x
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-23 10:01:06 | 显示全部楼层
DWIN-ARK 发表于 2023-6-22 19:14
Dear,
Valid key code during input: 0x0000-0x00FF.
0x00FF is "Cancel" (return without parameter sele ...

Thans for your help!
I tried to set my button's key value to 0x00FF, but it still can't be closed.

And below capture shot show the keycode on basic touch module in DGUS2,
and I guess 0x00F0 is a 'Cancel'..




Actually, I tried to set it as 0x00F0, 0x00F1 and even all things on above keypad values,
but my popup dialog can't be closed... Still open...



本帖子中包含更多资源

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

x
回复

使用道具 举报

0

主题

713

回帖

7658

积分

论坛元老

Rank: 8Rank: 8

积分
7658
发表于 2023-6-23 20:00:41 | 显示全部楼层
jhpark 发表于 2023-6-23 10:01
Thans for your help!
I tried to set my button's key value to 0x00FF, but it still can't be closed.
...


dear,
popup menu Cancel immobilization:0x00FF
0x0030-0x0039,0x00F0 0x00F1 0x002E 0x002D <data input> use.


本帖子中包含更多资源

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

x
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-26 10:56:18 | 显示全部楼层
DWIN-ARK 发表于 2023-6-23 20:00
dear,
popup menu Cancel immobilization:0x00FF
0x0030-0x0039,0x00F0 0x00F1 0x002E 0x002D  use.

Thanks ! Could you explain it more about "Cancel immobilization:0x00FF" ?
What's the meaning of 'immobilization' and how to or where to set it ?

And I tested your project and I still can't close.
I captured Virtual screen with your project :  

本帖子中包含更多资源

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

x
回复

使用道具 举报

0

主题

857

回帖

5255

积分

论坛元老

Rank: 8Rank: 8

积分
5255
发表于 2023-6-26 11:23:26 | 显示全部楼层
Hello, there is no problem downloading it to the screen for display. Please refer to the download to the screen for display.
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-26 12:46:21 | 显示全部楼层
DWIN_LZ 发表于 2023-6-26 11:23
Hello, there is no problem downloading it to the screen for display. Please refer to the download to ...

So, popup dialog will be closed if I install it on real device, right ?
回复

使用道具 举报

0

主题

428

回帖

2362

积分

金牌会员

Rank: 6Rank: 6

积分
2362
发表于 2023-6-26 13:14:55 | 显示全部楼层
jhpark 发表于 2023-6-26 12:46
So, popup dialog will be closed if I install it on real device, right ?


Yes, it has been tested.
回复

使用道具 举报

9

主题

65

回帖

264

积分

中级会员

Rank: 3Rank: 3

积分
264
 楼主| 发表于 2023-6-27 16:22:57 | 显示全部楼层
Thanks for testing confirming, DWIN_LZ and wangyuxiang !
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-12-28 16:27 , Processed in 0.072825 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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