command/handler for minimizing a stack

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
lbtony
Posts: 35
Joined: Tue Apr 11, 2006 9:01 am

command/handler for minimizing a stack

Post by lbtony » Wed May 31, 2006 9:24 am

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.....

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Wed May 31, 2006 10:10 am

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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

palanolho
Posts: 122
Joined: Sat Apr 27, 2013 11:40 pm

Re: command/handler for minimizing a stack

Post by palanolho » Tue Aug 06, 2013 7:39 pm

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

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: command/handler for minimizing a stack

Post by shaosean » Tue Aug 06, 2013 8:39 pm

Code: Select all

set the rect of stack "moo" to (the screenRect)
to maximize it..

palanolho
Posts: 122
Joined: Sat Apr 27, 2013 11:40 pm

Re: command/handler for minimizing a stack

Post by palanolho » Tue Aug 06, 2013 8:57 pm

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

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: command/handler for minimizing a stack

Post by shaosean » Tue Aug 06, 2013 9:26 pm

Looks like you would need to do it through an external or some other system call.. What operating system(s) are you looking for?

palanolho
Posts: 122
Joined: Sat Apr 27, 2013 11:40 pm

Re: command/handler for minimizing a stack

Post by palanolho » Tue Aug 06, 2013 11:46 pm

Win and MAC

shaosean
Posts: 906
Joined: Thu Nov 04, 2010 7:53 am

Re: command/handler for minimizing a stack

Post by shaosean » Wed Aug 07, 2013 5:45 am

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?

palanolho
Posts: 122
Joined: Sat Apr 27, 2013 11:40 pm

Re: command/handler for minimizing a stack

Post by palanolho » Wed Aug 07, 2013 9:33 am

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

Post Reply