Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

can i have an image background in a frame?

140 views
Skip to first unread message

Eric Taylor

unread,
Feb 25, 2006, 12:36:19 AM2/25/06
to
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?.


Donald Arseneau

unread,
Feb 25, 2006, 7:36:11 AM2/25/06
to
Eric Taylor <e...@rocketship1.com> writes:

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 as...@triumf.ca

gersoo

unread,
Feb 25, 2006, 8:32:22 AM2/25/06
to

Hello,

You can also use Paved Widgets:

http://wiki.tcl.tk/13415


GS

Eric Taylor

unread,
Feb 27, 2006, 9:51:46 PM2/27/06
to
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?

Bryan Oakley

unread,
Feb 27, 2006, 10:23:36 PM2/27/06
to
Eric Taylor wrote:
> Hmmm, how do you stack widgets in a frame, or did you
> mean in a canvas?

use pack to put the first widget in, then use place to put more frames
directly on top.

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

I'm not sure I understand what you wrote. Use a canvas, put an image in
the canvas, then pack things inside the canvas as if it were a frame.
Does that make sense?

Look here for more help: http://wiki.tcl.tk/4389

0 new messages