Scripts discussion (2)

Discuss and announce AkelPad plugins
Locked
  • Author
  • Message
KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

Visitor7
I was unable to reproduce this.
Try new version: FontCycleSwitch.js

Offline
Posts: 3243
Joined: Wed Nov 29, 2006 1:19 pm
Location: Киев, Русь
Contact:

Post 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 = [[...

Offline
Posts: 88
Joined: Sun Jun 03, 2012 8:15 am

Post by Visitor7 »

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

Offline
Posts: 3243
Joined: Wed Nov 29, 2006 1:19 pm
Location: Киев, Русь
Contact:

Post by VladSh »

Instructor
Отсюда:
Сейчас пробую написать аналог ChmKw.exe, чтобы обойти проблему.
Вы всё-таки тогда писали свой ChmKw или остановились на имеющемся?

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post 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?

Offline
Posts: 3243
Joined: Wed Nov 29, 2006 1:19 pm
Location: Киев, Русь
Contact:

Post 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.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

VladSh
How to do this?
Will this work:
AkelPad.SendMessage(hEditWnd, 0x0030 /*WM_SETFONT*/, hFont, 1);

Offline
Site Admin
Posts: 6411
Joined: Thu Jul 06, 2006 7:20 am

Post by Instructor »

VladSh wrote:Вы всё-таки тогда писали свой ChmKw или остановились на имеющемся?
Тогда я писал о ChmKeyword.js, который успешно был дописан.

Offline
Posts: 3243
Joined: Wed Nov 29, 2006 1:19 pm
Location: Киев, Русь
Contact:

Post by VladSh »

Instructor
А.. То я хотел найти читалку для chm, чтобы и эти функции были и чтобы можно было перебить стили фона и текста, которые внутри в html зашиты, - хочу всё перевести на тёмные темы, т.к. на глаза меньше нагрузка. Пока такой проги не нашёл.

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

VladSh
Test this: FontCycleSwitch.js

Offline
Posts: 88
Joined: Sun Jun 03, 2012 8:15 am

Post by Visitor7 »

А как в JS получить из акелпада состояние баров(тул,таб,статус)?

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post 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");

KDJ
Offline
Posts: 1949
Joined: Sat Mar 06, 2010 7:40 pm
Location: Poland

Post by KDJ »

ScreenView.js
Added: CodeFoldList window.

Offline
Posts: 3243
Joined: Wed Nov 29, 2006 1:19 pm
Location: Киев, Русь
Contact:

Post by VladSh »

KDJ wrote:Test this: FontCycleSwitch.js
Thanks! Excellent!

Offline
Posts: 366
Joined: Mon Jan 10, 2011 5:28 pm
Contact:

Post by Lenchik »

Instructor wrote:CodePoster.js - экспортирование подсвеченного текста в HTML или BBCode.
Просьба добавить в скрипт возможность задать цветовую тему, а не пользоваться той, в которой работаешь.
Locked