Resize window without changing the position

Marc Assenmacher's icon

Hello,

I want to change the window size of my pop-up window without resetting the position.

I know how to use the message [window size (position X left top corner) (position Y left top corner) (position X right bottom corner) (position Y right bottom corner)] on [thispatcher].

  • Is there a way to change the window size without setting a new position?

  • If not, is there a way to retrieve the current position of [thispatcher] to insert it into my [window size]?

  • Any other suggestions?

Any help is welcome. ;)

Source Audio's icon

that is all easy to do,

what do you mean with pop-up window ?

subpatcher with pcontrol ?

you can wire thispatcher of that patcher to in/outlet

or send/receive to control it from outside.

Roman Thilenius's icon

position and size are both contained in that list of 4 values and if you leave the position ones as they were, the position will not change.

changing the position or both is far more difficult. :)


or do you want to the window to grow relative to its current center point? then you have to calculate the left/top offsets yourself. (minus (size difference / 2))

luckily there is an 110 object for everything. that size and position stuff always was confusing enough to generalize your own method which can be used without any braincells required.

sry prbl hard to read... i can ul if you want