L.S.,

I am trying to make a bitmap button the default button, but using the  
function defaultButton results in an error message ('ok' is a  
BitmapButton):
     Couldn't match expected type `()'
                 with actual type `WXCore.CBitmapButton ()'
     Expected type: Button ()
       Actual type: BitmapButton ()
     In the second argument of `(:=)', namely `ok'
     In the expression: defaultButton := ok

Isn't BitmapButton supposed to inherit from Button?

I used the following as a workaround:
    unsafeDefaultItem := objectCast ok

Regards,
Henk-Jan van Tuyl


-- 
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
Haskell programming
--

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to