MathGroup Archive 2009

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

Search the Archive

FW: Problem using a dialog and dynamic - problem sorted

  • To: mathgroup at
  • Subject: [mg97914] FW: [mg97795] Problem using a dialog and dynamic - problem sorted
  • From: "Paul Ellsmore" <paul.ellsmore at>
  • Date: Wed, 25 Mar 2009 05:45:55 -0500 (EST)

Thanks to all who pointed out the "Method" issue. Seems obvious now, and
something I'll be able to keep an eye out for in the future.



-----Original Message-----
From: Paul Ellsmore [mailto:paul.ellsmore at] 
Sent: 22 March 2009 10:46
To: mathgroup at
Subject: [mg97914] [mg97795] Problem using a dialog and dynamic


The following code should show a button and a text field. When I click the
button, i should get a system dialog allowing me to select a folder, and the
folder's file and pathname should then be displayed in the text field.

Panel[Grid[{{Button["Select/Change Project
nt Project Directory:",InputField[Dynamic[sourcedir],String]}]}}]

Unfortunately, the performance is erratic!


If I click the button, then select a folder of the C drive, say C:\first,
and click "open", the textfield display C:\first as expected. But if I then
click the button again, and select, say, folder off the C:\first\second and
click "open", the textfield does not change, nor does it for any subsequent
clicks. However, if I select the desktop, it works as expected, and if I
select the C: drive again it also works.


To summarise, if i want to change the folder selection, I have to select the
C: drive once, then click again and select the subfolder I want, and if I
want to change the subfolder, I have to select the c: drive again, before I
can select the new subfolder.


Is this a bug, or am I doing something stupid? I am using V7 on Windows
Vista Home Premium.


Thanks in advance,




Dr. Paul A. Ellsmore


Nanion Limited

Oxford Centre for Innovation

Mill Street


United Kingdom



Tel: +44 (0) 1865 811175

Fax: +44 (0) 1865 248594

  • Prev by Date: Re: Got a tip ?
  • Next by Date: Re: SetDelayed::write ... [x_] is protected
  • Previous by thread: Re: Installation question
  • Next by thread: UNDO and Mathematica - how useless is it?