Author Topic: Can we move these menu items position?  (Read 5397 times)

Offline nanyu

  • Almost regular
  • **
  • Posts: 188
  • nanyu
Can we move these menu items position?
« 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
----------------------------------------------------------

« Last Edit: August 31, 2009, 02:32:51 pm by nanyu »

Offline nanyu

  • Almost regular
  • **
  • Posts: 188
  • nanyu
Re: Can we move these menu items position?
« Reply #1 on: August 31, 2009, 02:32:09 pm »
It's a question.

Offline blueshake

  • Regular
  • ***
  • Posts: 458
Re: Can we move these menu items position?
« Reply #2 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 .
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6077
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: Can we move these menu items position?
« Reply #3 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
« Last Edit: October 15, 2009, 05:39:18 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.