| View previous topic :: View next topic |
| Author |
Message |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Mon Apr 30, 2012 5:37 pm Post subject: |
|
|
F. Phoenix
You can temporarily disable WordWrap: | Code: | 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*/); |
|
|
| Back to top |
|
 |
F. Phoenix
Joined: 24 Dec 2011 Posts: 113
|
Posted: Mon Apr 30, 2012 5:45 pm Post subject: |
|
|
| Infocatcher, ага, спасиб. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Tue May 01, 2012 4:49 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Tue May 01, 2012 5:06 pm Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
Infocatcher
Joined: 06 Aug 2007 Posts: 1431
|
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sat May 05, 2012 12:17 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Sat May 05, 2012 3:26 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sat May 05, 2012 5:55 pm Post subject: |
|
|
Instructor
Thank you very much for your response. This is important information. Can you add this in Scripts-Eng.txt. |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Sat May 05, 2012 6:10 pm Post subject: |
|
|
KDJ
Already is. |
|
| Back to top |
|
 |
Instructor Site Admin
Joined: 06 Jul 2006 Posts: 4640
|
Posted: Sun May 06, 2012 12:59 pm Post subject: |
|
|
KDJ
FileAndStream.js
LVM_DELETEALLITEMS, LVM_INSERTITEM processed much faster if you turn off control repaining with WM_SETREDRAW: code | Code: | 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;
}
|
|
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sun May 06, 2012 2:45 pm Post subject: |
|
|
Instructor
Oh, indeed. Thank you very much.
I'll do it in the next version of the script. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sun May 06, 2012 3:32 pm Post subject: |
|
|
InputBox_function.js
Added: argument sFunction - name of the function used to validate entered data. |
|
| Back to top |
|
 |
KDJ
Joined: 06 Mar 2010 Posts: 1067 Location: Poland
|
Posted: Sun May 06, 2012 7:36 pm Post subject: |
|
|
FileAndStream.js
Changed: uses new version InputBox_function.js.
Fixed: refresh speed of the files list. |
|
| Back to top |
|
 |
Infocatcher
Joined: 06 Aug 2007 Posts: 1431
|
Posted: Mon May 07, 2012 9:07 pm Post subject: |
|
|
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. А еще в оригинальном скрипте не хватает экспорта пользовательских пометок. |
|
| Back to top |
|
 |
|