KDJ
AkelPadMethodsView.js maybe try to search selected word (or word under caret) in methods and if found, select it?
Posted: Sun Jun 09, 2013 3:37 pm
by KDJ
Instructor
I have done it.
AkelPadMethodsView.js
Now script on start try to find in methods list the text selected in AkelPad edit window.
If found, selects the item containing the text. Otherwise, selects previously selected item.
Posted: Wed Jun 12, 2013 5:31 am
by Instructor
KDJ
Works fine, thanks.
Few users requested to add to find/replace dialog quick access to options from "Advanced" tab:
"Replace all" closes dialog
Check "In selection" if selection not empty
Cycle search
Maybe add them to FindReplaceEx.js script?
Posted: Wed Jun 12, 2013 8:15 pm
by KDJ
Instructor
Values of these options, I can retrieve using AKD_GETMAININFO:
AkelPad.SendMessage(hMainWnd, 1222 /*AKD_GETMAININFO*/, 228 /*MI_SEARCHOPTIONS*/, 0);
But I do not know how to change these options in the script?
Instructor
Thank you very much, it works perfectly.
Test version of the script (FindReplaceEx_test.js) is in KDJ.zip
There is one problem that I can not solve.
If the focus is in one of added controls to dialog box ("More" button or checkboxes), the keyboard does not work.
Please help me.
FindReplaceEx_test.js - test version for AkelPad 4.8.5: KDJ.zip
Posted: Mon Jul 01, 2013 7:06 pm
by KDJ
Instructor
About AkelPad 4.8.5 dev.
#1
AKD_SETMAININFO message with the following parameters:
MIS_AKELADMINRESIDENT,
MIS_AKELUPDATEROPTIONS,
MIS_CMDLINEBEGIN,
MIS_CMDLINEEND,
MIS_DATEINSERTFORMAT,
MIS_DATELOGFORMAT,
MIS_PAINTOPTIONS,
MIS_RICHEDITCLASS,
MIS_SHOWMODIFY,
MIS_STATUSPOSTYPE,
MIS_STATUSUSERFORMAT,
MIS_URLCOMMAND,
MIS_WORDBREAKCUSTOM
works, but when you close AkelPad, these parameters are not saved in .ini file.
#2
AkelPad.SendMessage(hMainWnd, 1219 /*AKD_SETMAININFO*/, 157 /*MIS_TABOPTIONSMDI*/, 0x10101 /*TAB_SWITCH_NEXTPREV|TAB_TYPE_STANDARD|TAB_VIEW_NONE*/);
It works, but the effect is only visible after restarting AkelPad.