H
Hans Merkl
Hi,
I am trying to implement a context menu that is 50% transparent. Setting
the opacity to 0.5 works but unfortunately the texts are also displayed
with transparency which makes them very hard to read.
Now I would like to draw the menu background with transparency but the text
without.
I have tried various approaches without success:
- Implement a ToolstripRenderer: Draws a gray background despite overriding
all overridable methods
- Handle Paint event of each menu item: Text gets drawn with transparency
Does anybody have an idea how to approach this?
Thanks in advance,
Hans
I am trying to implement a context menu that is 50% transparent. Setting
the opacity to 0.5 works but unfortunately the texts are also displayed
with transparency which makes them very hard to read.
Now I would like to draw the menu background with transparency but the text
without.
I have tried various approaches without success:
- Implement a ToolstripRenderer: Draws a gray background despite overriding
all overridable methods
- Handle Paint event of each menu item: Text gets drawn with transparency
Does anybody have an idea how to approach this?
Thanks in advance,
Hans