Window size constraints

Everything else that doesn't fall into one of the other PB categories.
User avatar
kpeters58
Enthusiast
Enthusiast
Posts: 341
Joined: Tue Nov 22, 2011 5:11 pm
Location: Kelowna, BC, Canada

Window size constraints

Post by kpeters58 »

Hi all,

how could I implement minimum height & width window sizes; i.e. a window that cannot be resized to be smaller than those sizes?

Thanks for all pointers,
Kai
PB 5.73 on Windows 10 & OS X High Sierra
Perkin
Enthusiast
Enthusiast
Posts: 504
Joined: Thu Jul 03, 2008 10:13 pm
Location: Kent, UK

Re: Window size constraints

Post by Perkin »

WindowBounds(#Window, MinimalWidth, MinimalHeight, MaximalWidth, MaximalHeight)
%101010 = $2A = 42
User avatar
kpeters58
Enthusiast
Enthusiast
Posts: 341
Joined: Tue Nov 22, 2011 5:11 pm
Location: Kelowna, BC, Canada

Re: Window size constraints

Post by kpeters58 »

Thanks - much appreciated!
PB 5.73 on Windows 10 & OS X High Sierra
Post Reply