Page 1 of 1
command/handler for minimizing a stack
Posted: Wed May 31, 2006 9:24 am
by lbtony
I want to be able to bring down/bring up a group of windows(stacks) by clicking a button on a stack. If this is possible, any idea how to do it?
Thanks.....
Posted: Wed May 31, 2006 10:10 am
by Janschenkel
Check out the language dictionary entry for the 'iconic' property.
To collapse/minimize/iconify a single stack, you'd use:
Code: Select all
set the iconic of stack "foobar" to true
So all you have to do is script a loop...
Jan Schenkel.
Re: command/handler for minimizing a stack
Posted: Tue Aug 06, 2013 7:39 pm
by palanolho
Greetings,
Is there such way to do the same to to maximize and and bring the window to a smaller size?
(basically a way to emulate the 3-4 buttons from the top right corner of the window)
Many thanks
- Miguel
Re: command/handler for minimizing a stack
Posted: Tue Aug 06, 2013 8:39 pm
by shaosean
Code: Select all
set the rect of stack "moo" to (the screenRect)
to maximize it..
Re: command/handler for minimizing a stack
Posted: Tue Aug 06, 2013 8:57 pm
by palanolho
I tried that command before, unfortunately the effect is not the same as the "maximize" of the window.
The borders or the window and the window title disappear. I have even tryied a script like this
Code: Select all
on mouseUp
put the screenrect into TSR
add 30 to item 2 of TSR
set the rect of stack "project_settings" to TSR
end mouseUp
but the window icon will show the maximize icon instead of the resize one (the one to put the window in a smaller size)
Any ideas ?
Many Thanks
- Miguel
Re: command/handler for minimizing a stack
Posted: Tue Aug 06, 2013 9:26 pm
by shaosean
Looks like you would need to do it through an external or some other system call.. What operating system(s) are you looking for?
Re: command/handler for minimizing a stack
Posted: Tue Aug 06, 2013 11:46 pm
by palanolho
Win and MAC
Re: command/handler for minimizing a stack
Posted: Wed Aug 07, 2013 5:45 am
by shaosean
I have never been able to get a Windows external to work in the newer versions of the engine (could be an error on my part though).. I will look to see what is available for Mac OS X.. You are talking about the green toggle button, not the new Lion full screen mode, correct?
Re: command/handler for minimizing a stack
Posted: Wed Aug 07, 2013 9:33 am
by palanolho
aaaa I'm not really a Mac user, I just want it to work on MAC too
basically the options I'm talking about (in windows) are:
- Minimize
- Maximize / Restore down
- Close