Maximizing a stack/window
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Maximizing a stack/window
Newbie here. I'm looking for a way to open a stack as maximized window. Please help.
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Maximizing a stack/window
Hi...
be well
Dixie
Code: Select all
on preOpenStack
set the rect of this stack to screenRect()
end preOpenStack
Dixie
Re: Maximizing a stack/window
On windows xp, the title bar mimize, restore, exit buttons are missing. how do i make it appear again?
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Location: Aalst, Belgium
- Contact:
Re: Maximizing a stack/window
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Re: Maximizing a stack/window
Hi gwbasic,
a stacks rect is actually the rect WITHOUT the title bar.
So in your case the titlebar and all its decorations are "out of reach"!
Type this in the message box:
set the rect of stack "name of your stackhere" to 50,50,200,200
To be able to "handle" it again
I think the height of the titelbar is about 30 pixels (?) on Windows, so you have to ADD this value from "item 2 of the screenrect" like this:
You might want to play a bit with the values unti it fits your needs.
Best
Klaus
a stacks rect is actually the rect WITHOUT the title bar.
So in your case the titlebar and all its decorations are "out of reach"!
Type this in the message box:
set the rect of stack "name of your stackhere" to 50,50,200,200
To be able to "handle" it again
I think the height of the titelbar is about 30 pixels (?) on Windows, so you have to ADD this value from "item 2 of the screenrect" like this:
Code: Select all
on preOpenStack
put the screenrect into TSR
add 30 to item 2 of TSR
set the rect of this stack to TSR
end preOpenStack
Best
Klaus