Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Current line number in QM Editor
#1
I wonder whether there exists a macro to give the current line number in QM-Editor. I am aware of the menu option "Edit - Editor Options - View Line numbers". Furthermore, is there any macro to go to line "n" in QM-Editor.

Many thanks in advance.
#2
Macro Macro2730
Code:
Copy      Help
int h=GetQmCodeEditor
int pos=SendMessage(h SCI.SCI_GETANCHOR 0 0)
int line=SendMessage(h SCI.SCI_LINEFROMPOSITION pos 0)
out line

line=2
SendMessage(h SCI.SCI_GOTOLINE line 0)

http://www.scintilla.org/ScintillaDoc.html


Forum Jump:


Users browsing this thread: 1 Guest(s)