Hi, On Mon, 29 Dec 2008 08:30:05 +0900, Bernd Holzmüller <bernd.holzmuel...@ics-ag.de> wrote: > Now, this seems not to be possible yet for toolbar icons. The function > "toolMenu" expects a file path argument, and there is no other function > that accepts a bitmap instead. I therefore suggest extending the file > Graphics.UI.WX.Menu.hs by an additional function: > toolMenuFromBitmap :: ToolBar a -> MenuItem a -> String -> Bitmap b -> > [Prop ToolBarItem] -> IO ToolBarItem > The signature of the present toolMenu function is: > toolMenu :: ToolBar a -> MenuItem a -> String -> FilePath -> [Prop > ToolBarItem] -> IO ToolBarItem > whose definition would then just reduce to > toolMenu toolbar menuitem label bitmapPath props = > withBitmapFromFile bitmapPath $ \bitmap -> toolMenuFromBitmap > toolbar menuitem label bitmap props
I added toolMenuFromBitmap function in the darcs repository, and I replaced source and binary distribution by newer version now. http://www.mail-archive.com/wxhaskell-de...@lists.sourceforge.net/msg00392.html Replacing distribution isn't good solution. So, this is final change before wxHaskell 0.11.0 release. If you want to use more new features, please wait for next next version. Best Regards, -- shelarcy <shelarcy hotmail.co.jp> http://page.freett.com/shelarcy/ ------------------------------------------------------------------------------ _______________________________________________ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users