Re: Answer Dialog location

2013-07-27 Thread Alan Stenhouse
G'day Cal

Quote from the online docs:
---
The position and appearance of the dialog box varies between platforms. On Mac 
OS systems, the dialog box is centered on the screen; on Unix and Windows 
systems, the dialog box is centered over the active window. On Windows systems, 
the buttons are shown in reverse order (the first button is on the right side).
---

Presumably you're on windows/linux...?

One solution might be to create a small stack for use when using your error 
answer dialog and set it's location to the middle of the screen (and invisible) 
and then close it when you're done...? i.e. so whenever you run your error 
handler you open inv the window in the screenloc and then answer your info...

Does that make sense?

HTH

cheers

Alan

On 27/07/2013, at 6:43 AM, use-livecode-requ...@lists.runrev.com wrote:

 I have implemented a modified error checking handler in the topmost stack in
 a multi-stack application and the standard answer dialog is popping up
 over the topmost stack instead of in the middle of the screen. To me this is
 a problem.
 
 I was sure that I had seen an answer to my problem in the forum, but I can't
 find that answer anywhere. Just replies that tell us to build our own dialog
 stack. Which I would rather not do at this late stage in the project.
 
 Surely there must be a simple answer such as setting the location of the 
 answer stack. Please answer with something simple, other than building my 
 own stack.


___
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


Re: Answer Dialog location

2013-07-27 Thread Scott Rossi
Good point about the platform being key -- had forgot about that in my 
X-centric view.
But Cal might be able to make use of the suspendStack handler to position the 
answer dialog in the preferred location.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX Design

On Jul 27, 2013, at 1:24 AM, Alan Stenhouse alanstenho...@hotmail.com wrote:

 The position and appearance of the dialog box varies between platforms.

___
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


Re: Answer Dialog location

2013-07-27 Thread Roger Eller
Make a tiny hidden substack that stays at the screenLoc (hidden). On
Windows, go to stack screenCenter before calling answer.

~Roger
 On Jul 27, 2013 5:22 AM, Scott Rossi sc...@tactilemedia.com wrote:

 Good point about the platform being key -- had forgot about that in my
 X-centric view.
 But Cal might be able to make use of the suspendStack handler to position
 the answer dialog in the preferred location.

 Regards,

 Scott Rossi
 Creative Director
 Tactile Media, UX Design

 On Jul 27, 2013, at 1:24 AM, Alan Stenhouse alanstenho...@hotmail.com
 wrote:

  The position and appearance of the dialog box varies between platforms.

 ___
 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


Answer Dialog location

2013-07-26 Thread Cal Horner
I have implemented a modified error checking handler in the topmost stack in
a multi-stack application and the standard answer dialog is popping up
over the topmost stack instead of in the middle of the screen. To me this is
a problem.

I was sure that I had seen an answer to my problem in the forum, but I can't
find that answer anywhere. Just replies that tell us to build our own dialog
stack. Which I would rather not do at this late stage in the project.

Surely there must be a simple answer such as setting the location of the 
answer stack. Please answer with something simple, other than building my own 
stack.
___
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


Re: Answer Dialog location

2013-07-26 Thread Scott Rossi
Are you sure you don't have a handler somewhere that is positioning the
dialog?  Because the default behavior *is* to position the answer dialog
in the middle of the main display.

This is the routine I use when I want the dialog to appear at a specific
location:
on suspendStack
   if answer dialog is among the lines of the openStacks then
  set the topLeft of stack answer dialog to 100,100
   end if
end suspendStack


I've never had to use any script to position the answer dialog in the
middle of the screen since it (should) just work that way.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 7/26/13 9:43 PM, Cal Horner calhor...@xtra.co.nz wrote:

I have implemented a modified error checking handler in the topmost stack
in
a multi-stack application and the standard answer dialog is popping up
over the topmost stack instead of in the middle of the screen. To me this
is
a problem.

I was sure that I had seen an answer to my problem in the forum, but I
can't
find that answer anywhere. Just replies that tell us to build our own
dialog
stack. Which I would rather not do at this late stage in the project.

Surely there must be a simple answer such as setting the location of the
answer stack. Please answer with something simple, other than building
my own stack.
___
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