MathGroup Archive 2011

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

Search the Archive

Re: reducing the size of a Manipulate slider control, problem when using ImageSize

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123403] Re: reducing the size of a Manipulate slider control, problem when using ImageSize
  • From: Tomas Garza <tgarza10 at msn.com>
  • Date: Mon, 5 Dec 2011 05:18:06 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

It's not necessarily redundant, since you might want to have different sizes for the sliders (or whatever control you use). Take a look at this example:
Column[{Style["Different size sliders in the same row", 13, "Label"],   Manipulate[   Module[{},     Graphics[{{Line[{p1, p2, p3, p1}], White, Disk[p1, 0.02]},       Style[Text["A", p1], Background -> White, Bold, Italic, 12,"Label"],       Style[Text["B", p2], Background -> White, Bold, Italic, 12,        "Label"],       Style[Text["C", p3], Background -> White, Bold, Italic, 12,        "Label"]}, PlotRange -> {{-0.2, 1.2}, {-0.2, 1}}]],Row[{Spacer[35],      Control[{{p1, {0, 0}, "A"}, {0, 0}, {1, 1}, ImageSize -> 25}],      Spacer[50],      Control[{{p2, {1, 0}, "B"}, {0, 0}, {1, 1}, ImageSize -> 50}],      Spacer[50],      Control[{{p3, {0.5, 0.5}, "C"}, {0, 0}, {1, 1},        ImageSize -> 75}]}]]}]
-Tomas

> Date: Sun, 4 Dec 2011 02:50:19 -0500
> From: cy56 at comcast.net
> Subject: Re: reducing the size of a Manipulate slider control, problem when using ImageSize
> To: mathgroup at smc.vnet.net
>
> I've been trying to have small sliders, too. Finally figured out what
> the Help on Manipulate meant: you put the "ImageSize -> Tiny" (or
> whatever size) _after_ ControlType -> Slider (or whatever the type).
> Unfortunately, you need to do this redundant specification if you want
> to change the size of any controls in Manipulate. Or at least you do
> for sliders.
>
> Chris Young
> cy56 at comcast.net
>
> Manipulate[
>  foo[],
>
>   {x, 0, 1, ControlType -> Slider, ImageSize -> Tiny}
>  ]
>
>
> On 2007-09-04 08:00:14 +0000, Nasser Abbasi said:
>
> > 6.0.1:
> >
> > Problem to solve is this: Trying to control the size of the controls that
> > used by different manipulate entries. For example, this will produce a
> > slider:
> >
> > Manipulate[foo[],{x,0,1}]
> >
> > But when I did the following below, the slider went away! (is this a bug or
> > a feature?)
> >
> > Manipulate[foo[], {{x, 0, 1}, ImageSize -> Tiny}]
> >
> > I can;t explain what it did that. According to help, Slider does have an
> > ImageSize option, so I figured I'll try it here.
> > How else can one make the above slider in Manipulate smaller in size? Iwant
> > to fit 2 slider next to each others instead of on top of each others onthe
> > screen.
> >
> > thanks,
> > Nasser
>
>


  • Prev by Date: Re: How to get elements satisfying specific condition from a list
  • Next by Date: Re: Ploting a transformation of a set
  • Previous by thread: Re: reducing the size of a Manipulate slider control, problem when using ImageSize
  • Next by thread: Re: reducing the size of a Manipulate slider control, problem when using ImageSize