Hello,
how can i make a gui only movable/drag with mouse at y axis/ block only moving/dragging with mouse at x axis?
Thank you!
how can i make a gui only movable/drag with mouse at y axis? Topic is solved
Re: how can i make a gui only movable/drag with mouse at y axis? Topic is solved
Try:
Code: Select all
OnMessage(0x216, "WM_SIZING")
WM_SIZING(wparam, lparam, msg, hwnd) {
global
if (hwnd == hgui) {
NumPut(left, lparam+0, "int")
NumPut(right, lparam+8, "int")
return true
}
}
Gui +Hwndhgui
Gui Show, w400 h200
WinGetPos left,, width,, % "ahk_id" hgui
right := left+width
Re: how can i make a gui only movable/drag with mouse at y axis?
@neovis
Thanks a lot for your reply! Works great.
Thanks a lot for your reply! Works great.
-
- Posts: 4412
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: how can i make a gui only movable/drag with mouse at y axis?
@neovis
Good idea, but WM_SIZING is not 0x216.
Good idea, but WM_SIZING is not 0x216.
Re: how can i make a gui only movable/drag with mouse at y axis?
Thank you for telling me. WM_SIZING is wrong.
It should be rename to:
Code: Select all
WM_MOVING 0x216