Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Dynamic GUI problem III.

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89447] Re: Dynamic GUI problem III.
  • From: dh <dh at metrohm.ch>
  • Date: Tue, 10 Jun 2008 03:37:52 -0400 (EDT)
  • References: <g2fubl$2gd$1@smc.vnet.net>


Hi,

a has the Form: Dynamic[a] and this is not what TogglerBar needs, you 

need: a[[1]]. Further you must make Toggler Bar dynamic:

h={5,4,3,2,1};

n=2;

Slider[Dynamic[n],{0,5,1}]

a=Dynamic[Take[h,n]];

Dynamic@TogglerBar[Dynamic[b],a[[1]]]

Dynamic[b]

hope this helps, Daniel



zac wrote:

> ... and again an unexpected behaviour:

> 

> h = {5, 4, 3, 2, 1};

> n = 2;

> Slider[Dynamic[n], {0, 5, 1}]

> a = Dynamic[Take[h, n]];

> TogglerBar[Dynamic[b], a]

> 

> TogglerBar is not evaluated at end. Any idea?

> Istvan

> 





-- 



Daniel Huber

Metrohm Ltd.

Oberdorfstr. 68

CH-9100 Herisau

Tel. +41 71 353 8585, Fax +41 71 353 8907

E-Mail:<mailto:dh at metrohm.com>

Internet:<http://www.metrohm.com>




  • Prev by Date: Re: Dynamic GUI problems
  • Next by Date: Re: Dynamic GUI problem II.
  • Previous by thread: Re: Dynamic GUI problem III.
  • Next by thread: Re: Dynamic GUI problem III.