Andreas Leitgeb wrote:
>
> I'm not very happy with the second option "-tile": it might
> confer some connection to ttk (the "tile" widgets), which
> I think is not meant. Also, IMHO a single background image
> is not the job of a frame (use a label instead).
>
> How will the (repeated) background image cope with a border?
> e.g. for "-bd 10 -relief groove" would it shine through the
> border, or be overdrawn with it? (for -bd 0 this is of
> course moot)
>
> Rather than a tile-option, I'd have an -bgoffset option,
> that takes either x,y-offsets or the name of some
> ascending widget (up to toplevel), on whose origin
> the repeating images are "anchored". This would make
> it possible to have sibling-, cousin- etc.-frames
> have a consistent background.
Good point. I often have frames within frames, which make
it much easier for me to use the pack manager. I also develop
using visual tcl, and so adding lots of nested frames is something
that I do rather often. If I understand your point, the
inner frames would obsure the outer frame which might be the
logical choice for where to add a single background image.
What if we also allowed an option for frame transparency. In this case,
I would think the inner frames would want to be flat with no
border. But that might not be handy for positioning nested packed
frames. Maybe we'd want an option to make a frame entirely
transparent, even if it had some inrternal and external borders.
The idea for a tiling option came from my attempts to use
a large image. I was trying to implement this idea using a
canvas and there was a wiki entry with some tiling ideas
http://mini.net/tcl/4389
I also wanted to imbed the image as text, like in this wiki article,
to avoid the need for any extra files to distrubute. While the
image was a reasonably small gif file, converting it to text
added many hundreds (possibly thousands) of lines of
text to the script. And it also was noticably slow at starup.
My intent was to be able to create a small swatch of background and
hopefully it would repeat nicely. I figured to use something
like photoshop to create some nicely tiled textures. Then it would
be a reasonably small -data set for the image.
Received on Sun Apr 30 02:55:41 2006