wxFlatMenu & wxFlatMenuBar

If you have a cool piece of software to share, but you are not hosting it officially yet, please dump it in here. If you have code snippets that are useful, please donate!
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

The sources can be found here:

http://codelite.org/downloads/wxflatmenu-src.zip

Currently, the only way to compile it is by using codelite IDE (there are also vcproj files for MSVS, but they are outdated)

To compile it (Linux / Windows):
- Download codelite (for Windows, it is recommended to download the version that bundles MinGW as well)

Win:
http://sourceforge.net/projects/codelit ... e/download

For non Windows, browse this link and pick the one that you need:

http://sourceforge.net/projects/codelite/files/

- Open the workspace: 'wxFlatMenu.workspace' - Select the configuration you want to build hit F7 and you are done

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
z.bencik
In need of some credit
In need of some credit
Posts: 9
Joined: Fri Dec 18, 2009 3:21 pm

Post by z.bencik »

eranif wrote: The sources can be found here:

http://codelite.org/downloads/wxflatmenu-src.zip
Hello Eran,

The link you posted leads to Page Not Found resource.
Can you please verify if the link is valid.
Thanks.
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
z.bencik
In need of some credit
In need of some credit
Posts: 9
Joined: Fri Dec 18, 2009 3:21 pm

Post by z.bencik »

Hello Eran,
the link is OK now.

What license is used in wxFlatMenu source code? I would like to use your code in commercial project, but couldn't find any legal notices except for wxWidgets licence.

Thank you, appreciate your efforts.
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Feel free to use it for commercial product

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Allonii
Experienced Solver
Experienced Solver
Posts: 83
Joined: Wed Jun 24, 2009 1:28 pm

Post by Allonii »

Hello Eran!

I must say your wxFlatMenu is very nice. Would be very nice with a wxFlatToolbar too. ;)

Should be include in wxWidgets.
Thanks

Allonii
AmadeusK525
Experienced Solver
Experienced Solver
Posts: 60
Joined: Wed Aug 19, 2020 12:04 am

Re: wxFlatMenu & wxFlatMenuBar

Post by AmadeusK525 »

Hey all! I see that none of the links work anymore, which is a shame, since I'm really interested in this. Is there a chance that you have uploaded the source code somewhere else, eranif? I understand that it's already been so long, so if you haven't thats ok.
Thank you
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxFlatMenu & wxFlatMenuBar

Post by doublemax »

Use the source, Luke!
AmadeusK525
Experienced Solver
Experienced Solver
Posts: 60
Joined: Wed Aug 19, 2020 12:04 am

Re: wxFlatMenu & wxFlatMenuBar

Post by AmadeusK525 »

Thank you so much, doublemax! You're a life saver
AmadeusK525
Experienced Solver
Experienced Solver
Posts: 60
Joined: Wed Aug 19, 2020 12:04 am

Re: wxFlatMenu & wxFlatMenuBar

Post by AmadeusK525 »

Okay, the compiler is complaining about the code trying to directly access a protected protected member function, ProcessEvent(). Was this function protected after he wrote the original code or is there something wrong? The code is m_menuStyle->ProcessEvent(event), m_menuStyle being a wxRadioBox*. What should I do here?
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxFlatMenu & wxFlatMenuBar

Post by doublemax »

Code: Select all

m_menuStyle->GetEventHandler()->ProcessEvent(event)
Use the source, Luke!
AmadeusK525
Experienced Solver
Experienced Solver
Posts: 60
Joined: Wed Aug 19, 2020 12:04 am

Re: wxFlatMenu & wxFlatMenuBar

Post by AmadeusK525 »

Thanks. I still can't get the demo to build. It's complaining about 2 things:
In resources.rc, theres this:

Code: Select all

mainicon ICON "wx/msw/std.ico"
#include <wx/msw/rcdefs.h>
Both fail. With no apparent reason.

Code: Select all

fatal error RC1015: cannot open include file 'wx/msw/rcdefs.h'.
error RC2135: file not found: wx/msw/std.ico
If I remove those two lines I get a LINK error to a lib that I'm not even linking. I'm linking to the following:

Code: Select all

wxmsw31ud_core.lib
wxbase31ud.lib
wxmsw31ud_aui.lib
wxtiffd.lib
wxjpegd.lib
wxpngd.lib
wxzlibd.lib
wxregexud.lib
wxexpatd.lib
winmm.lib
comctl32.lib
rpcrt4.lib
wsock32.lib
oleacc.lib
odbc32.lib
And this is what the linker says:

Code: Select all

fatal error LNK1104: cannot open file 'wxbase31d.lib'
How can this even be possible?
User avatar
doublemax
Moderator
Moderator
Posts: 19114
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxFlatMenu & wxFlatMenuBar

Post by doublemax »

Code: Select all

fatal error RC1015: cannot open include file 'wx/msw/rcdefs.h'.
error RC2135: file not found: wx/msw/std.ico
Both files still exist in these locations. Check your include paths.

Code: Select all

fatal error LNK1104: cannot open file 'wxbase31d.lib'
This indicates a ANSI/Unicode mismatch. wxbase31d.lib is the name of an ANSI lib, the unicode version would be wxbase31ud.lib (note the additional 'u' for Unicode)
Use the source, Luke!
Post Reply