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!
Takeshi Miya
Earned a small fee
Earned a small fee
Posts: 12
Joined: Sun Jan 22, 2006 11:43 pm

Post by Takeshi Miya »

Infinity_77 wrote: Uhm, I may seem dumb, but in which respects the 4 pointing arrows are superior to XOR rectangles? If it is a purely aesthetic modification,
Andrea.
It isn't a purely cosmetic modification, it's actually about having exact control of where you want to place the panel.

Play a little with this demonstration: http://snakesoft.net/wxifm/demo.zip
and you'll see why it's better, you know exactly where it will be placed.
T-Rex wrote: I think some combination of this 2 ways could be a good solution.
Yes, I think the same. Indeed this is the way VS2005 does it.
Belgabor
I live to help wx-kind
I live to help wx-kind
Posts: 173
Joined: Mon Sep 25, 2006 1:12 pm

Post by Belgabor »

It would be great if we had that functionality with the outer (lone) arrows replaced by the XOR rectangles!
geralds
I live to help wx-kind
I live to help wx-kind
Posts: 186
Joined: Tue Nov 01, 2005 9:22 am
Contact:

Post by geralds »

Eran, just noticed this fantastic menu! Thanks for this control and as ever the excellent wxFlatNotebook!
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

geralds wrote:Eran, just noticed this fantastic menu! Thanks for this control and as ever the excellent wxFlatNotebook!

No problem.

I released version 0.9 which is still subject to changes. It can be found here:
http://forums.wxwidgets.org/viewtopic.php?t=10762

-Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

I updated the menu bar & tool bar & menu with the following changes:

- very long menus now has scroll buttons
- various bug fixes, and changed appearance a bit

the link for the source files can be found in my signature (SVN) or here (archived):
http://www.eistware.com/flatmenu/1_nov/wxFlatMenu.zip

updated demo:
http://www.eistware.com/flatmenu/1_nov/ ... u_test.zip

The code was tested on XP & Linux
-Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

Hi Eran,

Your version does not work under windows 2k. It complains about:

09:17:54: Can't create window of class wxShadowPopupWindow (error 1407: cannot find window class.)

For about 5 times. The app runs, but there are no menus.

Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Hi,

I did a little research on the web, and it appears that the style CS_DROPSHADOW exist for WIN XP only.

So this style is now used to check if a shdow menu class can be registered on windows, if not it will do the default path (like on Linux).

I short: On WIN2k there will be no shadow under menus

I updated the demo & sources, can you confirm it works? ( I dont have access to win2k)

Best regards,
-Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

Is the link still the same? Because I still get the error. I verified the executables they are still the same.

Regards,
- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

I just realized what i did ... I did fixed the code, but I am still compiling it under win XP ... :D
So the demo still includes the code that works only on win xp so it obviously made no different (I am using #ifdef in the code) so to see the change, it must be compiled under win2k.

Or to close the problem code with #if 0 and compile it under under xp:

Try this link
http://www.eistware.com/flatmenu/1_nov/ ... _win2k.zip

-Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

Hi Eranif, this one works!

One comment on compiling for Win2K or not, I really would advice you to determine this flag at run time to exclude it for Win2K or not, as users who run your app should not have to choose between XP and 2K for your menu style. I think others using your wxFlatMenuBar are also not really thrilled if they have to compile it for multiple platforms.

I think wxPlatformInfo can help you there it should be a new class from Franchesco in wx2.7.0 ...

http://www.lpthe.jussieu.fr/~zeitlin/wx ... atforminfo

Anyway, excellent work, the whole control looks really robust and useful!

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

Hi Jorg,
Thanks for the input, and you are right it does make sense the do it in run-time.

I changed the code to do it during run-time, can you please do one last test?
http://www.eistware.com/flatmenu/1_nov/ ... u_test.zip

-Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
Jorg
Moderator
Moderator
Posts: 3971
Joined: Fri Aug 27, 2004 9:38 pm
Location: Delft, Netherlands
Contact:

Post by Jorg »

Works like a charm! 8)
Great work!

- Jorgen
Forensic Software Engineer
Netherlands Forensic Insitute
http://english.forensischinstituut.nl/
-------------------------------------
Jorg's WasteBucket
http://www.xs4all.nl/~jorgb/wb
RJP Computing
Experienced Solver
Experienced Solver
Posts: 75
Joined: Sat Dec 10, 2005 10:38 pm
Location: Michigan, USA
Contact:

Post by RJP Computing »

Eranif,

Thanks for the great component. I can't wait to try it out in a new application I am about to start.

This is a bit off topic, but...

Can you change your signature for wxFlatNotebook. You have an extra '/' next to "svnroot".
- Ryan
RJP Computing
wxPack - Precompiled wxWidgets package.

Ubuntu 9.04 x86_64/WinXP, AMD Athlon x2 3000+, 4000MB RAM, AC 97 Audio, nVidia GeForce 9400GS 1GB
eranif
Moderator
Moderator
Posts: 610
Joined: Tue Nov 29, 2005 7:10 pm
Location: Israel

Post by eranif »

RJP Computing wrote:Eranif,

Thanks for the great component. I can't wait to try it out in a new application I am about to start.

This is a bit off topic, but...

Can you change your signature for wxFlatNotebook. You have an extra '/' next to "svnroot".
Done

-Eran
IDE: CodeLite + wxCrafter
OS: All
https://wxcrafter.codelite.org
https://codelite.org
bigpilot
I live to help wx-kind
I live to help wx-kind
Posts: 184
Joined: Tue Sep 19, 2006 8:33 am

Post by bigpilot »

Fantastic work! Please share and contact the wxWidgets crew so it can be integrated into the main source tree!
Post Reply