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 » Sun Aug 15, 2010 6:55 pm

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 » Mon Aug 16, 2010 7:38 am

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 » Mon Aug 16, 2010 12:18 pm

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 » Tue Aug 31, 2010 11:48 am

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 » Thu Sep 02, 2010 4:20 pm

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 » Mon Sep 13, 2010 10:11 pm

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
Knows some wx things
Knows some wx things
Posts: 42
Joined: Wed Aug 19, 2020 12:04 am

Re: wxFlatMenu & wxFlatMenuBar

Post by AmadeusK525 » Wed Mar 17, 2021 12:54 pm

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: 15940
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxFlatMenu & wxFlatMenuBar

Post by doublemax » Wed Mar 17, 2021 1:17 pm

Use the source, Luke!

AmadeusK525
Knows some wx things
Knows some wx things
Posts: 42
Joined: Wed Aug 19, 2020 12:04 am

Re: wxFlatMenu & wxFlatMenuBar

Post by AmadeusK525 » Wed Mar 17, 2021 1:36 pm

Thank you so much, doublemax! You're a life saver

AmadeusK525
Knows some wx things
Knows some wx things
Posts: 42
Joined: Wed Aug 19, 2020 12:04 am

Re: wxFlatMenu & wxFlatMenuBar

Post by AmadeusK525 » Wed Mar 17, 2021 1:59 pm

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: 15940
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxFlatMenu & wxFlatMenuBar

Post by doublemax » Wed Mar 17, 2021 2:04 pm

Code: Select all

m_menuStyle->GetEventHandler()->ProcessEvent(event)
Use the source, Luke!

AmadeusK525
Knows some wx things
Knows some wx things
Posts: 42
Joined: Wed Aug 19, 2020 12:04 am

Re: wxFlatMenu & wxFlatMenuBar

Post by AmadeusK525 » Wed Mar 17, 2021 2:27 pm

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: 15940
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxFlatMenu & wxFlatMenuBar

Post by doublemax » Wed Mar 17, 2021 2:38 pm

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