Tk Source Code

View Ticket
Login
Ticket UUID: 802296
Title: transparent backgrounds
Type: RFE Version: None
Submitter: kakaroto Created on: 2003-09-08 07:25:05
Subsystem: 18. [text] Assigned To: jenglish
Priority: 5 Medium Severity:
Status: Open Last Modified: 2003-10-15 16:26:46
Resolution: None Closed By:
    Closed on:
Description:
Hi,
I'm a developper in the aMSN's project (amsn.sf.net) and we would 
like a new feature but it looks pretty hard to add.. it's about skinning, 
we want to create skins, which means we need two new things, first a 
[wm border borderless] command that would tell the window manager 
to disable border (so we can create our own title bar and close icons 
with our own images) .. but that's not really *important* ...
The second request is more important.. we would like to make a 
background image for text widgets (chat windows or for the main 
contact list window) I thought about doing something like pack $w.
text -in $w.label (with a label -image ... ) but I noticed that the image 
disappears behind the text widget... so the text widget background is 
solid... what would help us alot, is having a transparent background... 
only the text and windows/images added in the text widget would be 
solid... that could be a new option (-backgroundimage) or with 
-background transparent ... or maybe juste set a color that would be 
transparent like -background #-1-1-1 ....
anyways I would like your advice on this, are you going to add this 
soon, or maybe there is some other way to do what I am requesting..
.

KaKaRoTo
User Comments: kakaroto added on 2003-10-15 16:26:46:
Logged In: YES 
user_id=686750

Hi,
aMSN is a TCL application meant for use by any user.. 
linux/windows/mac and also it is for people who just don't 
know how to use a computer... so using extensions that need 
to be compiled bothers us.. but thanx anyway for the info.
If I may suggest something, why don't you release a tcl/tk 8.5 
version soon that will already include "all" extensions available 
on the net? tcl is a great language and tk is a great toolkit, we 
can do so much with so little effort, but it lacks of options.. 
just for the images for example, it supports only .gif files.. 
there is the Img extension, but it's impossible to compile (on 
my system) and the precompiled binaries didn't work for me... 
you should include it in your next release... tcl and tk and 
great once they are enhanced with all the extensions... use 
them!!! (it's not an order, it's a suggestion :P ) 
anyways, I hope tcl and tk will soon have more options and 
that the 8.5 version will be shipped with almost all new distros 
(alot of our users still use tcl/tk 8.3 so we need to keep 
compatibilty with 8.3 for them...) 
anyways, thx again, and I hope I'll find an extension in pure 
tcl...
c ya

KaKaRoTo

hobbs added on 2003-10-15 01:02:29:
Logged In: YES 
user_id=72656

Handling of windows without wm decoration is very wm 
specific, but perhaps something can be added to 'wm 
attributes' if code is provided.

As for the transparency and bg images, there is some 
theming stuff in Tk in 8.4 already, just not used.  There is a 
test extension that uses this and could provide that 
functionality.  If you use the BLT extension, it already has 
that functionality in part.

Passing to jenglish as he has more info.

kakaroto added on 2003-10-13 08:57:56:
Logged In: YES 
user_id=686750

Hi, 
I know the overrideredirect thing, but not only you'll have to 
handle the titlebar and stuff (that's what we want) but also 
the move, and everything.. I'm using enlightenment.. and I 
can't move a windows with overrideredirect with an ALT + 
move mouse.. and also, overrideredirect forces the window to 
stay always on top.. 
and how about making background images for widgets.. is 
there any way to do this ?
anyways, thx for answering me, and keep up the good work.

KaKaRoTo

hobbs added on 2003-10-13 07:33:32:
Logged In: YES 
user_id=72656

The borderless stuff can be achieved with wm 
overrideredirect, but then you have to handle all the regular 
titlebar stuff yourself.  The other ideas are being looked into 
for 8.5.