Author Topic: CB menu system confusion  (Read 41303 times)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
CB menu system confusion
« on: January 19, 2007, 12:24:47 am »
RE: bug #9942

SVN 3482 XP2

CB has a number of "duplicate" first letter menu items.
Eg., Open, Open default workspace, Close file, Close all files, etc.

When I invoke Alt-F O, CB currently jumps over the Open item and executes the  Open default workspace item. I verified this by setting a trap in the code.

When I invoke Alt-F Close, CB alternately jumps to all items beginning with C but always jumps over the Close item.

When I rename "Open default workspace" to "Xpen default workspace" Alt-F-Open then works.

I then modified the menu sample, attempting to duplicate the problem. I could not. It worked perfectly.

I made three menu items. EDummy1, EDummy2, &Exit. Alt-F-E alway exited.

What is the difference. Is there some OS options that is causing this?
« Last Edit: January 19, 2007, 12:26:51 am by Pecan »

Offline artoj

  • Almost regular
  • **
  • Posts: 206
  • Location: Supporting my team
    • http://ajonsson.kapsi.fi/
Re: CB menu system confusion
« Reply #1 on: January 19, 2007, 09:30:33 am »
It still works for me, Alt+F, O always executes the open file dialog and Alt+F, C always executes Close (no jumping). :?

Windows XP x64 Pro
Default Windows theme
Control Panel - Display - Appearance tab - Effects - "Hide underlined letters for keyboard navigation untill I press the Alt key" is unchecked.

It also works on my laptop, Ubuntu Edgy, wx 2.6.3p2 (no jumping).

EDIT:

I also tested this on Vista and I get same results. Then only entries in File menu that cause jumping are Recent projects and Recent files menus but this is understandable; they both have the same accelerator key.
« Last Edit: January 19, 2007, 02:33:46 pm by artoj »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: CB menu system confusion
« Reply #2 on: January 19, 2007, 03:23:37 pm »
It still works for me, Alt+F, O always executes the open file dialog and Alt+F, C always executes Close (no jumping). :?

Ok, so it must be a condition in the accerator tables that happens during startup.
I've turned off all &o in menu_menu.xrc except Open, but it still jumps to Open default workspace.

I took the second &r off Recent Files, and now Recent projects work ok.
But it still jumps over Close file to all the other C menu items.

Alt-File-Q has always worked ok.

Any guesses for me to look at anyone?


Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: CB menu system confusion
« Reply #3 on: January 19, 2007, 03:41:17 pm »
It still works for me, Alt+F, O always executes the open file dialog and Alt+F, C always executes Close (no jumping). :?

It also works on my laptop, Ubuntu Edgy, wx 2.6.3p2 (no jumping).


How can it work on Ubuntu? I don't have any mnemonic underlines on my Dapper at all (except on the main menuBar). Is there an option for this?

When I use Alt-F-O or any Alt-F-anything, nothing happens on Dapper.

I also have *no* mnemonic underlines on andLinux Edgy menu items (excepting the main menuBar which has them).

What am I missing here. Might be a clue.
« Last Edit: January 19, 2007, 03:51:41 pm by Pecan »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: CB menu system confusion
« Reply #4 on: January 19, 2007, 03:42:21 pm »
I also tested this on Vista and I get same results.
You've got Vista already??? :shock: And C::B works there in principle? Anything special to consider? Please tell me - that'd be great news! ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: CB menu system confusion
« Reply #5 on: January 19, 2007, 03:46:12 pm »
I also tested this on Vista and I get same results.
You've got Vista already??? :shock: And C::B works there in principle? Anything special to consider? Please tell me - that'd be great news! ;-)
With regards, Morten.

You don't want to work with Vista, really it is awful. Have tried it, the horror.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: CB menu system confusion
« Reply #6 on: January 19, 2007, 03:53:19 pm »
I also tested this on Vista and I get same results.
You've got Vista already??? :shock: And C::B works there in principle? Anything special to consider? Please tell me - that'd be great news! ;-)
With regards, Morten.

You don't want to work with Vista, really it is awful. Have tried it, the horror.

How about all you out there with XP? Does your Alt-F-Open menu item work?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: CB menu system confusion
« Reply #7 on: January 19, 2007, 03:54:58 pm »
You don't want to work with Vista, really it is awful. Have tried it, the horror.
That's true, but at work it seems I have to (soon) and it would be horrible if C::B wouldn't work then... that's why I'm so interested in this.
BTW: An upgrade here in Germany for my WinXP-Pro (keeping the functionality I have with it -> so at least Business) would cost me 249 Euro!!! That's *way* more I paid for WinXP Pro (full). I don't get what's the sense of this. Does MS want to squeeze the last cent's out of it's (private) customers?
With regards, Morten.
Ps.: Anyway, let's not start a MS flaming.
« Last Edit: January 19, 2007, 03:57:19 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: CB menu system confusion
« Reply #8 on: January 19, 2007, 03:56:20 pm »
How about all you out there with XP? Does your Alt-F-Open menu item work?
Sorry for hijacking this thread... :oops:
And: No, it doesn't (never tried that before - always use STRG+O).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: CB menu system confusion
« Reply #9 on: January 19, 2007, 03:57:36 pm »
You don't want to work with Vista, really it is awful. Have tried it, the horror.
That's true, but at work it seems I have to (soon) and it would be horrible if C::B wouldn't work then... that's why I'm so interested in this.
BTW: An upgrade here in Germany for my WinXP-Pro (keeping the functionality I have with it -> so at least Business) would cost me 249 Euro!!! That's *way* more I paid for WinXP Pro (full). I don't what's the sense of this. Does MS want to squeeze the last cent's out of it's (private) customers?
With regards, Morten.
Ps.: Anyway, let's not start a MS flaming.

Could you take vista to some other thread? I'm trying to catch a bug here!

thanks
pecan

Offline artoj

  • Almost regular
  • **
  • Posts: 206
  • Location: Supporting my team
    • http://ajonsson.kapsi.fi/
Re: CB menu system confusion
« Reply #10 on: January 19, 2007, 03:58:59 pm »
I've solved the bug, use the patched version of wxWidgets DLL:

http://prdownload.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch.7z

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: CB menu system confusion
« Reply #11 on: January 19, 2007, 04:01:58 pm »
How about all you out there with XP? Does your Alt-F-Open menu item work?
Sorry for hijacking this thread... :oops:
And: No, it doesn't (never tried that before - always use STRG+O).

Thanks, would you also try Alt-F-Close with a file open and tell me what happens.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2877
Re: CB menu system confusion
« Reply #12 on: January 19, 2007, 04:05:17 pm »
I've solved the bug, use the patched version of wxWidgets DLL:

http://prdownload.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch.7z

Is this why you're saying you're Windows and Ubuntu works? Because of the patched wxWidgets 2.6.3 version?

Wouldn't that mean that ALL users of XP should be having the problem?

Offline artoj

  • Almost regular
  • **
  • Posts: 206
  • Location: Supporting my team
    • http://ajonsson.kapsi.fi/
Re: CB menu system confusion
« Reply #13 on: January 19, 2007, 04:21:19 pm »
Is this why you're saying you're Windows and Ubuntu works? Because of the patched wxWidgets 2.6.3 version?

Yeah, switching between the two dlls shows the issue. The older has the issue, the new one doesn't. Originally the "new" dll was created to fix the alignment issue in the menus but apparently it fixes this one as well.

I don't know if wxGTK ever even had the jumping.

Quote
Wouldn't that mean that ALL users of XP should be having the problem?

Correct, unless they update the wx dll.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: CB menu system confusion
« Reply #14 on: January 19, 2007, 04:21:29 pm »
Thanks, would you also try Alt-F-Close with a file open and tell me what happens.
Right, so as for Alt-F-O the menu just closes and nothing happens.
For Alt-F-C the menu remains open and it iterates all Close commands (cycling when continuing to press C).
But: Those Close command don't have an accelerator on my C::B.
With regards, Morten.

Edit: BTW: I'm *not* using the patched wxWidgets variant, just "plain" 2.6.3-P2. Maybe I should  apply the C::B patches to wxWidgets? BTW: Where are they?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ