Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function that goes (displays) line "n" in a qm-item
#1
I understand, and used very frequently, that mac+ opens a macro in editor. I wonder whether there exists an ancillary function that goes (displays) line "n" in this macro. I have some ideas to write it, but it is obvious anything ready - written by Gintaras - will be much more efficient and elegant.

Many thanks in advance.
#2
Macro open macro and go to line n
Code:
Copy      Help
str macro="ShowDialog"
int n=10 ;;1-based line index

;open macro and go to line n
mac+ macro
SendMessage GetQmCodeEditor SCI.SCI_GOTOLINE n-1 0

;display a link in QM output or other control that supports tags
str s=
F
;<><open "{macro} /L10">open ShowDialog and go to line {n}.</open> QM 2.3.2.
out s
#3
Many thanks for an excellent advice.


Forum Jump:


Users browsing this thread: 1 Guest(s)