Re: can i have an image background in a frame?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: can i have an image background in a frame?

From: Eric Taylor <et2@rocketship1.com>
Date: Tue Feb 28 2006 - 03:51:46 CET

Hmmm, how do you stack widgets in a frame, or did you
mean in a canvas?

If I could stack widgets in a frame, then I could have a button with an
image and have the button fill the frame, but then I don't know how to
put anything on top of that. I normally use pack, can it be done with
that?

Donald Arseneau wrote:

> Eric Taylor <et2@rocketship1.com> writes:
>
> > I'd like to be able to do the equivalent of
> >
> > myframe configure -backgroundImage image
> >
> > I want to have a picture with some buttons
> > on top of it.
> >
> > Can I do this with a canvas?.
>
> Yes, you can use a canvas rather than a frame; use
> .win create window
> to put buttons on it.
>
> Yes, you can put background images using the BLT package.
>
> Yes, you can stack widgets in a frame so that the lower
> image acts as background; the foreground widgets can be
> managed normally with grid or pack.
>
> --
> Donald Arseneau asnd@triumf.ca
Received on Sun Apr 30 02:17:14 2006