Bug 571931

Summary: [StyledText] Ability to show vertical line between characters
Product: [Eclipse Project] Platform Reporter: Thomas Singer <ts-swt>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.20   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Thomas Singer CLA 2021-03-13 01:13:26 EST
It should be treated as background (painted before characters). This could be used to show a position where characters were deleted.

Currently, the only workaround I've found so far is to add a (second) Paint listener which is called after the default StyledText and paints the line over the characters. But the disadvantage is that it could paint over characters. I had the case where the vertical line was drawn after a 'n' character and to the user it looked like a 'r' character as a consequence.