How to draw over child elements of a Composite in SWT?

前端 未结 2 978
忘了有多久
忘了有多久 2021-01-02 11:06

I understand to draw on a Composite, you can add a paint listener, but that results in drawing under the children. What if I want to draw over the top of children?

T

2条回答
  •  别那么骄傲
    2021-01-02 11:38

    Unfortunately this is not an implemented feature, as you can see in Bug#114749.

    You'd have to code your own custom solution (e.g, calculation the drawing area for each affected composite and then draw on each).

    Its quite an old bug, but upvoting is always a good idea if you think this is a "must have".

提交回复
热议问题