Bug 571931 - [StyledText] Ability to show vertical line between characters
Summary: [StyledText] Ability to show vertical line between characters
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.20   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-13 01:13 EST by Thomas Singer CLA
Modified: 2021-03-13 01:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.