Page 1 of 1
Maximizing a stack/window
Posted: Sat Aug 28, 2010 5:39 am
by gwbasic
Newbie here. I'm looking for a way to open a stack as maximized window. Please help.
Re: Maximizing a stack/window
Posted: Sat Aug 28, 2010 8:16 am
by Dixie
Hi...
Code: Select all
on preOpenStack
set the rect of this stack to screenRect()
end preOpenStack
be well
Dixie
Re: Maximizing a stack/window
Posted: Tue Aug 31, 2010 9:49 am
by gwbasic
On windows xp, the title bar mimize, restore, exit buttons are missing. how do i make it appear again?
Re: Maximizing a stack/window
Posted: Tue Aug 31, 2010 8:39 pm
by Janschenkel
Did you change the
decorations of the stack by any chance?
Jan Schenkel.
Re: Maximizing a stack/window
Posted: Tue Aug 31, 2010 9:11 pm
by Klaus
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:
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
You might want to play a bit with the values unti it fits your needs.
Best
Klaus
Re: Maximizing a stack/window
Posted: Wed Sep 01, 2010 12:56 am
by gwbasic
Thanks.