Transparency and Opacity

LANSA Version 13 SP2

Transparency and Opacity


DirectX rendering introduces transparency and opacity. By default in DirectX all panels and labels are considered transparent unless a specific Style has been applied. This new appearance can lead to issues.

Below, a simple form toggles between address and employee details. When the button is clicked, the address details are enabled and brought to the front.


The code for this form is available in the Sample Source section of this document.

However, the results with DirectX rendering are somewhat different.



Regardless of the DisplayPosition of the Address and Details panels, both are plainly visible.

The need for this default stems from the desire to build complex layered forms and to still be able to see watermark images or backgrounds applied to it. If they were opaque, it would be necessary to visit every panel and label and specifically apply a transparent style.

A simple work around for this situation is to set the inactive panel to Visible(False) rather than Enabled(False).