Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Can we move these menu items position?

(1/1)

nanyu:
move them to "view" (from "Edit")?

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

nanyu:
It's a question.

blueshake:
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 .

ollydbg:

--- Quote from: 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 .

--- End quote ---

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

--- End code ---

So, you can change it. :D

Navigation

[0] Message Index

Go to full version