Page 32 of 96

Posted: Mon Apr 30, 2012 5:37 pm
by KDJ
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*/);

Posted: Mon Apr 30, 2012 5:45 pm
by F. Phoenix
Infocatcher, ага, спасиб.

Posted: Mon Apr 30, 2012 6:12 pm
by KDJ
Updated FileAndStream_2052.lng by cnnnc.

Posted: Tue May 01, 2012 4:49 pm
by KDJ
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.

Posted: Tue May 01, 2012 5:06 pm
by KDJ
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?

Posted: Sat May 05, 2012 9:54 am
by Infocatcher
measuresConverter.js
http://exchange-rates.org/converter/EEK/USD/1/N n/a now, will use http://www.google.com/ig/calculator?hl= ... K%3D%3FUSD
Added caching of calculations result.
Improved error reporting.

Posted: Sat May 05, 2012 12:17 pm
by KDJ
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.

Posted: Sat May 05, 2012 3:26 pm
by Instructor
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.

Posted: Sat May 05, 2012 5:55 pm
by KDJ
Instructor
Thank you very much for your response. This is important information. Can you add this in Scripts-Eng.txt.

Posted: Sat May 05, 2012 6:10 pm
by Instructor
KDJ
Already is.

Posted: Sun May 06, 2012 12:59 pm
by Instructor
KDJ
FileAndStream.js

LVM_DELETEALLITEMS, LVM_INSERTITEM processed much faster if you turn off control repaining with WM_SETREDRAW:

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;
}

Posted: Sun May 06, 2012 2:45 pm
by KDJ
Instructor
Oh, indeed. Thank you very much.
I'll do it in the next version of the script.

Posted: Sun May 06, 2012 3:32 pm
by KDJ
InputBox_function.js
Added: argument sFunction - name of the function used to validate entered data.

Posted: Sun May 06, 2012 7:36 pm
by KDJ
FileAndStream.js

Changed: uses new version InputBox_function.js.
Fixed: refresh speed of the files list.

Posted: Mon May 07, 2012 9:07 pm
by Infocatcher
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. А еще в оригинальном скрипте не хватает экспорта пользовательских пометок.