A way to detect user changing window size?

codysherman's icon

Is there any method to detect when a user changes the size of the window by either maximizing or dragging?

I know of "window getsize" into "thispatcher" and I could just send a bang to that with a metro or something, but I feel like that would be a waste. Is there any way Max can report the size change?

Luke Hall's icon

I don't think this is possible without polling. What do you want to do with this information?

codysherman's icon

I'm making a standalone app, it would be nice to be able to have controls move around or get larger as the window size changes.

sousastep's icon

I too am seeking a `window-moved-bang`-type object

Roman Thilenius's icon

polling, in distances of 250 ms and with qmetro/defer, is not super sexy, but works.

if it would be in the runtime or of you do with with java, it is polling too in the end.

p.s. you can make the polling depend on [active]...