Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2000
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: ButtonBox and ButtonFuction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25533] Re: [mg25527] ButtonBox and ButtonFuction
  • From: Jean-Marie THOMAS <jmt at agat.net>
  • Date: Sat, 7 Oct 2000 03:35:38 -0400 (EDT)
  • References: <200010060350.XAA24958@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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