Page 1 of 1

Native icons for ImageMenus

Posted: Sat May 01, 2010 9:23 pm
by netmaestro
Purebasic has long been able to create toolbars natively and the ToolBar library contains a nice set of "stock" images for rapid development, such as #PB_ToolbarIcon_Open, etc. This, imho, is really slick. Since v4.20 saw the appearance of ImageMenus, and menu functions often mirror toolbar button actions, it seems natural to me that the native ToolBar imagelist could be made available to the ImageMenu. Then one could write code such as:

Code: Select all

MenuItem(0, "Open", #PB_MenuIcon_Open)
Saving the coder quite a bit of trouble.

Thanks for listening :mrgreen:

Re: Native icons for ImageMenus

Posted: Sun May 02, 2010 12:01 am
by srod
Excellent suggestion.

Re: Native icons for ImageMenus

Posted: Wed May 05, 2010 10:11 pm
by DoubleDutch
+1

Re: Native icons for ImageMenus

Posted: Thu May 06, 2010 5:13 am
by Rescator
Or just add a link in the manual to http://tango.freedesktop.org/Tango_Desktop_Project
There are probably a few other similar projects out there too.

Re: Native icons for ImageMenus

Posted: Sat May 15, 2010 8:00 am
by zxtunes.com
+2

Re: Native icons for ImageMenus

Posted: Sun May 16, 2010 9:23 am
by Num3
Count me in!

Re: Native icons for ImageMenus

Posted: Tue May 18, 2010 8:06 am
by blueznl
Oh, simple and useful, I like this as well...