[Question]How to close the popup ?
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.
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.
本帖最后由 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.
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...
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.
DWIN-ARK 发表于 2023-6-23 20:00
dear,
popup menu Cancel immobilization:0x00FF
0x0030-0x0039,0x00F0 0x00F1 0x002E 0x002Duse.
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 :
Hello, there is no problem downloading it to the screen for display. Please refer to the download to the screen for display. 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 ?
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. Thanks for testing confirming, DWIN_LZ and wangyuxiang !
页:
[1]