MathGroup Archive 2009

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

Search the Archive

Re: A question on Grid and nested lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100066] Re: A question on Grid and nested lists
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 22 May 2009 01:51:24 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <gv2jlf$98t$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,
param = {{"BlindText", Slider[], varValue1}, {"BlindText", Slider[],
    varValue2}, {"BlindText", PopupMenu[x, {"a", "b", "c"}]},
   {"BlindText", PopupMenu[y, {"a", "b", "c"}]}}

and

Map[Row , Grid[Partition[param, 2]], {3}]

does not help ?

Regards
   Jens

Karsten W. wrote:
> Hello,
> 
> thanks for your help on the variable dumping function in my earlier
> post. I make good progress in learning Mathematica and I really like
> it. However, here is again a problem where I am stuck.
> 
> In my dialog, I would like to lay out a table of parameters in two
> columns. Each parameter consists of two or three elements, like
> 
>   param = {{text1, Slider[...], varValue1}, {text2, Slider[...],
> varValue2}, {text3, PopupMenu[..]}, ...}
> 
> Since they are quite a lot parameters, I would like to put two
> parameters in one row. I tried
> 
>   Grid[Partition[param,2]],
> 
> which work essentially fine, but there are these curly braces
> indicating a list around each parameter. I think I cannot flatten out
> on the second nesting level, because then I would loose the centering
> of the parameters. So what can I do here? I tried
> 
>   param = Partition[param,2];
>   param = Map[Grid[#]&, param, {2}]; (* Map[Pane[#... does not help
> either *)
>   Grid[param]
> 
> but that didn't help.
> 
> If you could help me here, that would be very nice.
> 
> Kind regards,
> Karsten.
> 
> 
> 
> 
> 


  • Prev by Date: Re: Rotating a list of 3D point coordinates in one shot
  • Next by Date: Re: Legend for DateListPlot
  • Previous by thread: Re: A question on Grid and nested lists
  • Next by thread: Rotating a list of 3D point coordinates in one shot