You are not logged in.
Dear all,
I am working on a WinForms application where I have solved how to use a RichTextBox with a transparent background so that it lets see through it like using a slide.
Happy that I was, I brought the sample to my SliTaz machine and tried to reproduce the same effect (using Mono). No success! The textbox background, which was meant to be transparent, is shown in its current color.
Where I can trace the problem to? XWindows? Mono? Your version of XWindows?
I'm quite more than a bit down due to this failure...
All help / hints are welcome.
Regards,
Antonio
Offline
There must be something wrong with your sample code. I am using transparency in my Sakura Terminal windows on Slitaz and it works as expected.
/emgi
Offline
http://www.mono-project.com/FAQ:_Winforms
How can I make my windows alpha blended? (transparent)
Mono's Winform implementation supports transparency on its windows as long as the underlying windowing system has support for it.
For Unix/X11 users this means that they must have the COMPOSITE extension enabled on their server, and they must be running a compositing manager, like xcompmgr.
The GenToo Linux Wiki has a good description on how to setup the Xorg server for transparency support.
Slitaz-4.0 core includes xorg-xcompmgr, to enable it use desktop right click menu.
Desktop Effects / Activate composite / Set opacity (click)
Edit [c]~/.config/openbox/menu.xml[/c] to change the options used with the menu.
Depends on the hardware and video driver as to what's required to get it to work.
[c]xcompmgr -h[/c] for the options.
Offline
@mojo: After a full reading of GenToo Linux Wiki on the subject, I went to my SliTaz 4 machine and tried to put those hints into action.
Adding an "Extensions" section to [c]xorg.conf[/c] was trivial.
So was using [c]Desktop Effects / Activate composite[/c].
To that point, no transparency was in effect.
When I use [c]Desktop Effects / Set opacity (click)[/c], my system allows my small transparency-practicing program to show some translucent effect. That's not what I am looking for.
When in WX, this simple prototype sports a border and a tittle bar, with "¡Hola, mundo!" (Spanish for Hello, world!; quite original, isn't it?) in big, black characters over a transparent background.
When in SliTaz, running the same prototype with mono just gets it with ¡Hola, mundo! shown over a lime-green background (lime-green is the colour I told VisualStudio to use as the TransparencyKey value for the form).
When I hit [c]Set opacity (click)[/c], all form opacity is affected (as I would have guessed beforehand, anyway). I just need the text background to be transparent, but not the text itself.
I have observed that, when I switch Composite on, the border of the text box gets temporarily transparent. Whatever activity in the screen gets that effect back to normal, no matter what I do.
I'll further study xcompmgr options and report my results back here.
Thank you so much anyway.
Kind regards,
Offline
@mojo: I have tested the same small demo project I wrote in a "normal" XUbuntu box.
I get the same result. The "¡Hola, mundo!" message appears in black bold characters over a green background.
I will try to tweak this box as a complement of trying to tweak my SliTaz box, so I get an additional platform to test this transparency problem on.
Let's share my results once I make those experiments.
Kind regards,
Offline
@mojo: I have modified my transparency testing project so that I play with form transparencykey parameter and form background colour. No matter what I do, the closest I get to actual transparency is having the "transparent part of the form copying the background and keep that part with no changes.
That is not transparency; at least, it is not the transparency I was looking for.
I will keep trying potential approaches.
Kind regards,
Antonio
Offline
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]