Home > Archive > PerlTk > March 2007 > Background image to ROText
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 |
Background image to ROText
|
|
| roberts.cse@gmail.com 2007-02-23, 4:04 am |
| Hi All,
I want to set a background image to ROText.
The image would be centered & always remain centered, whatever the
operations done to the ROText.
Is there any way to do this?
Please let me know if it is possible.
Thanks a lot,
/Robert
| |
| zentara 2007-02-25, 10:02 pm |
| On 22 Feb 2007 21:43:14 -0800, roberts.cse@gmail.com wrote:
>Hi All,
> I want to set a background image to ROText.
> The image would be centered & always remain centered, whatever the
>operations done to the ROText.
> Is there any way to do this?
> Please let me know if it is possible.
>Thanks a lot,
>/Robert
I waited to see if anyone would answer first. :-)
But since you are using ROText (Read Only), you can do this
on a Canvas.
See
http://search.cpan.org/search?query...irTree&mode=all
It dosn't maintain x-scroll centering, but it does y scroll centering.
It would be fairly simple to add x centering too.
It will show you how to setup the canvas image, then instead of adding
a Directory Tree, just put up some Text in your font.
zentara
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
| |
|
|
|
|
|