Hi Patrick,
Patrick Scheibe wrote:
> Hi,
>
> First of all I want to thank all people who worked on the binary windows release
of wxHaskell.
> Now I can compile my programms without having trouble because I don't have to
compile wxHaskell by myself.
> Thank you for not forgetting the OpenGl thing :)))
>
> Now one question. When I create a bitmapButton, then the button is resized to the
size of the image. On my windows xp box this isn't the case. The buttons keep their
small size and the image borders are cut away.
>
> I tried to convert my png files for the buttons to bmp format and played with all
kind of clientSize, outerSize..
> without success. The gtk on linux don't have such problems. Is there a way to fix
it or is there a restriction of the size of images on buttons on windows?
> I definitely need some button thing displaying a 60x60 image and react on clicks...
>
> The creation of the buttons is just simple code:
>
> bitmapButton p
> [ picture := ("./Pictures/stone" ++ (show i)++ ".BMP")
> , on click := (\_ ->(buttSelectStone (id2Stone i) varGP) >>
> updatePlayerPanel varGP statusText p >>
> repaint p)
> , clientSize := sz 90 90]
Have you tried to set the size in a later call:
> do b <- bitmapButton p [picture := ("./Pictures/stone" ++ (show i)++ ".BMP")]
> set b [clientSize := sz 90 90]
It might matter since "clientSize" is one of those "initial" attributes that
are treated specially if given in the constructor.
-- Daan.
>
>
> Cheers
> Patrick
|