Discuss and announce AkelPad plugins
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Mon Apr 30, 2012 5:37 pm
F. Phoenix
You can temporarily disable WordWrap:
Code: Select all
var nWordWrap = AkelPad.SendMessage(AkelPad.GetEditWnd(), 3241 /*AEM_GETWORDWRAP*/, 0, 0);
if (nWordWrap > 0) AkelPad.Command(4209 /*IDM_VIEW_WORDWRAP*/);
var cur = AkelPad.SendMessage(AkelPad.GetEditWnd(), 187 /*EM_LINEINDEX*/, line - 1, 0);
AkelPad.SetSel(cur, cur);
if (nWordWrap > 0) AkelPad.Command(4209 /*IDM_VIEW_WORDWRAP*/);
Offline
Posts: 176 Joined: Sat Dec 24, 2011 4:05 pm
Post
by F. Phoenix » Mon Apr 30, 2012 5:45 pm
Infocatcher , ага, спасиб.
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Mon Apr 30, 2012 6:12 pm
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Tue May 01, 2012 4:49 pm
InputBox_function.js
Added:
argument nFocus - index of vEdit array item, on which will set keyboard focus.
Changed:
if will pressed OK button, return value is:
- array of strings - if vEdit is array (also empty array),
- string - otherwise.
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Tue May 01, 2012 5:06 pm
Scripts-Eng.txt wrote: AkelPad.ThreadHook
...
The maximum number of installed hooks at the same time is 4.
Whether in the case of the following methods:
AkelPad.SystemFunction().RegisterCallback
AkelPad.WindowRegisterClass
AkelPad.WindowSubClass
there is a limit on the number of registered functions at the same time?
Offline
Posts: 1862 Joined: Mon Aug 06, 2007 1:07 pm
Contact:
Post
by Infocatcher » Sat May 05, 2012 9:54 am
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Sat May 05, 2012 12:17 pm
FileAndStream.js
Added:
- favorite applications (menu - "Applications" and "Run", context menu - "Open in favorite").
- displayed name in menu for external applications (viewer, editor, comparer),
- option "Special folders" in menu "Directory".
Changed *.lng files.
Fixed bug in swap panels.
Offline
Site Admin
Posts: 6311 Joined: Thu Jul 06, 2006 7:20 am
Post
by Instructor » Sat May 05, 2012 3:26 pm
KDJ
AkelPad.SystemFunction().RegisterCallback - the maximum number of working callback functions at the same time is 4.
AkelPad.WindowRegisterClass - without limit.
AkelPad.WindowSubClass - without limit.
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Sat May 05, 2012 5:55 pm
Instructor
Thank you very much for your response. This is important information. Can you add this in Scripts-Eng.txt.
Offline
Site Admin
Posts: 6311 Joined: Thu Jul 06, 2006 7:20 am
Post
by Instructor » Sat May 05, 2012 6:10 pm
KDJ
Already is.
Offline
Site Admin
Posts: 6311 Joined: Thu Jul 06, 2006 7:20 am
Post
by Instructor » Sun May 06, 2012 12:59 pm
KDJ
FileAndStream.js
LVM_DELETEALLITEMS, LVM_INSERTITEM processed much faster if you turn off control repaining with WM_SETREDRAW:
code code Code: Select all
function FillFileList(nPan, sSelFile, nSelPos, bCheckFilter)
{
...
var bResult;
AkelPad.SendMessage(aWnd[IDFILELV0 + nPan][HWND], 0xB /*WM_SETREDRAW*/, false, 0);
if (hFindFile != -1) //INVALID_HANDLE_VALUE
{
...
AkelPad.MemFree(lpTimeStr);
bResult = true;
}
else
{
if (aCurDir[nPan][aCurDrive[nPan]].Path.length == 3)
{
...
bResult = true;
}
else
bResult = false;
}
AkelPad.SendMessage(aWnd[IDFILELV0 + nPan][HWND], 0xB /*WM_SETREDRAW*/, true, 0);
return bResult;
}
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Sun May 06, 2012 2:45 pm
Instructor
Oh, indeed. Thank you very much.
I'll do it in the next version of the script.
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Sun May 06, 2012 3:32 pm
InputBox_function.js
Added: argument sFunction - name of the function used to validate entered data.
Offline
Posts: 1949 Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland
Post
by KDJ » Sun May 06, 2012 7:36 pm
FileAndStream.js
Changed: uses new version InputBox_function.js.
Fixed: refresh speed of the files list.
Offline
Posts: 1862 Joined: Mon Aug 06, 2007 1:07 pm
Contact:
Post
by Infocatcher » Mon May 07, 2012 9:07 pm
CodePoster_mod.js
Changed: used <strong> and <em> in XHTML mode.
Improved: don't get output twice.
Improved: tries merge sibling regions with same formatting.
P.S. А еще в оригинальном скрипте не хватает экспорта пользовательских пометок.