How it works...
The trick used in this recipe is simple. If you require a transparent UI, just identify which part of the style of each component is responsible for drawing the background of the component. Then put the Opacity setting to a level less than 1 (0.6 or 0.7 could be enough for most cases). Why not simply change the Opacity property of the component? Because if you change the Opacity property of the component, the whole component will be drawn with that opacity. However, you only need the background to be transparent; the inner text must be completely opaque. This is the reason why you changed the style and not the component property.
In the case of the TEdit component, you completely removed the painting when you removed the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access