I use questdlg quite often and it always appears in the
middle of the screen, where it covers the information which
is needed for the answer.
Is it somehow possible to set its position?
"nor ki" <kinor.removeme@gmx.de> wrote in message
<fp3o4f$nm3$1@fred.mathworks.com>...
> Hi,
>
> I use questdlg quite often and it always appears in the
> middle of the screen, where it covers the information
which
> is needed for the answer.
> Is it somehow possible to set its position?
>
> thanks for your help in advance
>
> kinor
You will have to modify the questdlg according to your
required position
"nor ki" <kinor.removeme@gmx.de> wrote in message
<fp3o4f$nm3$1@fred.mathworks.com>...
> Hi,
>
> I use questdlg quite often and it always appears in the
> middle of the screen, where it covers the information
which
> is needed for the answer.
> Is it somehow possible to set its position?
>
> thanks for your help in advance
>
> kinor
i took a look and didn't see much promising stuff. as a
workaround, you could write your own gui that does the same
thing as questdlg but has options to send it parameters for
location. shouldn't take too long...
In article <fp3o4f$nm3$1@fred.mathworks.com>,
nor ki <kinor.removeme@gmx.de> wrote:
>I use questdlg quite often and it always appears in the
>middle of the screen, where it covers the information which
>is needed for the answer.
>Is it somehow possible to set its position?
Though that posting referred to errordlg, the same applies to
questdlg.
--
"MAMA: Oh--So now it's life. Money is life. Once upon a time freedom
used to be life--now it's money. I guess the world really do change.
WALTER: No--it was always money, Mama. We just didn't know about it."
-- Lorraine Hansberry
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.
For the O.P:
If you want to design something similar to questdlg real
quick you can refer to my submission on "A small gui
Example" posted here http://www.mathworks.com/matlabcentral/fileexchange/loadFil
e.do?objectId=18212&objectType=file.
You can place movegui(gcf, 'northwest'), or you preferred
position in the opening_fcn in that example..
HTH
Vihang
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
roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <fp4kfb$ns4$1@canopus.cc.umanitoba.ca>...
> 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
Hello Walter
Could you please provide some suitable example.
I have not quite understood, how we could accomplish the
above by your method?
In article <fp4l8a$ph5$1@fred.mathworks.com>,
Vihang Patil <vihang_patil@yahoo.com> wrote:
>roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
>message <fp4kfb$ns4$1@canopus.cc.umanitoba.ca>...
>> 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.
>Could you please provide some suitable example.
>I have not quite understood, how we could accomplish the
>above by your method?
Tracing the code more carefully, I see that in fact the
DefaultFigurePosition values are obtained but then completely
ignored. The question dialog will be horizontally centered on the
figure (or on the screen if there is no current callback object),
and will be vertically set to start 1/3 of the way down the figure
(or screen).
Due to bugs in the code, the only way to affect the positioning
would be to change the root DefaultFigureUnits -- the
code uses absolute sizes for the question dialog box, but
uses DefaultFigureUnits as the units when it queries the size
of the figure or screen. The resulting mix could throw the
calculation off completely, positioning the question dialog in
strange places, I believe.
--
"There is nothing so bad but it can masquerade as moral."
-- Walter Lippmann
Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central. Read the complete Disclaimer prior to use.