Alternating Sizes of a Drawer and a Regular Window

Gregory Lypny gregory.lypny at videotron.ca
Fri Jun 3 17:34:42 EDT 2005


Hello Everyone

For reasons unknown to me, the following handler does not increase the 
height of the window to 538 when it is about to be displayed as a 
drawer.

	Greg

drawer theStack

on preOpenStack
   if the mode of this stack is 13
   then
     revChangeWindowSize 261,538
     set the scrollbarWidth of fld "Hit List" to 12
   else
     revChangeWindowSize 720,440
     set the scrollbarWidth of fld "Hit List" to 16
     set the loc of this stack to the screenLoc
   end if
   revUpdateGeometry
end preOpenStack

So I have to close it with the desired drawer size instead.

on closeStack
   lock screen
   revChangeWindowSize 261,538
   revUpdateGeometry
   save this stack
end closeStack



More information about the use-livecode mailing list