Determine if stack is maximized?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Determine if stack is maximized?
Rev 2.6.1
Greetings,
How do you find out if a stack is maximized? I found how to determine
if it's been minimized(or iconified) by checking for "mode" 12, but there
is no "mode" for maximized.
Does anyone know of a way to determine if the stack is maximized?
Thanks in advance,
-Garrett
Greetings,
How do you find out if a stack is maximized? I found how to determine
if it's been minimized(or iconified) by checking for "mode" 12, but there
is no "mode" for maximized.
Does anyone know of a way to determine if the stack is maximized?
Thanks in advance,
-Garrett
Hi Garrett,
try:
All the best,
Malte
try:
Code: Select all
if the iconic of this stack is false then
put "stack is maximized"
end if
All the best,
Malte
-
- VIP Livecode Opensource Backer
- Posts: 9857
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Determine if stack is maximized?
Wouldn't the maximized rect be the same as the windowBoundingRect?Garrett wrote:How do you find out if a stack is maximized?
Re: Determine if stack is maximized?
Gave it a try. Here's the results when I maximized the stack on OS X:FourthWorld wrote:Wouldn't the maximized rect be the same as the windowBoundingRect?Garrett wrote:How do you find out if a stack is maximized?
Stack Rect: 10,48,1270,939
BoundRect: 0 ,22,1280,949
on Windows XP:
Stack Rect: 0,19,1280,740
BoundRect: 0 , 0,1280,740
On Windows XP at least the width and height match the boundingrect
with and height. But on OS X the numbers fall shy of about 10 pixels
each. And the stack reflects this also as it does not maximize to touch
the menu bar, Dock or sides of the desktop.
Odd, and not reliable I think for testing the maximize situation
At least in Windows I could use an api to test this, but I have no clue if
OS X has an api for this, and even if it does, I have no clue how to call
external api calls from the OS itself from Rev.
I also browsed the docs to see if there was a way to find out if the Max/
Zoom box is being pressed, but no message seems to exist for this
either
Thanks,
-Garrett