Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2273
| From | "p.ramsden" <p.ramsden@imperial.ac.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | GUIKit query |
| Date | 2011-05-10 12:31 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <iqbb7t$jm5$1@smc.vnet.net> (permalink) |
After many years, I'm finally getting to grips with GUIKit. I've
solved nearly all the problems with the little application I'm
developing, except one. I want, essentially, to mock up a widget
equivalent of a FileNameSetter: that is, a "Browse..." button whose
action is to launch a FileDialog. Something along the lines of
ref = GUIRunModal[
Widget["Panel",
WidgetGroup[{Widget["Label", {"text" -> "Source notebook"}],
Widget["Button", {"text" -> "Browse...",
BindEvent["action",
Script[GUIRunModal[Widget["FileDialog"]]]]}]},
WidgetLayout -> Column]]]
But this totally fails to work: launching a widget from within a
widget isn't cool, it seems. The messages are
GUIKit`Widget::deferr: =AB JavaObject[javax.swing.JFileChooser]=BB is not
valid GUI definition content. >>
GUIRunModal::nvalid: The GUI definition contains invalid content. >>
I can't escape the conviction that I must be being very dim. Can
anyone put me out of my misery?
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
GUIKit query "p.ramsden" <p.ramsden@imperial.ac.uk> - 2011-05-10 12:31 +0000
Re: GUIKit query David Bailey <dave@removedbailey.co.uk> - 2011-05-11 08:28 +0000
Re: GUIKit query "p.ramsden" <p.ramsden@imperial.ac.uk> - 2011-05-12 08:34 +0000
Re: GUIKit query David Bailey <dave@removedbailey.co.uk> - 2011-05-12 11:26 +0000
csiph-web