Hi Andrea,
When I don't have an appropriate item I pass wx.NullBitmap to Aquabutton.
However this creates a button which is a bit higher then others.
This is due to the code in DoGetBestSize:
bmpWidth = bmpHeight = 0
constant = 30
if self._bitmap:
bmpWidth, bmpHeight = self._bitmap.GetWidth()+10, self._bitmap.GetHeight()
retWidth += bmpWidth
retHeight = max(bmpHeight, retHeight)
constant = 24
I suggest to change it to:
bmpWidth = bmpHeight = 0
constant = 24
if self._bitmap:
bmpWidth, bmpHeight = self._bitmap.GetWidth()+10, self._bitmap.GetHeight()
retWidth += bmpWidth
retHeight = max(bmpHeight, retHeight)
Werner