|
[Date Index]
[Thread Index]
[Author Index]
Control[], Manipulate, Why labels not showing?
- To: mathgroup at smc.vnet.net
- Subject: [mg99364] Control[], Manipulate, Why labels not showing?
- From: "Nasser Abbasi" <nma at 12000.org>
- Date: Mon, 4 May 2009 05:58:40 -0400 (EDT)
- Reply-to: "Nasser Abbasi" <nma at 12000.org>
This is Mathematica 7.0 on Windows
Here is 2 pieces of code, I thought these are equivalent. But the second one
shows the label on the control ok, while the first does not.
--- first-------------------------------
Manipulate[Style["test"],
Dynamic[c1],
Dynamic[c2],
Initialization :> {
c1 = Control[{{p1, 0, "p1"}, 0, 10, 1}],
c2 = Control[{{p2, 0, "p2"}, 0, 10, 1}]}
]
--- second-------------------------------
Manipulate[Style["test"],
Control[{{p1, 0, "p1"}, 0, 10, 1}],
Control[{{p2, 0, "p2"}, 0, 10, 1}]
]
What I really want to do, is to define each control used by Manipulate to a
separate variable.
Then this will make it easier to layout the controls on the Manipulate by
just using the variable name (c1,c2,etc....) instead of typing the long
expression of the control itself. So I could type something as Grid[
{{c1},{c2}}] for example, which will make it more clear.
Is there a better way to do the above than what I have (which does not seem
to really work). Where should I have define these variables if not in the
manipulate Initialization part?
Thanks,
--Nasser
Prev by Date:
Re: DumpSave of InterpolatingFunction increases its execution times
Next by Date:
Re: number of Trangles in a graph-network
Previous by thread:
Re: Save to RTF crashes Mathematica on 32 and 64 bit
Next by thread:
Re: Control[], Manipulate, Why labels not showing?
|