problem controlling window sizes in standalone

bestanf@yahoo.com's icon

hi,

I'm trying to create a standalone which has only one window, which is maximized, and hides as much of the max/msp specific things as possible, such as the menu bar, status window, etc.

ideally the window should not be resizeable.

I used ;max hidemenubar and sending window zoom 1, window exec type messages to thispatcher, which all seems to work.

however, I have trouble getting my patcher window maximized to the max/msp window itself, and then controlling the size of that and preventing users from resizing the max/msp window itself (which contains my patcher window).

from a standalone point of view it's kind of important to be able to control all patcher windows including the window containing the patcher windows, i.e. the max/msp app window.

is there any way to control the placement, size and resizable flags of the max/msp app window?

I tried resizing the max/msp window after building a standalone, and when I restart the standalone the window size is actually restored, so this can be a workaround, but it's not ideal.

thanks
Bert

Dan Nigrin's icon

Take a look at these threads Bert:

Bottom line - I think you're out of luck, with the exception of
perhaps Thomas Grill's wmangle external - it might suit your needs.

Best,
Dan

At 9:08 AM -0700 2/6/08, bert wrote:
>hi,
>
>I'm trying to create a standalone which has only one window, which
>is maximized, and hides as much of the max/msp specific things as
>possible, such as the menu bar, status window, etc.
>
>ideally the window should not be resizeable.
>
>I used ;max hidemenubar and sending window zoom 1, window exec type
>messages to thispatcher, which all seems to work.
>
>however, I have trouble getting my patcher window maximized to the
>max/msp window itself, and then controlling the size of that and
>preventing users from resizing the max/msp window itself (which
>contains my patcher window).
>
>from a standalone point of view it's kind of important to be able to
>control all patcher windows including the window containing the
>patcher windows, i.e. the max/msp app window.
>
>is there any way to control the placement, size and resizable flags
>of the max/msp app window?
>
>I tried resizing the max/msp window after building a standalone, and
>when I restart the standalone the window size is actually restored,
>so this can be a workaround, but it's not ideal.
>
>thanks
>Bert
>

--
Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com
http://www.jackosx.com

bestanf@yahoo.com's icon

Quote: Dan Nigrin wrote on Wed, 06 February 2008 09:21
----------------------------------------------------
> Take a look at these threads Bert:
>
> https://cycling74.com/forums/index.php?t=msg&goto=94730
>
> https://cycling74.com/forums/index.php?t=msg&goto=97567
>
> Bottom line - I think you're out of luck, with the exception of
> perhaps Thomas Grill's wmangle external - it might suit your needs.
>
> Best,
> Dan
>
> At 9:08 AM -0700 2/6/08, bert wrote:
> >hi,
> >
> >I'm trying to create a standalone which has only one window, which
> >is maximized, and hides as much of the max/msp specific things as
> >possible, such as the menu bar, status window, etc.
> >
> >ideally the window should not be resizeable.
> >
> >I used ;max hidemenubar and sending window zoom 1, window exec type
> >messages to thispatcher, which all seems to work.
> >
> >however, I have trouble getting my patcher window maximized to the
> >max/msp window itself, and then controlling the size of that and
> >preventing users from resizing the max/msp window itself (which
> >contains my patcher window).
> >
> >from a standalone point of view it's kind of important to be able to
> >control all patcher windows including the window containing the
> >patcher windows, i.e. the max/msp app window.
> >
> >is there any way to control the placement, size and resizable flags
> >of the max/msp app window?
> >
> >I tried resizing the max/msp window after building a standalone, and
> >when I restart the standalone the window size is actually restored,
> >so this can be a workaround, but it's not ideal.
> >
> >thanks
> >Bert
> >
>
>
> --
> Dan Nigrin
> Defective Records
> 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
> Malfunction
> http://www.defectiverecords.com
> http://www.jackosx.com
>
>
----------------------------------------------------

thanks for letting me know about this option.
maybe someone from Cycling can suggest an alternative ?

jvkr's icon

I'm not quite sure if I understand what you try to achieve. The following anyway is true on a mac. It is possible to make the top window 0 pixels across and position it offscreen as to avoid start up flickering. Any other patcher-window now can be positioned anywhere, or maximized. By using all window active and choosing the right order of opening windows, there is control over layering albeit not 100% waterproof. If you allow the user to reposition or resize windows, it is possible to capture that information and store it somewhere in a text file within the app. A tool I once made for controlling window size and position can be found on jvkr.nl/shelves and is called winhub, in the bottom section. Hope this helps.

_
johan