Page 38 of 96

Posted: Tue Jun 05, 2012 5:25 pm
by KDJ
Visitor7
I was unable to reproduce this.
Try new version: FontCycleSwitch.js

Posted: Tue Jun 05, 2012 5:45 pm
by VladSh
KDJ
The idea is excellent.

One point - when I switch around my original font is not returned.
We must first analyze the original font, and:
- if the font is not listed, then add it to the configuration file to the top;
- if so, take the following from his position.

Second - parameter in the argument: change the font within the entire program or just for the current document.

Perhaps a parameter in the arguments - iterate in reverse order.
Iterating:
["Arial",1,9],
["Arial",1,10],
["Arial",1,11],
["Arial",1,12]
You can overfly, and I would like to be able to quickly return :)

Well, I would still removed from the scriptis: var aFonts = [[...

Posted: Tue Jun 05, 2012 9:22 pm
by Visitor7
KDJ
Здорво, вынесли список и переменную в отдельный файл. Так недалеко и полноценный плагин для Akelpad сделать)))))
глюки которые у меня происходили, не зависят от скрипта. Просто в SDI в полноэкранных режимах с включенным переносом, при переходе с более крупных шрифтов на более мелкие(когда количество отображаемых строк должно уменьшаться за счет большей емкости), на специфичных документах(в частности двух ваших первых скриптах) - они происходят. Много пробовал, но четкой закономерности так и не вычислил.
Обновил Akelpad с 4.7.5 на 4.7.6, глюки прошли.

Posted: Wed Jun 06, 2012 12:19 pm
by VladSh
Instructor
Отсюда:
Сейчас пробую написать аналог ChmKw.exe, чтобы обойти проблему.
Вы всё-таки тогда писали свой ChmKw или остановились на имеющемся?

Posted: Wed Jun 06, 2012 6:07 pm
by KDJ
VladSh wrote:...
Second - parameter in the argument: change the font within the entire program ...
Do you have in mind, change the font in all opened MDI windows?
Is there a simple way to do this?

Posted: Wed Jun 06, 2012 8:12 pm
by VladSh
KDJ
No, the opposite. Now change the global font settings. And I would like, and that this can be done only for the current document.
So as works Local-argument in ShiftTabSize.js.

Posted: Thu Jun 07, 2012 12:23 pm
by KDJ
VladSh
How to do this?
Will this work:
AkelPad.SendMessage(hEditWnd, 0x0030 /*WM_SETFONT*/, hFont, 1);

Posted: Thu Jun 07, 2012 6:29 pm
by Instructor
VladSh wrote:Вы всё-таки тогда писали свой ChmKw или остановились на имеющемся?
Тогда я писал о ChmKeyword.js, который успешно был дописан.

Posted: Thu Jun 07, 2012 6:47 pm
by VladSh
Instructor
А.. То я хотел найти читалку для chm, чтобы и эти функции были и чтобы можно было перебить стили фона и текста, которые внутри в html зашиты, - хочу всё перевести на тёмные темы, т.к. на глаза меньше нагрузка. Пока такой проги не нашёл.

Posted: Thu Jun 07, 2012 7:14 pm
by KDJ
VladSh
Test this: FontCycleSwitch.js

Posted: Mon Jun 11, 2012 11:54 am
by Visitor7
А как в JS получить из акелпада состояние баров(тул,таб,статус)?

Posted: Mon Jun 11, 2012 1:48 pm
by KDJ
Visitor7
Tab and StatusBar, see in AkelDLL.h (AkelPad sources):
AKD_GETMAININFO, MI_TABOPTIONSMDI,
AKD_GETMAININFO, MI_STATUSBAR.

ScrollBars, see in AkelEdit.h:
AEM_SHOWSCROLLBAR.

ToolBar, see in Scripts-Eng.txt or Scripts-Rus.txt:
AkelPad.IsPluginRunning("ToolBar::Main");

Posted: Mon Jun 11, 2012 5:06 pm
by KDJ
ScreenView.js
Added: CodeFoldList window.

Posted: Tue Jun 12, 2012 8:25 am
by VladSh
KDJ wrote:Test this: FontCycleSwitch.js
Thanks! Excellent!

Posted: Tue Jun 12, 2012 10:42 am
by Lenchik
Instructor wrote:CodePoster.js - экспортирование подсвеченного текста в HTML или BBCode.
Просьба добавить в скрипт возможность задать цветовую тему, а не пользоваться той, в которой работаешь.