For Programmers: Free Programming Magazines  


Home > Archive > PerlTk > June 2004 > Text over button image









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Text over button image
Golgi !

2004-06-25, 7:10 pm

Can you place text over an image? the '-text' option lets you put text on a
button, but if you assign an image to the button, text no longer appears.
The image I add to the button is just a simple gif to give a little zest to
the button appearance. I specifically am wanting to use -textvariable so I
can consistenly change the text over the button. I seem out of luck if I
have to digitally place the text in the gif.

I've also tried working around this on the canvas widget. I create a button
(with image) on the canvas. I then try to 'createText' over the button
(x,y) coords, but the button still remains on top, even after trying to
raise it: $canvas -> raise($text_id);

---
win32
v5.8.3

________________________________________
_________________________
MSN 9 Dial-up Internet Access fights spam and pop-ups – now 3 months FREE!
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server. If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to majordomo@lists.stanford.edu
Robert

2004-06-25, 7:10 pm

"Golgi !" <golgi_perl@msn.com> wrote in message
news:cbb2n1$hvk$1@fidoii.CC.Lehigh.EDU...
> Can you place text over an image? the '-text' option lets you put text on

a
> button, but if you assign an image to the button, text no longer appears.
> The image I add to the button is just a simple gif to give a little zest

to
> the button appearance. I specifically am wanting to use -textvariable so

I
> can consistenly change the text over the button. I seem out of luck if I
> have to digitally place the text in the gif.
>
> I've also tried working around this on the canvas widget. I create a

button
> (with image) on the canvas. I then try to 'createText' over the button
> (x,y) coords, but the button still remains on top, even after trying to
> raise it: $canvas -> raise($text_id);
>

Not sure if this is what you want but you can place the image using
"-compound =>".


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com