Menu Customization Example
Posted: Wed Dec 08, 2010 2:25 am
Hello All,
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.
Hope it helps someone.
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.
Code: Select all
CLEAR
"&File" Index(0)
{
"&New" Command(4101)
"New &Window" Command(4102)
"&Open..." Command(4103)
"&Revert" Command(4104)
SEPARATOR
"&Save" Command(4105)
"Save &As..." Command(4106)
SEPARATOR
"Pa&ge Setup..." Command(4107)
"Print Pre&view..." Command(4114)
"&Print..." Command(4108)
SEPARATOR
"Recent &Files"
{
RECENTFILES
SEPARATOR
"&Clear Missing Files" Command(5001)
}
SEPARATOR
"E&xit" Command(4109)
}
"&Edit" Index(1)
{
"U&ndo" Command(4151)
"R&edo" Command(4152)
SEPARATOR
"&Cut" Command(4153)
"C&opy" Command(4154)
"&Paste" Command(4155)
"Select &All" Command(4157)
SEPARATOR
"&Find..." Command(4158)
"Find Next Do&wn" Command(4159)
"Find Next &Up" Command(4160)
"&Replace..." Command(4161)
"&Go To..." Command(4162)
SEPARATOR
"Data"
{
"Remove Duplicate &Lines" Call(Lines::RemoveDuplicates)
"&Reverse Sorting" Call(Lines::Reverse)
"&Sort Ascending" Call(Lines::SortStrAsc)
"Sort &Descending" Call(Lines::SortStrDesc)
"Sort On 1st &Number (Asc)" Call(Lines::SortIntDesc)
"Sort On &1st Number (Des)" Call(Lines::SortIntDesc)
}
"Insert C&haracter" Command(4163)
"Insert Da&te" Command(4183)
"&Selection"
{
"Columnar Paste" Command(4192)
"Ta&b Indent" Command(4165)
"&Tab Unindent" Command(4167)
"Spa&ce Indent" Command(4169)
"Sp&ace Unindent" Command(4171)
"Delete &First Char" Command(4173)
"Trim Trailing &Whitespace" Command(4174)
SEPARATOR
"&Uppercase" Command(4175)
"&Lowercase" Command(4176)
"Se&ntence Case" Command(4177)
"Title &Case" Command(4178)
"In&vert Case" Command(4179)
SEPARATOR
"Change Codepage..." Command(4182)
}
"Newline &format"
{
"DOS/Windows (CRLF)" Command(4184)
"Unix (LF)" Command(4185)
"Mac (CR)" Command(4186)
}
"Harden Word Wrap" Call(Lines::FixWrap)
}
"&View" Index(2)
{
"&Word Wrap" +Command(4209)
"Syntax &Highlighting" +Call("Coder::HighLight") Icon("%a\AkelFiles\Plugs\Coder.dll", 0)
"Code &Folding" +Call("Coder::CodeFold") Icon("%a\AkelFiles\Plugs\Coder.dll", 1)
"Special Characters" +Call("SpecialChar::Main") Icon("%a\AkelFiles\Plugs\SpecialChar.dll", 0)
"Text Size &+" Command(4204)
"Text Size &-" Command(4205)
SEPARATOR
"&Bookmarks" Icon("%a\AkelFiles\Plugs\LineBoard.dll", 0)
{
"Enable" +Call("LineBoard::Main")
SEPARATOR
"Next bookmark" Call("LineBoard::Main::NextBookmark")
"Previous bookmark" Call("LineBoard::Main::PrevBookmark")
SEPARATOR
"Set Bookmark" Call("LineBoard::Main::SetBookmark")
"Delete Bookmark" Call("LineBoard::Main::DelBookmark")
"Delete All Bookmarks" Call("LineBoard::Main::DelAllBookmark")
SEPARATOR
"Settings..." Call("LineBoard::Settings")
}
"&Explorer Bar" +Call("Explorer::Main") Icon("%a\AkelFiles\Plugs\Explorer.dll", 0)
"He&x Panel" +Call("HexSel::Main")
"&Status Bar" +Command(4211)
"Tool Bar" +Call("ToolBar::Main")
SEPARATOR
"S&plit window" Command(4212)
"&Always On Top" +Command(4210)
}
"&Tools" Index(3)
{
"&Execute" Command(4251)
"&Plug-Ins..." Command(4259)
-"Macros..." +Call("Macros::Main") Icon("%a\AkelFiles\Plugs\Macros.dll", 0)
-"&Scripts..." +Call("Scripts::Main") Icon("%a\AkelFiles\Plugs\Scripts.dll", 0)
SEPARATOR
"Statistics..." Call("Stats::Main")
}
"&Options" Index(4)
{
"&General..." Command(4260)
"&Font..." Command(4201)
"&Colors..." Command(4202)
"&Programming..." Call("Coder::Settings") Icon("%a\AkelFiles\Plugs\Coder.dll", 0)
"&Special Characters..." Call("SpecialChar::Settings") Icon("%a\AkelFiles\Plugs\SpecialChar.dll", 0)
SEPARATOR
"Read Only" Command(4216)
"Keep Left Spaces" Command(4254)
"Watch File Change" Command(4253)
"Preserve File Time" Command(4252)
"Don't Open A File Twice" Command(4255)
"Don't Open Program Twice" Command(4256)
SEPARATOR
"&Window mode"
{
"&Single-window (SDI)" Command(4261)
"&Multi-window (MDI)" Command(4262)
"&Pseudo multi-window (PMDI)" Command(4263)
}
}
"&Help" Index(5)
{
"User Manual" Exec("HH.exe %a\AkelPad4-Eng.chm")
"Plug-in Manual" Exec("HH.exe %a\Plugins-Eng.chm")
SEPARATOR
"&About" Command(4351)
}
Hope it helps someone.