The plugin documentation mentions that you can rebuild the entire main menu but does not provide an example for doing this. I have decided to post my customized menu for anyone else that might be looking to do this too.
BTW - If anyone knows how to display the hotkeys associated to a menu function I would be interested. I can put the text there but it does not line up the way the user would expect. I also tried using the "\t" sequence but that did not work either.
I pretty much run mine in SDI mode so I removed a lot of the Windows functions but you can easily put those back if you prefer MDI. I also only work with English documents so the language option is also missing.
Sorry about that, I went back and tried again and it worked.
It is a bit disappointing in that there is no way to save the hotkeys in an easy to read script like the one above. I even looked in the registry and the INI file and it seems that the program reads/saves the menus in binary format. That certainly makes sense from a performance point of view.
I did however find a small bug when working on this project. I was using a clean version of AkelPad and made all of the changes we noted using the ContextMenu dialog. I clicked OK on the dialog and all of the menus looked correct. I then opened settings and changed from registry to INI. The context menu was reverted back to the original. I made some more changes in INI mode and then switched back to registry. When I made the switch back all of my original changes were still there. I guess the settings update is not triggering ContextMenu or perhaps the main program is not dumping the entire registry. Either way I thought you should know.
BTW - The icon for new window is the same as new document. This can be a bit confusing so your users can also use this: Icon("%windir%\system32\shell32.dll", 2)
I did however find a small bug when working on this project. I was using a clean version of AkelPad and made all of the changes we noted using the ContextMenu dialog. I clicked OK on the dialog and all of the menus looked correct. I then opened settings and changed from registry to INI. The context menu was reverted back to the original. I made some more changes in INI mode and then switched back to registry. When I made the switch back all of my original changes were still there. I guess the settings update is not triggering ContextMenu or perhaps the main program is not dumping the entire registry. Either way I thought you should know.
(Neither AkelPad nor plugins does not dump registry. They are reading settings from it(when settings storage is Registry), and then saving settings there(again only if settings storage is Registry).
When you switching AkelPad from one settings storsge to other(INI->Reg or Reg->INI), AkelPad mark this internally(not writing any data). When AkelPad exits correctly, it saves settings into configured storage.
ContextMenu and other plugins save their settings only when it is necessary: when something changes them(via UI or some internals conditions). So if you want pluings to save settings in newly selected storage you should open their settings UI and apply settings there(just press Ok, not changing anything). If you have not did that and reloaded AkelPad, plugins will try to read their settings from new location which is perhaps old or not exists(default values will be loadad).
I would then ask that this be turned into a feature request as it is not very intuitive. It is also one thing that could actually anger a customer. In my case it was no big deal but to others moving their settings from one computer to another might be a little upset if not all of their settings were saved.
I think even you have to admit that cycling through all of your plugin settings can be a little tedious.
I think even you have to admit that cycling through all of your plugin settings can be a little tedious.
Yes, may be it is tedious, but I personally will not support this feature request. I already requested such feature in past, but since I developed my first plugin I have changed my mind.
keith, I cannot explain why in two words. I spent a number of hours developing plugins. I spent a number of hours analysing AkelPad source. And I know one gold rule: if it works then do not touch it without critical necessity. I do not consider your feature request as critical necessity, so will not support.
I have recenltly started using AP, and know nothing about programming yet.
My primary use for AP was to attempt to automate the word processing of large .txt files I receive almost daily from their strict 80 column format to something much less restrictive.
Did I miss something or is the keyboard command to highlight specific columns (blocks) of text missing from the menus? And can this custom menu correct that?
By mere trial and error, and intuition, the command is Alt-Shift-Left Mouse (and drag to highlight the desired column (block).
warnercraft
1) When using the mouse is enough Alt+LMouse (Shift not required)
If you use only the keyboard Alt+Shift+Arrow
And check the word wrap mode is disabled!
My dilemma was that I had used AP months ago, quit for the summer. Came back to it and couldnt remember where I saw the command on how to select the column or block., I couldnt find it in any commands menu, only how to paste it. It seemed like an oversight.
We all know Ctrl S saves, Ctrl C copys, and Ctrl Alt Delete ... well.
When do we get a Ctrl-$ to have a million bucks deposited electronically?