[ https://issues.apache.org/jira/browse/PIVOT-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17097712#comment-17097712 ]
Roger Lee Whitcomb commented on PIVOT-871: ------------------------------------------ Many submissions later (see PIVOT-1019 for details), this is done, with the last tweaks here: Sending tutorials/src/org/apache/pivot/tutorials/explorer/component_explorer_window.bxml Sending tutorials/src/org/apache/pivot/tutorials/explorer/tools/ComponentInspectorSkin.java Sending wtk/src/org/apache/pivot/wtk/NumberRuler.java Sending wtk/src/org/apache/pivot/wtk/NumberRulerListener.java Sending wtk/src/org/apache/pivot/wtk/skin/NumberRulerSkin.java Transmitting file data .....done Committing transaction... Committed revision 1877271. > Add a line number / character count ruler for use with scrolling text areas > --------------------------------------------------------------------------- > > Key: PIVOT-871 > URL: https://issues.apache.org/jira/browse/PIVOT-871 > Project: Pivot > Issue Type: New Feature > Components: wtk, wtk-terra > Affects Versions: 2.0.2 > Environment: All > Reporter: Roger Lee Whitcomb > Assignee: Roger Lee Whitcomb > Priority: Minor > Labels: ruler > Fix For: 2.1 > > Original Estimate: 72h > Remaining Estimate: 72h > > The idea is to take the Ruler class that is already implemented in two of the > tutorials and beef it up so that it can act as either a line number ruler > (vertical orientation) or a character count ruler (horizontal orientation) > for use with TextArea or TextPane inside a ScrollPane. It would be attached > either as the "rowHeader" or "columnHeader" of a ScrollPane with the > appropriate orientation. > By selecting the same font into the ruler as is used in the TextArea or > TextPane, presumably it would be in sync with the text. Alternatively, we > could add row height and column width styles that would override the font > metrics if there was a sizing problem. Will have to see once I get it > implemented. > There could be other possible useful styles -- again, I will have to see once > I get it implemented what might make sense. -- This message was sent by Atlassian Jira (v8.3.4#803005)