AkelPad Forum Index AkelPad
Support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Scripts discussion (2)
Goto page Previous  1, 2, 3 ... 34, 35, 36 ... 94, 95, 96  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    AkelPad Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Thu May 17, 2012 5:25 pm    Post subject: Reply with quote

Updated:
FileAndStream_2052.lng
Translator_Chinese-Simplified.lng
by cnnnc
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Thu May 17, 2012 6:46 pm    Post subject: Reply with quote

FileAndStream_functions.js

Fixed: EnumStreams() function.
On WinVista and Win7, function returned incorrect name of NTFS streams.
As a result, it was impossible to perform any operations on streams in script FileAndStream.js.
Required: Scripts plugin ver. 11.0.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Sun May 20, 2012 5:34 pm    Post subject: Reply with quote

FileAndStream.js
Added: history of directories and undo/redo.
Fixed: minor bugs.
Changed: *.lng files.

Please also download new version of FileAndStream_functions.js (2012-05-17).
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Mon May 21, 2012 5:31 pm    Post subject: Reply with quote

Updated: FileAndStream_2052.lng by cnnnc.
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Mon May 21, 2012 6:32 pm    Post subject: Reply with quote

VladSh
In script FullScreenWithToolBar.js, can you add: full screen with main menu?
Back to top
View user's profile Send private message
VladSh



Joined: 29 Nov 2006
Posts: 2584
Location: Киев, Русь

PostPosted: Tue May 22, 2012 9:36 am    Post subject: Reply with quote

KDJ
Yes, but do not know how to do it.
Actually, I want to change the script so that can further customize the display: statusbar, codefold, explorer, main menu.
Back to top
View user's profile Send private message Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Tue May 22, 2012 10:02 am    Post subject: Reply with quote

VladSh
Try to do something like that:
Code:
...
else      //Переход из в обычного режима в полноэкранный
{
var oSys = AkelPad.SystemFunction();
var hMainWnd = AkelPad.GetMainWnd();
var hMenu = oSys.Call("user32::GetMenu", hMainWnd);

if (AkelPad.IsPluginRunning(pToolBar))
   AkelPad.Call(pToolBar);      //без этой строки не работает, т.е. надо сначала отключить тулбар
   
   AkelPad.Call(pFullScreen);
   
oSys.Call("user32::SetMenu", hMainWnd, hMenu);

//   if (!AkelPad.IsPluginRunning(pToolBar))      //если тулбар отключён - включаем
      AkelPad.Call(pToolBar);
}
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Tue May 22, 2012 6:54 pm    Post subject: Reply with quote

EnumerateWindows_functions.js
Added: EnumTopLevelWindows() function returns also handle to menu assigned to the window.

WindowsList.js
Added: info about handle to menu assigned to the window.
Changed: keyboard shortcut F5 -> F9.
Back to top
View user's profile Send private message
VladSh



Joined: 29 Nov 2006
Posts: 2584
Location: Киев, Русь

PostPosted: Wed May 23, 2012 9:55 am    Post subject: Reply with quote

FullScreenWithToolBar.js, по причине доработки функционала, переименован в FullScreenEx.js, изменились правила задания аргументов; прошу прощения за неудобство Smile

KDJ
Thanks!


Есть ограничение (думаю, что оно временное): если запустить скрипт такой строкой:
Code:
-"Clipboard + Log" Call("Scripts::Main", 1, "FullScreenEx.js", `-Clipboard=true -Log=true`)
затем выйти из полноэкранного режима, а затем опять вызвать скрипт этой же строкой, то прога падает.
Back to top
View user's profile Send private message Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Wed May 23, 2012 5:52 pm    Post subject: Reply with quote

VladSh
In FullScreenEx.js, I propose to reduce length of argument strings:
Code
Code:
...
// -"С тулбаром по умолчанию" Call("Scripts::Main", 1, "FullScreenEx.js", `-ToolBar="ToolBar"`)
// -"С панелями для работы с XML" Call("Scripts::Main", 1, "FullScreenEx.js", `-ToolBar="ToolBar-XML" -CodeFold=1`)
// -"Псевдо-SDI" Call("Scripts::Main", 1, "FullScreenEx.js", `-ToolBar="ToolBar" -Menu=1 -StatusBar=1`)
...
var pToolBar = AkelPad.GetArgValue("ToolBar", "");
if (pToolBar)
   pToolBar += "::Main";
...
   var bLog = AkelPad.GetArgValue("Log", 0);
   var bClipboard = AkelPad.GetArgValue("Clipboard", 0);
...
Back to top
View user's profile Send private message
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Wed May 23, 2012 8:28 pm    Post subject: Reply with quote

FileInfo.js
Added: now the script works also in SDI mode.
Back to top
View user's profile Send private message
VladSh



Joined: 29 Nov 2006
Posts: 2584
Location: Киев, Русь

PostPosted: Thu May 24, 2012 9:08 am    Post subject: Reply with quote

KDJ
Yes, yesterday was just thinking about it Smile
Changed.
Back to top
View user's profile Send private message Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Thu May 24, 2012 6:50 pm    Post subject: Reply with quote

VladSh
I think, you can still add a dialog box for setting arguments ("FullScreen settings") and saving them in .ini file.
Have you thought about this too? Wink
Back to top
View user's profile Send private message
VladSh



Joined: 29 Nov 2006
Posts: 2584
Location: Киев, Русь

PostPosted: Fri May 25, 2012 8:14 am    Post subject: Reply with quote

KDJ
Save to ini suggests - it's one set, the arguments are much more flexible. I do not consider it appropriate.
Although it is possible to make a other script that will work with the dialogue and save to ini and call my script for basic work. In my opinion, this is the best option.
Back to top
View user's profile Send private message Visit poster's website
KDJ



Joined: 06 Mar 2010
Posts: 1263
Location: Poland

PostPosted: Fri May 25, 2012 6:41 pm    Post subject: Reply with quote

VladSh
I don't want to use INI file instead of arguments.
I meant to extend functionality of the script by adding argument "Settings".
If argument "Settings" was not used, the script works as before.
If "-Settings=1" then script reads the variables (bToolBar, bToolBar1, ..., bLog, bClipboard, bExplorer, bCodeFold, bStatusBar, bMenu) from INI file.
If "-Settings=2", the script calls dialog with checkboxes to set the variables and save them in INI file:
------------------------
FullScreen settings
------------------------
Visible:
[v]Menu
[ ]ToolBar
[v]ToolBar1
[ ]ToolBar2
...
[ ]Log
[ ]Clipboard
[ ]Explorer
[v]CodeFold
[ ]StatusBar
----------------------
OK Cancel
----------------------
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    AkelPad Forum Index -> Plugins All times are GMT
Goto page Previous  1, 2, 3 ... 34, 35, 36 ... 94, 95, 96  Next
Page 35 of 96

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group