Problem with stack dimensions

graham samuel graham.samuel at wanadoo.fr
Sat Dec 31 10:34:38 EST 2005


There was a discussion on this in the list around September 2003 (!)  
under the title 'Leaving room for the title bar'. Ken Ray as usual  
had some interesting observations. I no longer have the complete  
correspondence to hand, but I imagine it can be searched for.

HTH

Graham

On Sat, 31 Dec 2005 07:15:34 +1000, Sarah Reichelt  
<sarah.reichelt at gmail.com> wrote:

> On 12/31/05, Stgoldberg at aol.com <Stgoldberg at aol.com> wrote:
>
>> What are the optimal Revolution stack dimensions to fill a screen  
>> set at
>> 1024x768 resolution (I'm using Mac OSX to develop)? Setting the  
>> stack dimensions
>> to 1024x768 seems too big, because the titlebar adds extra space  
>> on Windows,
>> and the dock gets in the way on Macintosh. It would seem that one  
>> would have
>> to set the stack dimensions to less than 1024x768. But what  
>> dimensions are
>> optimal? Thanks.
>> Steve Goldberg
>>
>
> On Macs, the top of the stack needs to be down about 44 pixels and
> then you need to leave space for the dock at the bottom. You can use
> the windowBoundingRect to tell you how much space this leaves you, or
> you can just make an allowance that will be OK for a large dock and
> leave space above a small dock.
>
> With Windows, you will need to allow for the taskbar at the bottom. I
> don't know how big this is, but again, the windowBoundingRect should
> tell you.
>
> Side-to-side, you can fill the screen on either platform.
>
> In the IDE, when you open the stack it will shrinkif necessary to fit
> into the windowBoundingRect which is smaller inside Rev to allow for
> the toolbar & Tools palette, so you will need to over-ride this and
> set the size in one of the opening handlers.
>

----------------------------------------
Graham Samuel / The Living Fossil Co. / UK and France





More information about the use-livecode mailing list