Forums > MaxMSP

Window question

December 3, 2006 | 7:54 pm

Hi everyone, I’m new to Max MSP, but I’m taking a class on it right now… so my question is:
I am creating a user interface for my final project, and I found out how to remove the scroll bars and the top of the window (with window notitle and window exec), but now that that is removed, I has the small spot at the top of the screen where the title bar was, and I would like to then move the window up so it can fully cover the entire screen of the computer. I tried sending an [offset] message attached to a delay so after the top bar dissapered it would then recieve the message to move up, but it didn’t work, so can you move the window after the title and scroll bars are removed?
Any sugestions would be great. Here is an example file so you can see what I’m talking about:
max v2;
#N vpatcher 86 165 686 565;
#P button 282 166 15 0;
#P button 309 101 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 309 137 55 196617 delay 250;
#P message 253 193 61 196617 offset 50 0;
#P newex 100 183 30 196617 t b b;
#P newex 62 106 30 196617 t b b;
#P newex 86 77 55 196617 select 1 0;
#P toggle 86 39 15 0;
#P message 131 214 66 196617 window title;
#P message 56 226 68 196617 window exec;
#P message 82 140 76 196617 window notitle;
#N thispatcher;
#Q end;
#P newobj 99 285 61 196617 thispatcher;
#P fasten 6 0 2 0 67 177 61 177;
#P fasten 7 0 2 0 105 213 61 213;
#P fasten 5 0 6 0 91 100 67 100;
#P connect 6 1 1 0;
#P connect 4 0 5 0;
#P fasten 1 0 0 0 87 206 48 206 48 279 104 279;
#P fasten 8 0 0 0 258 275 104 275;
#P fasten 2 0 0 0 61 267 104 267;
#P fasten 3 0 0 0 136 259 104 259;
#P fasten 5 1 7 0 113 125 159 125 159 165 105 165;
#P fasten 7 1 3 0 125 207 136 207;
#P fasten 11 0 8 0 287 185 258 185;
#P fasten 9 0 11 0 314 161 287 161;
#P fasten 4 0 10 0 91 67 314 67;
#P connect 10 0 9 0;
#P pop;


December 3, 2006 | 8:07 pm

just like in the helpfile of [thispatcher], the fullscreen message followed by 0 or 1 is what you
need :

#P toggle 43 44 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 43 62 62 9109513 fullscreen $1;
#N thispatcher;
#Q end;
#P newobj 43 84 61 9109513 thispatcher;
#P connect 1 0 0 0;
#P connect 2 0 1 0;
#P window clipboard copycount 3;

//yac

>
> Hi everyone, I’m new to Max MSP, but I’m taking a class on it right now… so my question is:
> I am creating a user interface for my final project, and I found out how to remove the scroll bars
> and the top of the window (with window notitle and window exec), but now that that is removed, I
> has the small spot at the top of the screen where the title bar was, and I would like to then move
> the window up so it can fully cover the entire screen of the computer. I tried sending an
> [offset] message attached to a delay so after the top bar dissapered it would then recieve the
> message to move up, but it didn’t work, so can you move the window after the title and scroll bars
> are removed?
> Any sugestions would be great. Here is an example file so you can see what I’m talking about:
> max v2;
> #N vpatcher 86 165 686 565;
> #P button 282 166 15 0;
> #P button 309 101 15 0;
> #P window setfont "Sans Serif" 9.;
> #P newex 309 137 55 196617 delay 250;
> #P message 253 193 61 196617 offset 50 0;
> #P newex 100 183 30 196617 t b b;
> #P newex 62 106 30 196617 t b b;
> #P newex 86 77 55 196617 select 1 0;
> #P toggle 86 39 15 0;
> #P message 131 214 66 196617 window title;
> #P message 56 226 68 196617 window exec;
> #P message 82 140 76 196617 window notitle;
> #N thispatcher;
> #Q end;
> #P newobj 99 285 61 196617 thispatcher;
> #P fasten 6 0 2 0 67 177 61 177;
> #P fasten 7 0 2 0 105 213 61 213;
> #P fasten 5 0 6 0 91 100 67 100;
> #P connect 6 1 1 0;
> #P connect 4 0 5 0;
> #P fasten 1 0 0 0 87 206 48 206 48 279 104 279;
> #P fasten 8 0 0 0 258 275 104 275;
> #P fasten 2 0 0 0 61 267 104 267;
> #P fasten 3 0 0 0 136 259 104 259;
> #P fasten 5 1 7 0 113 125 159 125 159 165 105 165;
> #P fasten 7 1 3 0 125 207 136 207;
> #P fasten 11 0 8 0 287 185 258 185;
> #P fasten 9 0 11 0 314 161 287 161;
> #P fasten 4 0 10 0 91 67 314 67;
> #P connect 10 0 9 0;
> #P pop;
>
>


December 3, 2006 | 8:14 pm

Hey, Thanks, I don’t know why I didn’t see that…
You rock.


December 3, 2006 | 8:30 pm

I found a problem with that… I didn’t include this in my first example patch, but I also have a custom file menue… So when it goes full screen, I loose the File Edit Window Help… So I guess me question is how can I move/resize the window after the title bar is takien away?
Thanks


December 5, 2006 | 7:37 am

there is also a size message in the help file…

//yac

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P comment 41 108 119 9109513 back to your first method;
#P window linecount 3;
#P comment 440 180 146 9109513 be sure the loadmess loaded it’s values or to enter correct coords
before applying!;
#P window linecount 1;
#P comment 231 163 27 9109513 apply;
#P comment 376 164 33 9109513 bottom;
#P comment 340 164 25 9109513 right;
#P comment 304 164 21 9109513 top;
#P button 236 179 15 0;
#P number 370 179 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 334 179 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 298 179 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 262 179 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 236 205 114 9109513 pack 0 0 0 0 0;
#P newex 262 103 105 9109513 loadmess 0 0 1024 700;
#P newex 262 128 118 9109513 unpack 0 0 0 0;
#P message 236 227 166 9109513 window size $2 $3 $4 $5 , window exec;
#P newex 86 169 55 9109513 select 1 0;
#P toggle 86 129 15 0;
#P message 164 227 66 9109513 window title;
#P message 17 227 68 9109513 window exec;
#P message 86 227 76 9109513 window notitle;
#N thispatcher;
#Q end;
#P newobj 86 285 61 9109513 thispatcher;
#P comment 268 164 21 9109513 left;
#P connect 6 1 3 0;
#P connect 6 1 4 0;
#P connect 6 0 3 0;
#P connect 6 0 2 0;
#P connect 9 0 8 0;
#P connect 7 0 1 0;
#P connect 15 0 10 0;
#P connect 14 0 10 4;
#P connect 13 0 10 3;
#P connect 12 0 10 2;
#P fasten 8 3 14 0 375 163 375 163;
#P fasten 8 2 13 0 339 163 339 163;
#P fasten 8 1 12 0 303 163 303 163;
#P connect 11 0 10 1;
#P fasten 8 0 11 0 267 163 267 163;
#P connect 10 0 7 0;
#P connect 5 0 6 0;
#P connect 4 0 1 0;
#P connect 3 0 1 0;
#P connect 2 0 1 0;
#P window clipboard copycount 22;


December 5, 2006 | 8:23 am

http://www.cycling74.com/story/2006/5/15/15027/4227

check this out also…


Viewing 6 posts - 1 through 6 (of 6 total)