MathGroup Archive 2000

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

Search the Archive

Re: ButtonBox and ButtonFuction


Try this : <package> contains the function definition.

ButtonBox["init",
            ButtonFunction:>Get[ <package>],
            ButtonEvaluator->Automatic,
            Active->True,
            ButtonNote->"init"]}

On Fri, 06 Oct 2000, Christopher Deacon wrote:
> How do I get use the button functions to automatically evaluate a function.
> In other words, if
> I have a button which says "Click here to evaluate" and f is a function,
> what should the ButtonBox[] function look like? [The Mathematica Book does
> not have good examples]
> 
> Chris
> 
> --
> +-----------------------------+----------------------------+
> |       Christopher Deacon    |         (709) 737-7631
> | Dept of Physics and Physical|   cdeacon at physics.mun.ca
> |         Oceanography
> | Memorial University of Nfld
> +----------------------------+-----------------------------+
> |                http://www.physics.mun.ca/~cdeacon
> +----------------------------------------------------------+


  • Prev by Date: Re: Graphic Size
  • Next by Date: Re: RGB to CMYK
  • Previous by thread: ButtonBox and ButtonFuction
  • Next by thread: Re: ButtonBox and ButtonFuction