SWT - Can i custom draw the background of a Text control?
... I want to draw some info icon in the background of a text control.
I know about the 开发者_如何学Cpaint event, but believe, if I do this, the entered text lies behind my custom drawn icon, not above.
You have to write the text again. Just calculate its X and Y and use gc.drawText
to write it over the original text.
精彩评论