> Hi all,
>
> In order to create a value of type TabPage, I need to create a  
> value of
> type Bitmap. But how do I create such a value and what if I don't want
> to because I do not need my tabs to have images?
>
> Eric M

Hello,

to answer the first question: You can use, for instance, bitmap,
bitmapCreateFromFile or bitmapFromImage (all Graphics.UI.WX.Media).

bitmap returns Bitmap () while bitmapCreateFromFile returns IO  
(Bitmap ()).
I guess what this means is that bitmap does not require the IO monad but
you have little control over when it's executed. So bitmap should  
probably
only be used if the file doesn't change over the lifetime of the
application instance.

To answer the second question: Maybe you could create an empty image.

Regards,
Arne Vogel

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to