How do I lock the window size?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
hanshuchen
Posts: 13
Joined: 26 Feb 2019 01:41

How do I lock the window size?

Post by hanshuchen »

How do I lock the window size?Disable window resizing。

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How do I lock the window size?

Post by highend »

You can't but you are free to use a custom event action (that fires often) to automatically correct it

viewtopic.php?p=120828#p120828

Apart from that: AutoHotkey and script it...
One of my scripts helped you out? Please donate via Paypal

hanshuchen
Posts: 13
Joined: 26 Feb 2019 01:41

Re: How do I lock the window size?

Post by hanshuchen »

highend wrote: ↑09 Apr 2022 10:24 You can't but you are free to use a custom event action (that fires often) to automatically correct it

viewtopic.php?p=120828#p120828

Apart from that: AutoHotkey and script it...
ok..

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How do I lock the window size?

Post by highend »

Code: Select all

#NoTrayIcon

hWnd := A_Args[1]

if (hWnd)
    WinSet, Style, ^0x40000, % "ahk_id" hWnd
Compile that and then you could switch window resizing on / off by calling the .exe (adapt the path^^) with

Code: Select all

run lax("D:\Tools\XYplorer\@Scripts\Toggle window resizing.exe" <hwnd>);
One of my scripts helped you out? Please donate via Paypal

hanshuchen
Posts: 13
Joined: 26 Feb 2019 01:41

Re: How do I lock the window size?

Post by hanshuchen »

highend wrote: ↑09 Apr 2022 10:41

Code: Select all

#NoTrayIcon

hWnd := A_Args[1]

if (hWnd)
    WinSet, Style, ^0x40000, % "ahk_id" hWnd
Compile that and then you could switch window resizing on / off by calling the .exe (adapt the path^^) with

Code: Select all

run lax("D:\Tools\XYplorer\@Scripts\Toggle window resizing.exe" <hwnd>);
thank you

Post Reply