RE: Button Help Example
- To: mathgroup at smc.vnet.net
- Subject: [mg81261] RE: [mg81238] Button Help Example
- From: "Owen, HL \(Hywel\)" <h.l.owen at dl.ac.uk>
- Date: Tue, 18 Sep 2007 00:34:11 -0400 (EDT)
You're right, the documentation is pretty thin. This worked for me: Button["Color...", color = SystemDialogInput["Color"]] When you press the button and choose a color from the top-left palette, then the variable color gets assigned. Hywel > -----Original Message----- > From: David Park [mailto:djmpark at comcast.net] > Sent: 17 September 2007 08:34 > To: mathgroup at smc.vnet.net > Subject: [mg81238] Button Help Example > > One of the examples in the Button documentation is one that > opens the color > selector: > > Button["Color...", SystemDialogInput["Color"]] > > It does indeed open the color selector, but when one selects > a color and clicks OK nothing seems to happen. > > Can anyone turn this into a useful and functional example? > > -- > David Park > djmpark at comcast.net > http://home.comcast.net/~djmpark/ > > > > >