Distribution builder alters stack window size?

Howard Bornstein bornstein at designeq.com
Mon Feb 3 12:24:00 EST 2003


> When I build a 
>Distribution for MacOSX and/or Windows, the stacks which have menus 
>are cut off at the bottom by something like 24 pixels, and when I 
>reopen the app in the development environment, these stacks are still 
>cut off and have to be restored by hand. Stacks without menus, such 
>as splash screens seem unaffected
>
>I've read as much as there is (not much, IMO) about the Distribution 
>Builder, but I can't see what I've done wrong. Any help would be 
>appreciated.

I've recently run into this same problem. The distribution builder is 
supposed to create systems that are platform aware. So that on a PC, the 
stack is enlarged to show the menus at the top of the window, but on a 
Mac, the same stack is shrunk to hide the menus since they appear in the 
menu bar.

For some reason, on my last build, it didn't seem to work very well. My 
Windows stack had the bottom of the stack cut off (but the Mac stack was 
ok).

So, I decided to simply control this stuff myself. It's very easy.

Within the On Openstack handler:

if the platform = "win32" then -- adjust the stack to the size you want 
for Windows
  set the height of this stack to [whatever you need]
else -- Now handle the Mac platform
  set the height of this stack to [the appropriate Mac height]
end if

Note that in my case, I'm only developing for Mac or PC so my little 
check doesn't take into account the Unix platform.

Regards,

Howard Bornstein
____________________
D E S I G N  E Q
www.designeq.com



More information about the use-livecode mailing list