I would guess this is happening because the behavior of displaying a modal 
stack is based on some UI convention of centering modal dialogs on the screen.  
The answer dialog behaves this way.

One way to work around this is to use a suspendStack handler in the main stack 
that opens the model, like this:

on suspendStack
   if  “myModal" is among the lines of the openStacks then
      set the topLeft of stack “myModal" to 100,100
   end if
end suspendStack

Upon opening the modal stack, the main stack is suspended and sets the position 
of the modal before the modal is displayed.  I use this to position the answer 
dialog when I want to display it in a specific location.

Regards,

Scott Rossi 
Creative Director 
Tactile Media, UX/UI Design 


On Dec 9, 2014, at 7:48 PM, Dr. Hawkins <doch...@gmail.com> wrote:

> *bump*
> 
> Also, this is happening in the ide.
> 
> On Sat, Dec 6, 2014 at 1:55 PM, Dr. Hawkins <doch...@gmail.com> wrote:
> 
>> I have a control stack to pop up as a modal, and use
>> 
>>        set the loc of this stack to the screenMouseLoc
>> 
>> in preOpenStack
>> 
>> If I simply open the stack *not* as modal, it properly appears centered
>> on the mouse.
>> 
>> If opening *as*, modal, however, it opens away from that, near the middle
>> of the screen.
>> 
>> And when I check the screenMouseLoc each way, I get widely different
>> results:  nonmodal gives a correct horizontal of about 1100, while modally
>> produces about 400.
>> 
>> Is this behavior correct?  And if so, why???
>> 
>> 7.0.1-rc2 on Mac
>> 
>> 
>> 
>> --
>> Dr. Richard E. Hawkins, Esq.
>> (702) 508-8462
>> 
> 
> 
> 
> -- 
> Dr. Richard E. Hawkins, Esq.
> (702) 508-8462
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to