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
