>
> How does it work? Does it scan the form and build a region or so? Sounds
> like a horrible hack to me TBH. How do you use it ?
>
Well there are a few ways one could achieve this, the worst hack being to have 
the code scan the form and copy whatever is behind it on screen onto the 
section you selected, that is a horrible way.
Now on MacOSX and Linux (at least with newer versions of X) it should be 
possible to do TRUE translucency. On linux by tapping into the Xcomposite and 
Xrender extensions, not sure how you get to these features on Mac. On windows 
I don't know but different implementations for supported platforms is quite 
okay if the interface to the component is the same.

I do think it would be a nice-to-have but right now I doubt there is a clean 
multiplatform approach so a per-platform implementation would  be needed and 
it's not lazarus style to add components that work only in one place.

I do reckon that a lazarus component which can tap into the features of 
xcomposite manager would be really neat though, not sure what it would take 
to create one, especially if you don't want to use a tprocess, I suspect our 
X-header conversions don't include the functions it uses so it may require 
converting some code from the c project by X.org.
Of course it won't work on all versions of X only those that have the right 
support compiled in (which is alpha code right now) but it would mean that 
where available lazarus apps can be xgl enabled, users could have a slider 
right in the app for adjusting transparency... neat nay (of course I think 
this will be whole-form only though it could surely be mapped into a 
component as well to affect only that which is in the bounds of the component 
- personally I would like both - the component could have a slider letting 
the user adjust the transparency of the region it encapsulates (and otherwize 
look and work like say a tgroupbox) and another component which would be 
simpler and probably non-visual but would adjust full form transparency to 
whatever value you pass it in properties) 

Wow that was a lot of bracing :p

Anyway, just some thoughts from me on the topic. Others ?

Ciao
A.J.

-- 
A.J. Venter
Chief Software Architect
OpenLab International
www.getopenlab.com
www.silentcoder.co.za
+27 82 726 5103

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to