On Mon, 10 Feb 1997, Alex Carlos Braga Antao wrote:

>   I'm new on this list, and I'd like to ask how does the image property 
> on the property editor works. I put a new button on my application and 
> typed the name of image file name that the button would have, and it said 
> that the image doesn't exists. When I saw the source, the code was :
> 
>    button... -image {image_file_name}.
> 
>   I tried to put the complete sentence : [image create photo -file 
> IMAGE_FILE_NAME] and it put the {}'s. How does it work ??? Modifying 
> manually the button image property works : 
>   button ... -image [image create photo -file FILE_NAME]
>  Without the {}'s !! :)

 I would recommend that you create the image in the "init" procedure
 and assign it a name. Then use that name explicitly in the -image
 setting. There will be a preference in 1.09 that allows you to switch
 between {} and "" in the generated code.

>  Also is there a way to put a button with the grafphic and also with a 
> text ? Even outside visualTCL ????

 Read the Tcl/Tk FAQ. The pointer was just posted to this list.

 -stewart-

Reply via email to