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!
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL »

Infinity_77 wrote: since I have switched to wxWidgets/wxPython version 2.8.8.1, I have noticed that the menu accelerators in FlatMenu do not work anymore (in wxPython). Is there someone who could test if they do work in wxWidgets (using C++) so that I can understand if it is a bug in my Python translation of FlatMenu (highly probable), a bug in wxPython or a bug in wxWidgets?
Using Eran's demo of FlatMenu is enough to test if accelerators work or not.

Thank you for your help.

Andrea.
If you mean that pressing Alt+F doesn't fire the File menu, then you are correct. I built this yesterday using VS2008Express and a svn checkout of wxwidgets.

HTH

Best Regards
Mal
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Hi,

I am still using 2.8.7 so I cant test it, next week, when I will be back at work I will be able to test with 2.8.8 on Ubuntu.


Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Infinity_77
Experienced Solver
Experienced Solver
Posts: 89
Joined: Tue Oct 03, 2006 6:30 pm
Location: London, UK
Contact:

Post by Infinity_77 »

Hi Eran,

have you had any chance to take a look at this issue? I debugged my code back and forth but I am just hitting a wall... perhaps FlatMenu needs its creator's attention in order to be fixed :D

Andrea.
"Imagination Is The Only Weapon In The War Against Reality."

http://xoomer.alice.it/infinity77/
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Hi Andrea,

I am still using 2.8.7 and did not had a chance to upgrade to 2.8.8 yet, once I will upgrade, I will have a closer look

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Satervalley
Knows some wx things
Knows some wx things
Posts: 47
Joined: Fri Dec 14, 2007 1:10 am

Several suggestions

Post by Satervalley »

Hi, I like it , it's a realy cool works.thank eran for sharing.
I'd like to use wxFlatMenu in a rencently luanched app. I's seems that a long time not updated of this project. Here's some suggestions of my opinion.
1 can make the last menu on the menubar be right most
2 toolbar can be multi bands
3 toolbar item can be with drop down menu, like windows explorer's.
4 when the "customize" drop down menu disabled, auto shwo chevrons when there's no enough space for all toolbar items.

thanks.
nkwinder
Experienced Solver
Experienced Solver
Posts: 70
Joined: Sun Nov 23, 2008 2:32 pm

Post by nkwinder »

hello

i tried to download the files, in order to use flatmenu, but it seems that the links are broken. Screenshots don't show up either.

Is this project active?

thanks
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL »

Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
alex++
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Mar 31, 2009 7:24 am

wxFlatMenu "on-fly" recreation

Post by alex++ »

Hi Eran,

First of all, thanks lots, good job! :)
I have a question to you. I'm using wxFlatMenu and I've got one trouble. I have a multilingual user interface and when I recreate UI on switching language weird thing happens with wxFlatMenu. The problem is as follows: during UI recreation process, main window pending deletion is called when new menu instance is already created and deletion of old wxFlatMenu instance corrupts a new instance somehow, i.e., selection of any menu button after recreation throws an exception because menu items appear to be invalid. I tried to modify your example to check if it was not my application's fault, but the same problem appear.

Regards,
Alex++.
alex++
In need of some credit
In need of some credit
Posts: 2
Joined: Tue Mar 31, 2009 7:24 am

Re: wxFlatMenu "on-fly" recreation

Post by alex++ »

alex++ wrote:Hi Eran,

First of all, thanks lots, good job! :)
I have a question to you. I'm using wxFlatMenu and I've got one trouble. I have a multilingual user interface and when I recreate UI on switching language weird thing happens with wxFlatMenu. The problem is as follows: during UI recreation process, main window pending deletion is called when new menu instance is already created and deletion of old wxFlatMenu instance corrupts a new instance somehow, i.e., selection of any menu button after recreation throws an exception because menu items appear to be invalid. I tried to modify your example to check if it was not my application's fault, but the same problem appear.

Regards,
Alex++.
Any thoughts would be useful...

Thanks,
Alex++
chenbin.sh
Experienced Solver
Experienced Solver
Posts: 64
Joined: Fri Apr 17, 2009 7:15 am
Location: Sydney, Australia
Contact:

Post by chenbin.sh »

Here is the patch to make the menu send wxEVT_COMMAND_MENU_SELECTED instead popup a menu.

Usage:

Code: Select all

wxFlatMenuBar* b;
...
wxFlatMenu* m=new wxFlatMenu(ID_FOO);
wxFlatMenuBar* b->Add(m,("blah"));
Attachments
root_menu_as_a_menuitem.patch.gz
(2.03 KiB) Downloaded 323 times
help me, help you.
http://blog.binchen.org
div
Earned a small fee
Earned a small fee
Posts: 14
Joined: Sat Feb 13, 2010 7:05 am

Post by div »

Hi, i cant open the link, can u pls attach that wxFlatmenu files. its urgent. Thanks in advance.
http://www.eistware.com/flatmenu/wxFlatMenu.zip
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Hi,

I got a chance to do some update to wxFlatMenu(Bar) code.

In brief:
- It now compiles under wxWidgets 2.8.10 / 2.9
- Improved drawing on Windows
- Fixed some text glitch on menu bar items

I added new CodeLite ( http://www.codelite.org ) workspace/project(s) for the wxFlatMenu with 3 configurations:
WinRelease -> Windows release Unicode
WinDebug -> Windows debug Unicode
UnixRelease -> Linux unicode

wxFlatMenu is now generated as DLL

The SVN link should work:

to obtain the sources:

Code: Select all

svn co https://opensvn.csie.org/wxFlatMenu wxflatmenu

Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
modoran
Knows some wx things
Knows some wx things
Posts: 47
Joined: Tue Mar 23, 2010 1:31 pm
Location: Romania
Contact:

Post by modoran »

I am unable to download wxflatmenu, 404 not found error, no one has a working copy of sources to attach here or upload somewhere ?
entire site opensvn.csie.org seems to be closing anyway
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Thanks for reporting that the site is going down.

I will upload the sources into my site http://www.codelite.org

and will post here a link when its 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 »

Hello Eran,

Did you have a chance to upload the sources to your site?
Can you please provide the link? I can't find the sources from the links provided in this entire thread, they are all broken.

Thanks.
-zoltan.
eranif wrote:Thanks for reporting that the site is going down.

I will upload the sources into my site http://www.codelite.org

and will post here a link when its done

Eran
Post Reply