Re: Making a user interface
- To: mathgroup at smc.vnet.net
- Subject: [mg99656] Re: Making a user interface
- From: ADL <alberto.dilullo at tiscali.it>
- Date: Sun, 10 May 2009 05:17:33 -0400 (EDT)
- References: <gu3ar0$t6s$1@smc.vnet.net>
I tested the code below, presented by John Fultz, but I have noticed
that, by using Tab, it is only possible to cycle through the
InputFields, but never set focus on the buttons. I did not find a
Panel option about this, either.
Do you know if is it possible to explicitely set the tab-accessible
components and also specify the "tabbing" order?
Thanks
ADL
On May 9, 9:20 am, John Fultz <jfu... at wolfram.com> wrote:
> Yes, this is a bug (in fact, one which merited some internal discussion a=
mong
> the UI development group a couple of months ago). And, as is typical w=
ith these
> kinds of bugs, it has nothing to do with just running under Windows XP, o=
r even
> Windows in general. It does have an easy workaround, though. Just w=
rap Deploy
> around the Panel. i.e.,
>
> Module[{Entry1 = "", Entry2 = "", Answer = ""},
> Deploy[Panel[
> Column[{Row[{"Entry 1: ",
> InputField[Dynamic[Entry1], String,
> Background -> LightCyan]}],
> Row[{"Entry 2: ",
> InputField[Dynamic[Entry2], String,
> Background -> LightYellow]}],
> Dynamic@Row[{"Answer: ", Answer}],
> Row[{Button["Clear", Entry1 = ""; Entry2 = ""; Answer ==
""],
> Button["Calculate",
> Answer = ToExpression[Entry1] ToExpression[Entry2]]}=
]}],
> Style["Enter and Calculate_Multiplication", 16, Bold, Italic]]]];
> Framed[%, Background -> LightOrange]
>
...
>
> Sincerely,
>
> John Fultz
> jfu... at wolfram.com
> User Interface Group
> Wolfram Research, Inc.