Sorry, my statement above is incorrect
I want to add the following function to sub function #sub DisableEnableAutoText
________________________________________________________________________________
case 7 ;;Sort autotext in qm not dialog
int sep
LB_SelectedItem(id(4 hDlg) _s)
str s=sub.getAutotextItem(_s sep)
ARRAY(str) a=s
a.sort(2 sub.Callback_q_sort)
s=a
s.rtrim
code: Write the sort result to the original file
mac+ _s
h=GetQmCodeEditor
act h
SendMessage(h SCI.SCI_GOTOLINE 1 0)
int ssp=SendMessage(h SCI.SCI_GETCURRENTPOS 0 0)
SendMessage(h SCI.SCI_SETSEL ssp sep)
s.setclip
SendMessage(h SCI.SCI_PASTE 0 0)
__________________________________________________________________________________
Without this sort function, I can't control the order of the same items
Autotext Autotext
Trigger $t
I want to add the following function to sub function #sub DisableEnableAutoText
________________________________________________________________________________
case 7 ;;Sort autotext in qm not dialog
int sep
LB_SelectedItem(id(4 hDlg) _s)
str s=sub.getAutotextItem(_s sep)
ARRAY(str) a=s
a.sort(2 sub.Callback_q_sort)
s=a
s.rtrim
code: Write the sort result to the original file
mac+ _s
h=GetQmCodeEditor
act h
SendMessage(h SCI.SCI_GOTOLINE 1 0)
int ssp=SendMessage(h SCI.SCI_GETCURRENTPOS 0 0)
SendMessage(h SCI.SCI_SETSEL ssp sep)
s.setclip
SendMessage(h SCI.SCI_PASTE 0 0)
__________________________________________________________________________________
Without this sort function, I can't control the order of the same items
Autotext Autotext
Trigger $t