02-03-2021, 01:15 AM
hello everyone
Using the following toolbar code, I can achieve the effect of auto hide, see Gif Demo below
How to make the dialog achieve a similar effect? Any suggestions are welcome. Thanks in advance
Expected effect:
Press the win + left key, the dialog hidden as a vertical line on the left edge of the desktop
Press the win + right key, the dialog hidden as a vertical line on the right edge of the desktop
Press the win + up key, the dialoghidden as a horizontal line on the top edge of the desktop
Toolbar Toolbar Hide test
Macro Dialog Hide test
Using the following toolbar code, I can achieve the effect of auto hide, see Gif Demo below
How to make the dialog achieve a similar effect? Any suggestions are welcome. Thanks in advance
Expected effect:
Press the win + left key, the dialog hidden as a vertical line on the left edge of the desktop
Press the win + right key, the dialog hidden as a vertical line on the right edge of the desktop
Press the win + up key, the dialoghidden as a horizontal line on the top edge of the desktop
Toolbar Toolbar Hide test
;/mov0 -1 348 /siz0 106 196 /ssiz0 3 196 /set0 0x450A 0xFCFF
;At first, toolbar will be at the left-bottom edge of the screen. You can drag it to another place. Recommended trigger: mouse, screen edge, Slow.
notepad :run "$system$\notepad.exe"
write :run "$system$\write.exe"
calc :run "$system$\calc.exe"
Macro Dialog Hide test
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog" "4"
;3 Edit 0x54030080 0x200 72 52 96 13 ""
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040B01 "*" "" "" ""
str controls = "3"
str e3
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,DT_SetAccelerators(hDlg "400 WL[]401 WR[]402 WU")
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
,case 400
,mes "as a vertical line on the left edge of the desktop"
,case 401
,mes "as a vertical line on the right edge of the desktop"
,case 402
,mes "as a horizontal line on the up edge of the desktop"
ret 1