MathGroup Archive 2007

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

Search the Archive

RE: Button Help Example


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/
> 
> 
> 
> 
> 



  • Prev by Date: Re: Defining a Function with an Indeterminate Number of Arguments
  • Next by Date: Re: Adding current style name to window title or status area
  • Previous by thread: Re: Button Help Example
  • Next by thread: plotmarkers in Listplot