Menu

#1350 Provide a mechanism to read EDGE_MULTILINE setting

Committed
closed
nobody
5
2020-09-11
2020-04-30
Kered13
No

If edge mode is set to EDGE_LINE or EDGE_BACKGROUND then it is possible to get the edge column with SCI_GETEDGECOLUMN. However if the edge mode is set to EDGE_MULTILINE there is no way to read the current edge columns. There should be some mechanism for this.

One possibility I can think of (working within the constraints of SendMessage) is to have a message that takes a pointer to an array as an argument. If this pointer is null, return the current number of edges. If this pointer is non-null, then populate the pointed to array with the current edge columns.

Does this seem reasonable?

Discussion

  • Neil Hodgson

    Neil Hodgson - 2020-04-30

    Policy is to avoid pointer arguments as they are more difficult for scripting languages and there can be integer size (64-bit vs 32-bit) issues.

    Define an index based approach with an out-of-bounds value for indices past the end or explicit number of edges call. Like the recent SCI_MARKERHANDLEFROMLINE and SCI_MARKERNUMBERFROMLINE addition [665c31].

     

    Related

    Commit: [665c31]

  • Neil Hodgson

    Neil Hodgson - 2020-08-25
    • labels: --> scintilla, edge
    • Group: Initial --> Committed
     
  • Neil Hodgson

    Neil Hodgson - 2020-08-25

    Committed implementation of SCI_GETMULTIEDGECOLUMN with [e72e8c] and [03c67a].

     

    Related

    Commit: [03c67a]
    Commit: [e72e8c]

  • Neil Hodgson

    Neil Hodgson - 2020-09-11
    • status: open --> closed
     
  • Neil Hodgson

    Neil Hodgson - 2020-09-11

    Committed implementation of SCI_GETMULTIEDGECOLUMN with [e72e8c] and [03c67a].

     

    Related

    Commit: [03c67a]
    Commit: [e72e8c]


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.