Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Pecan on January 19, 2007, 12:24:47 am

Title: CB menu system confusion
Post by: Pecan 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?
Title: Re: CB menu system confusion
Post by: 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). :?

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.
Title: Re: CB menu system confusion
Post by: Pecan 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?

Title: Re: CB menu system confusion
Post by: Pecan 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.
Title: Re: CB menu system confusion
Post by: MortenMacFly 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.
Title: Re: CB menu system confusion
Post by: killerbot 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.
Title: Re: CB menu system confusion
Post by: Pecan 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?
Title: Re: CB menu system confusion
Post by: MortenMacFly 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.
Title: Re: CB menu system confusion
Post by: MortenMacFly 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).
Title: Re: CB menu system confusion
Post by: Pecan 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
Title: Re: CB menu system confusion
Post by: 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 (http://prdownload.berlios.de/codeblocks/wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch.7z)
Title: Re: CB menu system confusion
Post by: Pecan 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.
Title: Re: CB menu system confusion
Post by: Pecan 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 (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?
Title: Re: CB menu system confusion
Post by: artoj 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.
Title: Re: CB menu system confusion
Post by: MortenMacFly 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?
Title: Re: CB menu system confusion
Post by: Pecan on January 19, 2007, 04:26:42 pm
Ok, so it looks like a wxWidgets menu bug.

That makes sense.

But it does not explain how this should be working on Ubuntu.
I don't event get the mnemonic underlines in Ubuntu.

Does anyone (artoj?) get Linux underlines for Alt-F-O and Alt-F-C ?
Is there some Linux option that makes mnemonics show up for Linux?

thanks
pecan
Title: Re: CB menu system confusion
Post by: artoj on January 19, 2007, 04:31:06 pm
Does anyone (artoj?) get Linux underlines for Alt-F-O and Alt-F-C ?

Yep, I do. I can't recall that I would have changed any settings regarding the accelerators so in Ubuntu Edgy they should be visible by default.
Title: Re: CB menu system confusion
Post by: Pecan on January 19, 2007, 05:14:27 pm
This is what I get on Ubuntu Dapper

(http://img261.imageshack.us/img261/5556/111ju0.png)

This is what I get on andLinux Ubuntu Edgy:

(http://img442.imageshack.us/img442/2999/112xd3.png)

Ubuntu Dapper uses wxWidgets 2.6.1
Ubuntu Edgy uses wxWidgets 2.6.3

Note that there are no mnemonic underlines.
What's the difference between artoj's system and mine?
Title: Re: CB menu system confusion
Post by: Ceniza on January 19, 2007, 07:38:38 pm
I get mnemonic underlines in Gentoo, and I have not compiled any contrib plugin, if that helps.
Title: Re: CB menu system confusion
Post by: Pecan on January 19, 2007, 09:43:41 pm
Where are the CB patches kept that are applied against wxWidgets.
Are they in the svn download?
Title: Re: CB menu system confusion
Post by: killerbot on January 19, 2007, 09:55:13 pm
no, only one has been applied by me on my pc to build that special dll because the wx guys sort of said to Tim, it's not good, but then it seems they applied it themselves ,.... , hard to figure out ...
Title: Re: CB menu system confusion
Post by: Pecan on January 19, 2007, 09:55:25 pm
I get mnemonic underlines in Gentoo, and I have not compiled any contrib plugin, if that helps.

Ok, on Linux, the disappearing mnemonics seems to be caused by keybinder, damnit. I will be so happy when we can get rid of this plugin.

I seem to remember that I had this same problem on windows back when we switched from 2.6.1 to 2.6.3, and I fixed it. But now we've re-instated the 2.6.1 code in keybinder according to TimS instructions for the alignment fix. Ohhhhhh. sheeeesh.

Guess I have to go back and re-visit that problem


Title: Re: CB menu system confusion
Post by: Pecan on January 19, 2007, 10:08:34 pm
The MSW skipping mnemonic problem does not seem to be a plugin problem, however. I still get the problem with all plugins removed except compiler/debugger.
Title: Re: CB menu system confusion
Post by: Pecan on January 19, 2007, 10:13:08 pm
no, only one has been applied by me on my pc to build that special dll because the wx guys sort of said to Tim, it's not good, but then it seems they applied it themselves ,.... , hard to figure out ...

Well... which patches is artoj refering to that fix the skipping mnemonic problem?
 
So what's happening here is that keybinder is running with a bug fix that isnt matched by its twin fix in wxWidgets. Except in the nightly build. Not a good situation.
Title: Re: CB menu system confusion
Post by: Pecan on January 19, 2007, 10:22:39 pm
no, only one has been applied by me on my pc to build that special dll because the wx guys sort of said to Tim, it's not good, but then it seems they applied it themselves ,.... , hard to figure out ...

Would you post that patch so I can test with this skipping mnemonic problem.
Title: Re: CB menu system confusion
Post by: killerbot on January 19, 2007, 11:05:05 pm
it was a 1 liner, it all starts here :

http://forums.codeblocks.org/index.php?topic=4809.msg37667#msg37667

wx guys did it this [http://forums.codeblocks.org/index.php?topic=4809.msg38778#msg38778] way, should try that one. Will see if I can build it tomorrow on windows the patched wx.
Title: Re: CB menu system confusion
Post by: Pecan on January 19, 2007, 11:33:14 pm
it was a 1 liner, it all starts here :

http://forums.codeblocks.org/index.php?topic=4809.msg37667#msg37667

wx guys did it this [http://forums.codeblocks.org/index.php?topic=4809.msg38778#msg38778] way, should try that one. Will see if I can build it tomorrow on windows the patched wx.

Ok, thanks.

I've found the problem with the Linux missing mnemonics. Will fix and commit. Have to retrofit a previous fix that somehow got left out.

But I still have to explore this skipping menu items problem.
Title: Re: CB menu system confusion
Post by: Pecan on January 20, 2007, 01:03:52 am
Would someone disable  keybinder on linux, then look at the item "Save all files" and tell me (verify) if they see two mnemonics. One under the S of "Save" and one under the first l of "all"?

I need to know if this comes from SVN or I caused it.
Title: Re: CB menu system confusion
Post by: Ceniza on January 20, 2007, 01:07:36 am
Pecan: Two mnemonics for "Save all files", the ones you named :)
Title: Re: CB menu system confusion
Post by: Pecan on January 20, 2007, 02:26:32 am
I've got a logical dilemma. KeyBinder needs to update a menu item containing an error. Namely, the menuitem contains two mnemonics. It does not have the option of  letting it stay that way.

Linux reports mnemonic '&' as an underscore. KeyBinder has to either change all underscores to '&' or change only the first and do something about the erroneous ones.

Should KeyBinder repeat the error, set the bad mnemonic to blank(thereby showing the error to the world), or correct the error(thereby hiding the bad menuitem from SVN)?

Title: Re: CB menu system confusion
Post by: Pecan on January 20, 2007, 04:10:57 am
it was a 1 liner, it all starts here :

http://forums.codeblocks.org/index.php?topic=4809.msg37667#msg37667

wx guys did it this [http://forums.codeblocks.org/index.php?topic=4809.msg38778#msg38778] way, should try that one. Will see if I can build it tomorrow on windows the patched wx.

you are talking about the line in "wxMenu::DoInsertOrAppend", correct ?

this was how it was in wx262
Code
        // is the item owner-drawn just because of the bitmap?
        if ( pItem->GetBitmap().Ok() &&
                !pItem->GetTextColour().Ok() &&
                    !pItem->GetBackgroundColour().Ok() &&
                        !pItem->GetFont().Ok() )
        {
            // try to use InsertMenuItem() as it's guaranteed to look correctly
            // while our owner-drawning code is not

and in wx 263 they changed it into  :
Code
        // is the item owner-drawn just because of the bitmap?
        if ( pItem->GetBitmap().Ok() &&
                !pItem->GetTextColour().Ok() &&
                    !pItem->GetBackgroundColour().Ok() &&
                        !pItem->GetFont().Ok() &&
                            !pItem->GetBitmap(true).Ok() )
        {
            // try to use InsertMenuItem() as it's guaranteed to look correctly
            // while our owner-drawning code is not


did you bring this to the attention of the wx guys.

I am gonna rebuild our wx_cb_dll, this is a nice fix (hopefully with no side effects).

Correct that were I fixed it, and it worked with CVS 2.6_BRANCH with that change. I just commented out to test it like below.

        if ( pItem->GetBitmap().Ok() &&
                !pItem->GetTextColour().Ok() &&
                    !pItem->GetBackgroundColour().Ok() &&
                        !pItem->GetFont().Ok() /* &&
                            !pItem->GetBitmap(true).Ok() */ )



I made this patch on my msw system.
It did *not* resolve the "skipping mnemonic" problem.
It didn't even resolve the mis-aligned menu items.

It also did not change the size of ...\wxWidgets263\lib\gcc_dll\wxmsw26u_gcc_custom.dll



Maybe I'm doing it wrong. I made it to the msw/menu.cpp.

Code
    // check if we have something more than a simple text item
#if wxUSE_OWNER_DRAWN
    if ( pItem->IsOwnerDrawn() )
    {
        // is the item owner-drawn just because of the bitmap?
        if ( pItem->GetBitmap().Ok() &&
                !pItem->GetTextColour().Ok() &&
                    !pItem->GetBackgroundColour().Ok() &&
                        !pItem->GetFont().Ok() /* &&
                            !pItem->GetBitmap(true).Ok() */ )
        {
            // try to use InsertMenuItem() as it's guaranteed to look correctly
            // while our owner-drawning code is not


(http://img412.imageshack.us/img412/3305/113ow1.png)

The file on the left is the new lib. The ones on the right are the zipped up files prior to the fix. There's no change in the lib size(second from bottom). So I'd guess the patch is in code that is not seen by the compiler. Note the #if wxUSE_OWNER_DRAWN.

c:\Usr\Proj\wxWidgets263\lib\gcc_dll\mswu\wx\setup.h
looks like wxUSE_OWNER_DRAWN should be on. So why didn't the patch work?

Code
// Set this to 1 to enable support for the owner-drawn menu and listboxes. This
// is required by wxUSE_CHECKLISTBOX.
//
// Default is 1.
//
// Recommended setting: 1, set to 0 for a small library size reduction
#define wxUSE_OWNER_DRAWN 1
Title: Re: CB menu system confusion
Post by: killerbot on January 20, 2007, 03:14:07 pm
see here : http://forums.codeblocks.org/index.php?topic=4809.msg38937#msg38937 on application of patches to wx [as it seems now, the dll I obtained from it might replace our hacked version of the wx dll, aka HackUpdated ;-)]
Title: Re: CB menu system confusion
Post by: Pecan on January 20, 2007, 03:39:20 pm
see here : http://forums.codeblocks.org/index.php?topic=4809.msg38937#msg38937 on application of patches to wx [as it seems now, the dll I obtained from it might replace our hacked version of the wx dll, aka HackUpdated ;-)]

But still, this is  providing a patched lib that I can't reproduce.
How are you doing it. Can you please provide a patch file for the rest of us to test our code.

Right now, I'm in a position where I cannot fix/debug/verify code. I cannot seem to reproduce the lib you're distributing in the nightlies.

I applied the patch you say you put into the nightly. It neither corrected the alignment problem, nor fixed the "skipping mnemonic" on my local wx2.6.3 XP system.
Title: Re: CB menu system confusion
Post by: killerbot on January 20, 2007, 03:52:20 pm
I changed the 2 files mentioned of wx, build the wx dll, and voila, fixed ;-)

uploading the dll to berlios now

it will be called : wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch(version2).7z
wxmsw26u_gcc_cb_wx2.6.3p2AndCbPatch_version2.7z
(could take a while, stupid berlios, and the fuck is, it so often fails leaving a partial file, and by ftp you can't delete it, so you publish it,  then delete and reupload, but all is so slow, so unstable and unreliable, .... grrrrrrr)

[EDIT] I didn't test  mnemonics !!

Can you give me a testcase ?
Title: Re: CB menu system confusion
Post by: Pecan on January 20, 2007, 04:22:57 pm

[EDIT] I didn't test  mnemonics !!

Can you give me a testcase ?

It doesnt matter. But...

1) Does Alt-F-O open the file selector or does it just do nothing.
2) Does Alt-F-C close an open file or does it just skip among the menuitmes beginning with the letter C

It's your patch that matters. If you would please provide a diff or patch file against wxWidgets for the patches you're applying.

The point is, the patches you're applying for the nightly build do not seem to work for my wxWidgets 2.6.3. I'd like to find out why.

Without the patches, I cannot fix any nightly complaints, cannot trace into a "nightly" wxWidgets.

I applied the forum link patches you pointed out, but they did not even fix the alignment problem as advertised. There has to be a reason. But without the diff or patch file to exactly reproduce your fixes, there no way to know why they dont work for everyone.

Title: Re: CB menu system confusion
Post by: killerbot on January 20, 2007, 04:36:08 pm
weird, I used the 2 patches.
I have put the 2 source files in a zip file you can find it here : http://users.pandora.be/lieven.de.cock/CodeBlocks/Pecan.7z

If you use the dll I build, does it solve anything for you ??


1) Alt-F-O : opens the file selector
2) Alt-F-C : closes the current file
:-)
Title: Re: CB menu system confusion
Post by: Pecan on January 20, 2007, 05:08:47 pm
weird, I used the 2 patches.
I have put the 2 source files in a zip file you can find it here : http://users.pandora.be/lieven.de.cock/CodeBlocks/Pecan.7z

If you use the dll I build, does it solve anything for you ??


1) Alt-F-O : opens the file selector
2) Alt-F-C : closes the current file
:-)

Cool.
I see there is some change in ownerdrawn.cpp  I didn't have this patch.
Are the patches marked? I don't see and signature or "codeblocks patch" or anything.

I've downloaded the nightlib lib. It shows the .7z file as modified today, but the lib inside was only modified on Jan 05. Is that correct?

thanks
pecan
Title: Re: CB menu system confusion
Post by: killerbot on January 20, 2007, 05:48:28 pm
the dll should have a time stamp of today  :shock: :shock:
Title: Re: CB menu system confusion
Post by: Pecan on January 20, 2007, 05:58:11 pm
weird, I used the 2 patches.
I have put the 2 source files in a zip file you can find it here : http://users.pandora.be/lieven.de.cock/CodeBlocks/Pecan.7z

If you use the dll I build, does it solve anything for you ??


1) Alt-F-O : opens the file selector
2) Alt-F-C : closes the current file
:-)

Yes, indeedy! The "nightly wxlib" solves both the mis-aligned icons and the "skipping mnemonics".

But those menu.cpp and ownerdw.cpp have a lot more patches in them then just the CB "one-liners". No wonder the "forum patches" didn't work. Where did those source modules come from?

I'm working up a diff file now and will test.
Title: Re: CB menu system confusion
Post by: killerbot on January 20, 2007, 06:01:16 pm
they come from here : http://forums.codeblocks.org/index.php?topic=4809.msg38778#msg38778
Title: Re: CB menu system confusion
Post by: Pecan on January 20, 2007, 06:36:45 pm
they come from here : http://forums.codeblocks.org/index.php?topic=4809.msg38778#msg38778

Oh. So a diff file is not necessary.
How do we plan on handling this situation for SVN users?

I'm re-modifying the wxWidgets263 source to get this all to work.

EDIT: 12:59 PM

It works.
I copied the modfied menu.cpp and ownerdw.cpp built with:
I have uploaded my back port of how this problem was fixed in CVS head. The fix is patch 1637808 which updates the file menu.cpp. I would apply the patch 1637804  before doing this patch because menu uses code in the file ownerdrw.cpp.

Tim S

[ 1637808 ] MSW: menu.cpp backport to 2.6_BRANCH from cvs head
http://sourceforge.net/tracker/index.php?func=detail&aid=1637808&group_id=9863&atid=309863

[ 1637804 ] MSW: ownerdrw.cpp backport to 2.6_BRANCH from cvs head
http://sourceforge.net/tracker/index.php?func=detail&aid=1637804&group_id=9863&atid=309863

to wxWidget263, re-built wxmsw26u_gcc_custom.dll, then re-built Codeblocks and contribs against it.

With the keybinder fixes (applied svn 3443) the icons are aligned and the "skipping mnemonic" bugs have disappeared.

Still... these sources have to be applied via CB svn somehow.

thanks
Title: Re: CB menu system confusion
Post by: killerbot on January 20, 2007, 10:44:30 pm
no , they are wx sources, not CB sources. Windows people can download are special dll. Linux people need to do it themselves, but they didn't have those problems in the first place (the menu alignment and disabling of icons), so they don't need to do anything.

We don't want people using Cb to build wx themselves.

You don't even have to rebuild CB if you want to use the new dll, since no headers have changed.
Title: Re: CB menu system confusion
Post by: Pecan on January 21, 2007, 02:03:07 am
no , they are wx sources, not CB sources. Windows people can download are special dll. Linux people need to do it themselves, but they didn't have those problems in the first place (the menu alignment and disabling of icons), so they don't need to do anything.

We don't want people using Cb to build wx themselves.

You don't even have to rebuild CB if you want to use the new dll, since no headers have changed.

Lets say we tell a new user that it's easy to build from SVN. S/he does so and ends up with the same menu problems we've just been through because s/he compiled using the usual wxWidgets.

Where can we tell him/her where to get these patches for wxWidgets?

Shall we say to just search the forum?

Or will we have a common place for the patches, and an explanation of where to apply them.

There are already other patches (Scintilla for example) that we apply to external source. How are they maintained. How does a new svn user handle all this?


Lets say a smart new user wants to debug CB using wxWidgets debug mode. Where would s/he get the patches to make the wxWidgets source mirror the nightly wxLib?
Title: Re: CB menu system confusion
Post by: stahta01 on January 21, 2007, 06:35:21 am

Lets say a smart new user wants to debug CB using wxWidgets debug mode. Where would s/he get the patches to make the wxWidgets source mirror the nightly wxLib?


I am working on a Wiki page for this
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.3_to_develop_Code::Blocks_%28MSW%29

I still got a long way to go, but I plan to show how to apply patches to wxWidgets source.

Tim S
Title: Re: CB menu system confusion
Post by: killerbot on January 21, 2007, 10:45:07 am
Pecan, Tim,
good idea.
Quote
There are already other patches (Scintilla for example) that we apply to external source. How are they maintained. How does a new svn user handle all this?
The difference here is that those sources are in our svn repo and are built as part of CB when you build CB.
Title: Re: CB menu system confusion
Post by: Pecan on January 21, 2007, 03:01:44 pm

Lets say a smart new user wants to debug CB using wxWidgets debug mode. Where would s/he get the patches to make the wxWidgets source mirror the nightly wxLib?


I am working on a Wiki page for this
http://wiki.codeblocks.org/index.php?title=Compiling_wxWidgets_2.6.3_to_develop_Code::Blocks_%28MSW%29

I still got a long way to go, but I plan to show how to apply patches to wxWidgets source.

Tim S

Thanks Tim. I was afraid for a moment there that we were going to leave out new SVN users hanging in the wind.

Reading the wiki article, I notice that UnxUtils is no longer available on sourceForge. I'll see if I can hunt it down and update the wiki links if that's ok with you.
Title: Re: CB menu system confusion
Post by: Pecan on January 21, 2007, 07:09:44 pm
I finally found a 2.5 UnxUtils patch.exe and also download the GnuWin32
patch.exe

I tested both versions of patch.exe with the following results:

UnxUtils patch.exe

(http://img256.imageshack.us/img256/1134/1161dm.png)

(http://img413.imageshack.us/img413/9739/1177zj.png)

GnuWin32 patch.exe

(http://img295.imageshack.us/img295/7083/1190pn.png)

(http://img295.imageshack.us/img295/8056/1188gt.png)

It appears that none of the above attempts were successful.

@Killerbot: could you instruct me as to how you applied the patches.
I'll try to find a way to allow the rest of us devs to do it.
Title: Re: CB menu system confusion
Post by: killerbot on January 21, 2007, 07:13:44 pm
I have applied all 3 of them by hand. I think the best way is, to provide a zip file containing the 3 files, so people can just copy it over the original ones. The zip file I made yesterday already contains 2 files, I will be updating it now to contain all 3 files.
And hopefully when wx 2.8.1 (@ Tim : do you have any info on that one ??) the wx 28 people will also be happy. That moment might be interesting to start using it on windows, cause otherwise we also have to make a special wx28 dll .
Title: Re: CB menu system confusion
Post by: killerbot on January 21, 2007, 07:15:47 pm
zip file is updated
Title: Re: CB menu system confusion
Post by: stahta01 on January 21, 2007, 07:20:28 pm
I have applied all 3 of them by hand. I think the best way is, to provide a zip file containing the 3 files, so people can just copy it over the original ones. The zip file I made yesterday already contains 2 files, I will be updating it now to contain all 3 files.
And hopefully when wx 2.8.1 (@ Tim : do you have any info on that one ??) the wx 28 people will also be happy. That moment might be interesting to start using it on windows, cause otherwise we also have to make a special wx28 dll .

Only one of these 3 fixes are in 2.8.1, the ones dealing with alignment of menu and graying out did not make 2.8.1. Note, I think they are planning an 2.8.2 release in the near future. They are NOT releasing the 2.8.1 release for windows; it was in CVS for at least a week but it had bugs for windows. You may see it on the Mac computers.

Tim S
Title: Re: CB menu system confusion
Post by: killerbot on January 21, 2007, 07:22:07 pm
2.8.1 is not even out
Title: Re: CB menu system confusion
Post by: stahta01 on January 21, 2007, 07:23:54 pm
2.8.1 is not even out

The CVS version number right now is 2.8.1.1
Tim S