New Locs for old dialogs (was: Re: Modal Box)

Jim Hurley jhurley at infostations.com
Fri May 2 12:56:01 CDT 2003


>
>Message: 3
>Date: Thu, 01 May 2003 19:23:19 -0700
>Subject: Re: New Locs for old dialogs (was: Re: Modal Box)
>From: Richard Gaskin <ambassador at fourthworld.com>
>To: <use-revolution at lists.runrev.com>
>Reply-To: use-revolution at lists.runrev.com
>
>Wilhelm Sanke wrote:
>
>>  No need even to comment the respective lines of the answer dialog of the
>>  Mac version of Revolution that define the loc as long you add the above
>>  line "if the Newloc....." just before "end preopenstack".
>
>Alternatively, you could put this in a frontscript and never worry about
>customizing the dialogs:
>
>on preOpenStack
>   if the short name of this stack is in "answer dialog,ask dialog" then
>      set the loc of this stack to the screenLoc
>   end if
>   pass preOpenStack
>end preOpenStack
>
>
>--
>  Richard Gaskin

Richard,

Unfortunately, this doesn't appear to work on the Mac.

There are three lines in the Answer Dialog preOpenStack script which 
thwart any attempt to relocate the stack:

on preOpenStack
...
  case "MacOS"
     set the loc of this stack to the screenLoc
     set the top of this stack to round(item 4 of the screenRect/5)
...
   if the platform is "MacOS" then set the top of this stack to 
round(item 4 of the screenRect/5)

end preOpenStack

This first two appear at the beginning of the preOpen handler and the 
last appears (just to show that Rev really means it) again at the 
very  end.

But, by commenting these three lines, the dialog box opens at the screenloc.

Jim



More information about the use-livecode mailing list