Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: positioning of questdlg
Date: Fri, 15 Feb 2008 18:08:43 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 32
Message-ID: <fp4kfb$ns4$1@canopus.cc.umanitoba.ca>
References: <fp3o4f$nm3$1@fred.mathworks.com> <fp4iu9$m5g$1@canopus.cc.umanitoba.ca> <fp4k0u$7l3$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1203098923 24452 192.70.172.160 (15 Feb 2008 18:08:43 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Fri, 15 Feb 2008 18:08:43 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:451720


In article <fp4k0u$7l3$1@fred.mathworks.com>,
Vihang Patil <vihang_patil@yahoo.com> wrote:
>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in 
>message <fp4iu9$m5g$1@canopus.cc.umanitoba.ca>...

>> http://groups.google.ca/group/comp.soft-
>sys.matlab/msg/a3e0fe80bf02d691
>> Feb 1 2008
>> "Error Dialog Box (errordlg) Position"
>> by roberson@ibd.nrc-cnrc.gc.ca

>> Though that posting referred to errordlg, the same 
>applies to
>> questdlg.

>I dont think thats possible Walter, because errordlg gives 
>the handle of the figure to the output, while questdlg 
>doesnot, moreover, questdlg has to wait for the user input.

Good point, but I gave two solutions in that thread, and the
second one applies:

  The figure location for errordlg {and now questdlg} is given by 
  the root property DefaultFigurePosition.

questdlg then potentially modifies it by calling 
getnicedialoglocation to center the dialog in the upper third of
the screen.
-- 
  "We may gather out of history a policy, by the comparison and
  application of other men's forepassed miseries with our own like
  errors and ill deservings."                 -- Sir Walter Raleigh