* Claude Rubinson <
[email protected]>
| I have a Tk app that has a series of photos arranged in a grid. Each
| photo is embedded in its own canvas. I'd like to indicate that a
| photo has been selected by the user by highlighting it with a translucent
| overlay. Is this possible? My initial investigation indicates that
| Tk doesn't (yet) support alpha blending?
A different approach might be to add a border around each canvas and
highlight that to indicate the selected one:
grid [canvas .c1 -highlightthickness 3 -highlightcolor blue -borderwidth 2 -relief ridge] -row 0 -column 0 -sticky ewnw
grid [canvas .c2 -highlightthickness 3 -highlightcolor blue -borderwidth 2 -relief ridge] -row 0 -column 1 -sticky ewnw
grid [canvas .c3 -highlightthickness 3 -highlightcolor blue -borderwidth 2 -relief ridge] -row 1 -column 0 -sticky ewnw
grid [canvas .c4 -highlightthickness 3 -highlightcolor blue -borderwidth 2 -relief ridge] -row 1 -column 1 -sticky ewnw
bind .c1 <Button-1> {focus %W}
bind .c2 <Button-1> {focus %W}
bind .c3 <Button-1> {focus %W}
bind .c4 <Button-1> {focus %W}
grid rowconfigure . 0 -weight 1
grid rowconfigure . 1 -weight 1
grid columnconfigure . 0 -weight 1
grid columnconfigure . 1 -weight 1
HTH
R'
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)