Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dialog hidden to edge
#1
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
Code:
Copy      Help
;/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
Code:
Copy      Help
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

[Image: GIF-2021-02-03-09-04-44.gif]


Messages In This Thread
Dialog hidden to edge - by macman - 02-03-2021, 01:15 AM
RE: Dialog hidden to edge - by redbull2k - 02-03-2021, 02:14 AM
RE: Dialog hidden to edge - by macman - 02-03-2021, 03:17 AM
RE: Dialog hidden to edge - by Kevin - 02-04-2021, 01:02 AM
RE: Dialog hidden to edge - by Kevin - 02-04-2021, 01:51 AM
RE: Dialog hidden to edge - by macman - 02-04-2021, 02:49 AM
RE: Dialog hidden to edge - by macman - 02-04-2021, 09:59 AM
RE: Dialog hidden to edge - by Davider - 03-01-2023, 03:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)