Hi,
I think the way that I would do this would be to modify the looknfeel skin. There's a couple of approaches depending on your needs. If you just want all lists to have that effect you can add an appropriate XML element in there to set the alpha for individual imagery sections - if you want it configurable, it's a similar approach but you have to define a property that will control the colours applied instead.
Example the first: Setting 0.4 alpha for all lists, for TaharezLook...
In the TaharezLook.looknfeel file, find the definition of the "TaharezLook/Listbox" and where you see this:
Code: Select all
<StateImagery name="Enabled">
<Layer>
<Section section="main" />
</Layer>
</StateImagery>
Change it to, for example, this:
Code: Select all
<StateImagery name="Enabled">
<Layer>
<Section section="main">
<Colours topLeft="66FFFFFF" topRight="66FFFFFF" bottomLeft="66FFFFFF" bottomRight="66FFFFFF" />
</Section>
</Layer>
</StateImagery>
Example the second: Using a property to control the colours (and therefore alpha):
Again, in TaharezLook.looknfeel file the Listbox definition, and at the top add a new property definition:
Code: Select all
<PropertyDefinition name="BoxColour" initialValue="FFFFFFFF" redrawOnWrite="true" />
This creates a new property called "BoxColour" that we can set to affect the colouring of the box later.
Now again we find the StateImagery sections and get it to use our property as the source of the colours:
Code: Select all
<StateImagery name="Enabled">
<Layer>
<Section section="main">
<ColourProperty name="BoxColour" />
</Section>
</Layer>
</StateImagery>
Then you can set the BoxColour in code or XML via the regular properties interface.
HTH
CE.