Re: use of a button
- To: mathgroup at smc.vnet.net
- Subject: [mg106930] Re: [mg106909] use of a button
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Thu, 28 Jan 2010 02:46:29 -0500 (EST)
- References: <201001271124.GAA13543@smc.vnet.net>
- Reply-to: drmajorbob at yahoo.com
rose = Import["ExampleData/rose.gif"]; Button["Show rose", Print@rose] Bobby On Wed, 27 Jan 2010 05:24:46 -0600, Alexei Boulbitch <Alexei.Boulbitch at iee.lu> wrote: > Dear Community, > > I have a lack of understanding. (OK, I have many, but today it is about > only one of them). I want to make a button to show in my presentation > an image upon pressing. However, the operation like > > Button["Image name", image_identifier] does not work. To be concrete, > this: > > rose = Import["ExampleData/rose.gif"]; > Button["Show rose", rose] > > does not return the image. I cannot get, why? > > I can avoid the problem say, like this: > > Button["Show rose", CreateDocument[rose, WindowSize -> {100, 100}]] > > I post this question, since I would like to understand, what is wrong > with simple operators like Button["Show rose", rose] or Button["Show > rose", Show@rose] or such a variant Button["Show rose", > Import["ExampleData/rose.gif"]] and how should I choose right operators > to be used inside the Button? > > Regards, Alexei > -- DrMajorBob at yahoo.com
- References:
- use of a button
- From: Alexei Boulbitch <Alexei.Boulbitch@iee.lu>
- use of a button