Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: nanyu on August 28, 2009, 07:58:50 am

Title: Can we move these menu items position?
Post by: nanyu on August 28, 2009, 07:58:50 am
move them to "view" (from "Edit")?

current                                  | move to..
----------------------------------------------------------
Edit -> Special commands       | View -> Zoom
   -> Zoom                            |
----------------------------------------------------------
Edit -> Highlight mode            | View -> Highlight mode
----------------------------------------------------------

Title: Re: Can we move these menu items position?
Post by: nanyu on August 31, 2009, 02:32:09 pm
It's a question.
Title: Re: Can we move these menu items position?
Post by: blueshake on August 31, 2009, 02:44:07 pm
i am confuse by the context menu,
every time when i want to copy and paste
i have to right click and choose edit ,then
do what i want to .
Title: Re: Can we move these menu items position?
Post by: ollydbg on October 15, 2009, 05:34:38 pm
i am confuse by the context menu,
every time when i want to copy and paste
i have to right click and choose edit ,then
do what i want to .

This is quite annoying for me, so, I just search the C::B source, but I can't find where does these menu items added... :(

Edit:

I find it, in the cbeditor.cpp

Code
// Creates a submenu for a Context Menu based on the submenu's specific Id
wxMenu* cbEditor::CreateContextSubMenu(long id)
{
    cbStyledTextCtrl* control = GetControl();
    wxMenu* menu = 0;
    if(id == idInsert)
    {
        menu = new wxMenu;
        menu->Append(idEmptyMenu, _("Empty"));
        menu->Enable(idEmptyMenu, false);
    }
    else if(id == idEdit)
    {
        menu = new wxMenu;
        menu->Append(idUndo, _("Undo"));
        menu->Append(idRedo, _("Redo"));
        menu->Append(idClearHistory, _("Clear changes history"));
        menu->AppendSeparator();
        menu->Append(idCut, _("Cut"));
        menu->Append(idCopy, _("Copy"));
        menu->Append(idPaste, _("Paste"));
        menu->Append(idDelete, _("Delete"));
        menu->AppendSeparator();
        menu->Append(idUpperCase, _("UPPERCASE"));
        menu->Append(idLowerCase, _("lowercase"));
        menu->AppendSeparator();
        menu->Append(idSelectAll, _("Select All"));

So, you can change it. :D