MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Nested Dialogs

  • To: mathgroup at
  • Subject: [mg79795] Nested Dialogs
  • From: Albert <awnl at>
  • Date: Sat, 4 Aug 2007 06:02:07 -0400 (EDT)


I am trying to create an modal dialog where a user can give some input 
and which offers another modal dialog for part of the input, because in 
the real application the input is somewhat lengthy to put into just one 
dialog. I want both of them to be modal.

When nesting DialogInput I discovered that the following does not work 
as I expected (hoped) it would:

   Button["Details", DialogInput[DefaultButton[]]],

actually it hangs mathematica, so it will ask whether you want to wait
or abort the dynamic evaluation. When experimenting with CreateDialog I 
found it has the option Modal, but this option does not really seem to 
change the behaviour of the Dialog. Something else I detected is that 
for two nested dialogs DialogReturn[] behaves not exactly as I did expect:


When I click the Button in the nested dialog, the DialogInput returns 2, 
but the window associated with the DialogInput stays on the screen.

I could not find something about the
nesting of Dialogs in the Documentation Center so here are my questions:

- am I misunderstanding or missing something?
- am I asking for too much?
- Is this the intended behavior?
- I am using 6.0.0. Has the situation with 6.0.1 changed for these
- Has anyone some workaround to achieve what I try to do (I know how to
   do this with JLink, but then I don't have easy access to all the nice
   dynamic stuff within the dialogs...)?


  • Prev by Date: Re: Want to 'Solve' a piecewise equation for a common term
  • Next by Date: Re: Want to 'Solve' a piecewise equation for a common term
  • Previous by thread: Re: If a*b=c/d, then a=c/bd, How do i do this in Mathematica?
  • Next by thread: Re: Nested Dialogs