A BitmapButton should inherit from Button, but specifying the property "defaultButton" for a bitmap button fails, while compiling, with the message:
DefaultBitmapButton.hs:21:27:
Couldn't match type `WXCore.CBitmapButton ()' with `()'
Expected type: Button ()
Actual type: BitmapButton ()
In the second argument of `(:=)', namely `ambBmb'
In the expression: defaultButton := ambBmb
In the second argument of `set', namely `[defaultButton := ambBmb]'
See the attached program.
Workaround:
After applying this workaround, there remains, however, a problem:
Versions: