From: Arjan v. I. <af...@cs...> - 2006-01-20 14:53:54
|
> but <- button w [ text :=3D name >=20 > , on command :=3D setChosenButton name state >=20 > , bgcolor :=3D white >=20 > , on paint :=3D myDrawFunctionOnCanvas name >=20 > ] > 2. The buttons have the nice pictures dram on them and when I click > them I get the normal shape of a button with text (like in the > screenshot on the file myMenu). It=92s desirable that they mainta= in > the picture and only change the background and the borders. I think you can use bitmapButton instead op button. I am amazed that=20 attaching a paint handler to a button works! See http://wxhaskell.sourceforge.net/doc/Graphics.UI.WX.Controls.html#4 And=20 http://wxhaskell.sourceforge.net/doc/Graphics.UI.WX.Classes.html#t%3APict= ured for the picture attribute of those buttons. Cheers, Arjan |