News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

CB menu system confusion

Started by Pecan, January 19, 2007, 12:24:47 AM

Previous topic - Next topic

Pecan

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?

artoj

#1
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.

Pecan

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

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?


Pecan

#3
Quote from: artoj 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). :?

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.

MortenMacFly

Quote from: artoj on January 19, 2007, 09:30:33 AM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

killerbot

Quote from: MortenMacFly on January 19, 2007, 03:42:21 PM
Quote from: artoj on January 19, 2007, 09:30:33 AM
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.

Pecan

Quote from: killerbot on January 19, 2007, 03:46:12 PM
Quote from: MortenMacFly on January 19, 2007, 03:42:21 PM
Quote from: artoj on January 19, 2007, 09:30:33 AM
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?

MortenMacFly

#7
Quote from: killerbot on January 19, 2007, 03:46:12 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

Quote from: Pecan on January 19, 2007, 03:53:19 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Pecan

Quote from: MortenMacFly on January 19, 2007, 03:54:58 PM
Quote from: killerbot on January 19, 2007, 03:46:12 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

artoj


Pecan

Quote from: MortenMacFly on January 19, 2007, 03:56:20 PM
Quote from: Pecan on January 19, 2007, 03:53:19 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.

Pecan

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

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?

artoj

Quote from: Pecan on January 19, 2007, 04:05:17 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.

MortenMacFly

Quote from: Pecan on January 19, 2007, 04:01:58 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]